Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665444 - net-misc/curl: libcurl.so: undefined reference to `SSL_CTX_set_srp_username'
Summary: net-misc/curl: libcurl.so: undefined reference to `SSL_CTX_set_srp_username'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-07 15:05 UTC by pac
Modified: 2018-10-02 11:59 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pac 2018-09-07 15:05:59 UTC
dev-vcs/git refuses to emerge with webdav and curl USE flags enabled, due to an issue with curl. Using >net-misc/curl-7.60.0 to hold back curl, git emerges fine.

/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib64/libcurl.so: undefined reference to `SSL_CTX_set_srp_password'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../x86_64-pc-linux-gnu-gcc  -O2 -pipe -Wall -I. -DGIT_HOST_CPU="\"x86_64\"" -DUSE_LIBPCRE2 -DHAVE_ALLOCA_H -DUSE_CURL_FOR_IMAP_SEND -DSHA1_BLK  -DHAVE_PATHS_H -DHAVE_DEV_TTY -DHAVE_CLOCK_GETTIME -DHAVE_CLOCK_MONOTONIC -DHAVE_GETDELIM  -DFREAD_READS_DIRECTORIES -DNO_STRLCPY -DSHELL_PATH='"/bin/sh"' -DPAGER_ENV='"LESS=FRX LV=-c"' -o git-http-fetch -Wl,-O1 -Wl,--as-needed  http.o http-walker.o http-fetch.o common-main.o \
    -lcurl libgit.a xdiff/lib.a  -lpcre2-8 -lz -lpthread -lrt
../lib64/libcurl.so: undefined reference to `SSL_CTX_set_srp_username'
collect2: error: ld returned 1 exit status
make: *** [Makefile:2225: git-imap-send] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib64/libcurl.so: undefined reference to `SSL_CTX_set_srp_password'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib64/libcurl.so: undefined reference to `SSL_CTX_set_srp_username'
collect2: error: ld returned 1 exit status
make: *** [Makefile:2229: git-http-fetch] Error 1
Comment 1 Tomáš Mózes 2018-09-07 15:32:38 UTC
Please attach the full build log and the output of $(emerge --info).
Comment 2 Tomáš Mózes 2018-09-07 15:37:59 UTC
Which combination is problematical? 

With curl-7.61.1 and git-2.18.0 it works just fine on my ~amd64 machine.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2018-09-07 16:44:08 UTC
No issues here with CURL_SSL="gnutls" in make.conf
Comment 4 Simon 2018-09-10 13:51:07 UTC
Can confirm, happens with a clean amd64 stage3 when emerging git (2.16.4), no additional USE flags set.
The USE flags that are set by default are
dev-vcs/git-2.16.4::gentoo  USE="blksha1 curl gpg iconv nls pcre pcre-jit perl python threads webdav -cgi -cvs -doc -emacs -gnome-keyring -highlight -libressl -mediawiki -mediawiki-experimental (-ppcsha1) -subversion {-test} -tk -xinetd" PYTHON_TARGETS="python2_7"

Noticed because it broke our CI https://travis-ci.org/gentoo-audio/audio-overlay/jobs/426649841#L2372
Comment 5 Arfrever Frehtes Taifersar Arahesis 2018-09-10 21:01:26 UTC
"libcurl.so: undefined reference to `SSL_CTX_set_srp_username'" would be a bug in net-misc/curl, not dev-vcs/git.

SSL_CTX_set_srp_username is supposed to be defined in libssl.so provided by dev-libs/openssl or dev-libs/libressl.

Which version of dev-libs/openssl or dev-libs/libressl do you use?
Which version of net-misc/curl and with what USE flags?
Comment 6 Simon 2018-09-10 21:13:34 UTC
The ones I have are all the default from a clean stage3

66358072ee30 / # eix dev-libs/openssl
[I] dev-libs/openssl
     Available versions:  
     (0.9.8) 0.9.8z_p8^d 0.9.8z_p8-r1^d
     (0)    1.0.2o-r3^d 1.0.2o-r6^d 1.0.2p^d [M]~1.1.0i(0/1.1)^d [M]**1.1.1_pre8(0/1.1)^d [M]**1.1.1_pre9(0/1.1)^d
       {+asm bindist gmp kerberos rfc3779 sctp sslv2 (+)sslv3 static-libs test (+)tls-heartbeat vanilla zlib ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" CPU_FLAGS_X86="sse2" ELIBC="musl"}
     Installed versions:  1.0.2p(23:53:08 09/09/18)(asm bindist sslv3 tls-heartbeat zlib -gmp -kerberos -rfc3779 -sctp -sslv2 -static-libs -test -vanilla ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" CPU_FLAGS_X86="sse2")
     Homepage:            https://www.openssl.org/
     Description:         full-strength general purpose cryptography library (including SSL and TLS)

66358072ee30 / # eix net-misc/curl
[I] net-misc/curl
     Available versions:  7.60.0^t ~7.60.0-r1^t 7.61.0^t 7.61.1^t {adns brotli http2 idn ipv6 kerberos ldap metalink rtmp samba ssh ssl static-libs test threads ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" CURL_SSL="axtls gnutls libressl mbedtls nss +openssl winssl" ELIBC="Winnt"}
     Installed versions:  7.61.1^t(23:55:42 09/09/18)(ipv6 ssl -adns -brotli -http2 -idn -kerberos -ldap -metalink -rtmp -samba -ssh -static-libs -test -threads ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" CURL_SSL="openssl -axtls -gnutls -libressl -mbedtls -nss -winssl" ELIBC="-Winnt")
     Homepage:            https://curl.haxx.se/
     Description:         A Client that groks URLs
Comment 7 Arfrever Frehtes Taifersar Arahesis 2018-09-10 21:34:01 UTC
Show:
scanelf -qF "%F: %n" /usr/lib64/libcurl.so
scanelf -qs +SSL_CTX_set_srp_password /usr/lib64/libssl.so
Comment 8 Anthony Basile gentoo-dev 2018-10-02 11:21:44 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #7)
> Show:
> scanelf -qF "%F: %n" /usr/lib64/libcurl.so
> scanelf -qs +SSL_CTX_set_srp_password /usr/lib64/libssl.so

okay no response from the original poster and it can't be reproduced.
Comment 9 Simon 2018-10-02 11:59:42 UTC
FYI I can't reproduce this anymore even though the versions of dev-vcs/git, net-misc/curl and dev-libs/openssl are the same as they were. Not really sure how this could be fixed when there are no changes but it is.