Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Cannot compile for ios with ssl_root flag target to OpenSSL -1.1.1s error in "rtc_base/openssl_certificate.cc" #684

Open
aweffr opened this issue Feb 8, 2023 · 0 comments

Comments

@aweffr
Copy link

aweffr commented Feb 8, 2023

Environment:
Machine: Apple M2 Max
XCode: 16.2
OpenSSL: 1.1.1s (target: ios-cross-arm64)
Branch: 5.0.x

build command:

"python3 scripts/build.py --skip_tests --arch arm64 --ssl_root /Users/aweffr/mac-dev/owt-client-native-build/openssl/bin/iPhoneOS16.2-arm64.sdk"

../../third_party/webrtc/rtc_base/openssl_certificate.cc:104:22: error: use of undeclared identifier 'X509_get_notBefore'
  if (!X509_time_adj(X509_get_notBefore(x509.get()), params.not_before,
                     ^
../../third_party/webrtc/rtc_base/openssl_certificate.cc:106:22: error: use of undeclared identifier 'X509_get_notAfter'
      !X509_time_adj(X509_get_notAfter(x509.get()), params.not_after,
                     ^
../../third_party/webrtc/rtc_base/openssl_certificate.cc:278:28: error: use of undeclared identifier 'X509_get_notAfter'
  ASN1_TIME* expire_time = X509_get_notAfter(x509_);

../../third_party/webrtc/rtc_base/openssl_adapter.cc:189:8: error: use of undeclared identifier 'SSL_library_init'
  if (!SSL_library_init())
       ^
../../third_party/webrtc/rtc_base/openssl_adapter.cc:193:3: error: use of undeclared identifier 'SSL_load_error_strings'
  SSL_load_error_strings();
  ^
../../third_party/webrtc/rtc_base/openssl_adapter.cc:196:3: error: use of undeclared identifier 'OpenSSL_add_all_algorithms'
  OpenSSL_add_all_algorithms();
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant