owt-client-native icon indicating copy to clipboard operation
owt-client-native copied to clipboard

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

Open aweffr opened this issue 3 years ago • 0 comments

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();

aweffr avatar Feb 08 '23 16:02 aweffr