jasonacox / Build-OpenSSL-cURL

Scripts to build OpenSSL, HTTP/2 (nghttp2) and cURL (libcurl) for MacOS, iOS and tvOS devices (x86_64, armv7, armv7s, arm64, arm64e). Now Supporting Apple Silicon, OpenSSL 3.0.x with TLS 1.3 and Mac Catalyst builds.
MIT License
419 stars 125 forks source link

Undefined symbols _RTMP_Alloc #29

Closed qokelate closed 11 months ago

qokelate commented 5 years ago

library: libcurl-7.64.1-openssl-1.1.1b-nghttp2-1.37.0

Undefined symbols for architecture x86_64:
  "_RTMP_Alloc", referenced from:
      _rtmp_setup_connection in libcurl.a(libcurl_la-curl_rtmp.o)
  "_RTMP_Close", referenced from:
      _rtmp_disconnect in libcurl.a(libcurl_la-curl_rtmp.o)
  "_RTMP_Connect1", referenced from:
      _rtmp_connect in libcurl.a(libcurl_la-curl_rtmp.o)
  "_RTMP_ConnectStream", referenced from:
      _rtmp_do in libcurl.a(libcurl_la-curl_rtmp.o)
  "_RTMP_Free", referenced from:
      _rtmp_setup_connection in libcurl.a(libcurl_la-curl_rtmp.o)
      _rtmp_disconnect in libcurl.a(libcurl_la-curl_rtmp.o)
  "_RTMP_Init", referenced from:
      _rtmp_setup_connection in libcurl.a(libcurl_la-curl_rtmp.o)
  "_RTMP_Read", referenced from:
      _rtmp_recv in libcurl.a(libcurl_la-curl_rtmp.o)
  "_RTMP_SetBufferMS", referenced from:
      _rtmp_setup_connection in libcurl.a(libcurl_la-curl_rtmp.o)
  "_RTMP_SetupURL", referenced from:
      _rtmp_setup_connection in libcurl.a(libcurl_la-curl_rtmp.o)
  "_RTMP_Write", referenced from:
      _rtmp_send in libcurl.a(libcurl_la-curl_rtmp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

where are the symbols?

jasonacox commented 4 years ago

I see this is for the x86_64 arch. Is this from the build script? Please pull the latest and try the build again.

MarcelKlammer commented 4 years ago

Ran into the same issue.

changed the configure lines to only include http and https:

--disable-shared \ --disable-ftp \ --disable-file \ --disable-ldap \ --disable-dict \ --disable-telnet \ --disable-tftp \ --disable-rtsp \ --disable-pop3 \ --disable-imap \ --disable-smtp \ --disable-gopher \ --disable-ares \ --disable-smb \ --disable-debug \ --disable-cookies \ --disable-manual \ --disable-proxy \ --disable-unix-sockets \ --without-libidn \ --without-libidn2 \ --without-librtmp \ --without-zlib \ --enable-static \ --with-random=/dev/urandom \

jasonacox commented 3 years ago

I have not been able to reproduce, even on new MacOS build hosts. Is this still occurring with latest build script?

jasonacox commented 11 months ago

Closing with the new update - please open if it is still an issue.