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

use of undeclared identifier 'kind_' [arm64-v8a] #189

Closed
matthewcarlreetz opened this issue Aug 17, 2023 · 3 comments
Closed

use of undeclared identifier 'kind_' [arm64-v8a] #189

matthewcarlreetz opened this issue Aug 17, 2023 · 3 comments

Comments

@matthewcarlreetz
Copy link

When building for Android I get the error use of undeclared identifier 'kind_' [arm64-v8a]. I've tested on multiple devices (Pixel 6, Saga, emulator), but all fail with the same error.

Screenshot 2023-08-17 at 7 26 00 AM
System:
    OS: macOS 13.4.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 415.86 MB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.5.0 - /opt/homebrew/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 9.8.0 - /opt/homebrew/bin/npm
    Watchman: 2023.08.07.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    Android SDK: Not Found
  IDEs:
    Android Studio: 2022.3 AI-223.8836.35.2231.10406996
    Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.19 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.71.10 => 0.71.10 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
@milanpro
Copy link

milanpro commented Sep 8, 2023

The issue occurs because of your projects OpenSSL-Universal Version. Downgrading from OpenSSL 3 to a lower version fixed the problem for me, as the line that breaks is behind a version check: https://github.com/margelo/react-native-quick-crypto/blob/26684914784f6d7f38a0dc5bc83708c0bcd6c1e7/cpp/Cipher/MGLCipherHostObject.cpp#L579C1-L579C31

Add something like this to your Podfile: pod "OpenSSL-Universal", "1.1.2200"
with the version you want to use

@matthewcarlreetz
Copy link
Author

The issue occurs because of your projects OpenSSL-Universal Version. Downgrading from OpenSSL 3 to a lower version fixed the problem for me, as the line that breaks is behind a version check: https://github.com/margelo/react-native-quick-crypto/blob/26684914784f6d7f38a0dc5bc83708c0bcd6c1e7/cpp/Cipher/MGLCipherHostObject.cpp#L579C1-L579C31

Add something like this to your Podfile: pod "OpenSSL-Universal", "1.1.2200" with the version you want to use

@milanpro I'm not having an issue building for iOS, my issue is with Android. I have downgraded my system OpenSSL, but still get the same error. Any other ideas? Are you able to build Android?

 ➜  lib openssl version -a
OpenSSL 1.1.1v  1 Aug 2023
built on: Tue Aug  1 13:51:35 2023 UTC
platform: darwin64-arm64-cc
options:  bn(64,64) rc4(int) des(int) idea(int) blowfish(ptr)
compiler: clang -fPIC -arch arm64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -D_REENTRANT -DNDEBUG
OPENSSLDIR: "/opt/homebrew/etc/openssl@1.1"
ENGINESDIR: "/opt/homebrew/Cellar/openssl@1.1/1.1.1v/lib/engines-1.1"
Seeding source: os-specific

@boorad
Copy link
Collaborator

boorad commented May 12, 2024

fixed in #253

@boorad boorad closed this as completed May 12, 2024
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

3 participants