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

8.5.0: build on macos fails with "call to undeclared function 'TLSCipherNameForNumber'" #12474

Closed
cajus opened this issue Dec 6, 2023 · 2 comments
Labels
appleOS specific to an Apple operating system build TLS

Comments

@cajus
Copy link

cajus commented Dec 6, 2023

I did this

I configured using

./configure '--with-libidn2=no' '--with-librtmp=no' '--with-libpsl=no' '--with-schannel=no' '--with-secure-transport=yes' '--with-brotli=no' '--enable-shared=no' '--enable-static=yes' '--enable-dict=yes' '--enable-file=yes' '--enable-ftp=no' '--enable-gopher=no' '--enable-http=yes' '--enable-imap=no' '--enable-ldap=no' '--enable-mqtt=no' '--enable-pop3=no' '--enable-rtsp=no' '--enable-smb=no' '--enable-smtp=no' '--enable-telnet=no' '--enable-tftp=no' '--enable-debug=no' '--enable-ares=no' '--enable-threaded-resolver=yes' '--enable-cookies=yes' '--enable-ipv6=yes' '--enable-manual=no' '--enable-verbose=no' '--enable-symbol-hiding=no' '--enable-unix-sockets=no' '--without-libssh2' '--without-nghttp2' '--with-zlib=/Users/ciuser/.conan-qt6/.conan/data/zlib/1.3/bje/stable/package/096250e9069123a3fb7f525e4291e96213b92f4f' '--with-zstd=no' '--disable-rtsp' '--disable-ntlm' '--disable-ntlm-wb' '--prefix=/Users/ciuser/.conan-qt6/.conan/data/libcurl/8.5.0/bje/stable/package/be0fd1933629acbdec0d74d03e57287da81728a0' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share' 

However, when running make, I got the following errors:

vtls/sectransp.c:2776:15: error: call to undeclared function 'TLSCipherNameForNumber'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
              TLSCipherNameForNumber(cipher));
              ^
vtls/sectransp.c:2789:15: error: call to undeclared function 'TLSCipherNameForNumber'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
              TLSCipherNameForNumber(cipher));
              ^
vtls/sectransp.c:2793:15: error: call to undeclared function 'TLSCipherNameForNumber'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
              TLSCipherNameForNumber(cipher));
              ^
vtls/sectransp.c:2799:15: error: call to undeclared function 'TLSCipherNameForNumber'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
              TLSCipherNameForNumber(cipher));
              ^

Complete log is here.

I expected the following

To compile cleanly.

curl/libcurl version

curl 8.5.0

operating system

Darwin Mac-Studio.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Oct 4 21:26:23 PDT 2023; root:xnu-8796.141.3.701.17~4/RELEASE_ARM64_T6000 arm64

@icing
Copy link
Contributor

icing commented Dec 6, 2023

It is the --enable-verbose=no that leads to TLSCipherNameForNumber not being defined.

@icing
Copy link
Contributor

icing commented Dec 6, 2023

Made PR #12476 to fix this.

@vszakats vszakats added build appleOS specific to an Apple operating system labels Dec 6, 2023
@bagder bagder added the TLS label Dec 6, 2023
@bagder bagder closed this as completed in 8b99e6f Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appleOS specific to an Apple operating system build TLS
Development

No branches or pull requests

4 participants