Emerging curl 7.83.1 with "ldap" useflag yields the following compile error: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_decode_mech' /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_parse_url_auth_option' /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_cleanup' /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_can_authenticate' /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_continue' /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_start' /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_sasl_init' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:988: curl] Error 1 make[2]: Leaving directory '/var/tmp/portage/net-misc/curl-7.83.1/work/curl-7.83.1-abi_x86_64.amd64/src' make[1]: *** [Makefile:1475: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-misc/curl-7.83.1/work/curl-7.83.1-abi_x86_64.amd64/src' make: *** [Makefile:1229: all-recursive] Error 1 Disabling the ldap useflag makes it compile.
Created attachment 779675 [details] emerge --info
Please include the full build.log.
Created attachment 779684 [details] curl buildlog attached buildlog
Hi Sam, buildlog attached now, also: ~# emerge -pqv '=net-misc/curl-7.83.1::gentoo' [ebuild R ] net-misc/curl-7.83.1 USE="brotli ftp hsts http2 idn kerberos openssl progress-meter ssl threads zstd -adns -alt-svc -gnutls -gopher -imap -ipv6 -ldap -mbedtls (-nghttp3) -nss -pop3 (-quiche) -rtmp -samba -smtp -ssh -sslv3 -static-libs -telnet -test -tftp -verify-sig" ABI_X86="32 (64) (-x32)" CURL_SSL="openssl -gnutls -mbedtls -nss"
Sorry, last emerge output was missing the ldap useflag, I had already changed it back. When it fails to build it looks like this: ~# emerge -pqv '=net-misc/curl-7.83.1::gentoo' [ebuild R ] net-misc/curl-7.83.1 USE="brotli ftp hsts http2 idn kerberos ldap openssl progress-meter ssl threads zstd -adns -alt-svc -gnutls -gopher -imap -ipv6 -mbedtls (-nghttp3) -nss -pop3 (-quiche) -rtmp -samba -smtp -ssh -sslv3 -static-libs -telnet -test -tftp -verify-sig" ABI_X86="32 (64) (-x32)" CURL_SSL="openssl -gnutls -mbedtls -nss"
I have the same issues here too on those machines which have +ldap but -imap set. With +ldap and +imap it compiles fine.
Unable to repro with `USE=ldap -imap` for cURL 7.88.1. Please let me know if this is still occurring; if I don't hear back I'll close the ticket next time I look in on it.
Hi Matt, works here now with curl-7.87: --- emerge -pqv '=net-misc/curl-7.87.0-r2::gentoo' [ebuild R ] net-misc/curl-7.87.0-r2 USE="brotli ftp hsts http2 idn kerberos ldap openssl progress-meter ssl zstd -adns -alt-svc -gnutls -gopher -imap -ipv6 -mbedtls (-nghttp3) -nss -pop3 (-quiche) -rtmp (-rustls) -samba -smtp -ssh -sslv3 -static-libs -telnet -test -tftp -verify-sig -websockets" ABI_X86="32 (64) (-x32)" CURL_SSL="openssl -gnutls -mbedtls -nss (-rustls)" --- Thanks, ticket can be closed I presume.