Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate symbols when used with react-native-quick-crypto #662

Open
Tracked by #11
castdrian opened this issue Apr 15, 2024 · 1 comment
Open
Tracked by #11

duplicate symbols when used with react-native-quick-crypto #662

castdrian opened this issue Apr 15, 2024 · 1 comment

Comments

@castdrian
Copy link

when used in a project that also uses react-native-quick-crypto this lib causes the compiler to throw duplicate symbol errors, whilst this still compiles successfully, it probably would be best to avoid this behaviour

⚠️  ld: ignoring duplicate libraries: '-lc++'
❌  duplicate symbol '__Z12isTypedArrayRN8facebook3jsi7RuntimeERKNS0_6ObjectE' in
┌─ libreact-native-mmkv.a[6](TypedArray.o)
└─ libreact-native-quick-crypto.a[22](MGLTypedArray.o)

❌  duplicate symbol '__Z13getTypedArrayRN8facebook3jsi7RuntimeERKNS0_6ObjectE' in
┌─ libreact-native-mmkv.a[6](TypedArray.o)
└─ libreact-native-quick-crypto.a[22](MGLTypedArray.o)

❌  duplicate symbol '_propNameIDCache' in
┌─ libreact-native-mmkv.a[6](TypedArray.o)
└─ libreact-native-quick-crypto.a[22](MGLTypedArray.o)

❌  duplicate symbol '__ZN15PropNameIDCache10createPropERN8facebook3jsi7RuntimeE4Prop' in
┌─ libreact-native-mmkv.a[6](TypedArray.o)
└─ libreact-native-quick-crypto.a[22](MGLTypedArray.o)

❌  duplicate symbol '_nameToKindMap' in
┌─ libreact-native-mmkv.a[6](TypedArray.o)
└─ libreact-native-quick-crypto.a[22](MGLTypedArray.o)

❌  duplicate symbol '__Z17arrayBufferUpdateRN8facebook3jsi7RuntimeERNS0_11ArrayBufferENSt3__16vectorIhNS5_9allocatorIhEEEEm' in
┌─ libreact-native-mmkv.a[6](TypedArray.o)
└─ libreact-native-quick-crypto.a[22](MGLTypedArray.o)

❌  duplicate symbol '__Z24getTypedArrayKindForNameRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE' in
┌─ libreact-native-mmkv.a[6](TypedArray.o)
└─ libreact-native-quick-crypto.a[22](MGLTypedArray.o)

❌  duplicate symbol '__Z19arrayBufferToVectorRN8facebook3jsi7RuntimeERNS0_6ObjectE' in
┌─ libreact-native-mmkv.a[6](TypedArray.o)
└─ libreact-native-quick-crypto.a[22](MGLTypedArray.o)
@mrousavy
Copy link
Owner

thanks for the report. Yea, in V3 (#656) I removed TypedArray in favor of simplifying it to jsi::ArrayBuffer. That gives you more granular control over what bytes you want to store (Uint8Array, Float32Array or any other typed arrays!), and it fixes your build error/warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants