Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 222639

Summary: net-libs/libopkele-0.3.2 fails to configure with LDFLAGS="-Wl,--as-needed"
Product: Gentoo Linux Reporter: Samuli Suominen (RETIRED) <ssuominen>
Component: Current packagesAssignee: Benedikt Böhm (RETIRED) <hollow>
Status: RESOLVED FIXED    
Severity: normal CC: apache-bugs, gentoodoo
Priority: High    
Version: 2008.0_beta1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    

Description Samuli Suominen (RETIRED) gentoo-dev 2008-05-18 13:00:55 UTC
configure output,

checking for curl-config... /usr/bin/curl-config
checking for the version of libcurl... 7.18.1
checking whether libcurl is usable... no
configure: error: no required libcurl library. get one from http://curl.haxx.se/

config.log output,

configure:20469: x86_64-pc-linux-gnu-gcc -o conftest -O2 -pipe -march=k8   -Wl,-O1,--as-needed -lcurl -lssl -lcrypto -lldap -L/usr/lib64 -Wl,-rpath -Wl,/usr/lib64 -O2 -pipe -march=k8 -Wl,-O1,--as-needed -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -L/usr/lib64 -Wl,-rpath -Wl,/usr/lib64 -O2 -pipe -march=k8 -Wl,-O1,--as-needed -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lssl -lcrypto -ldl -lz conftest.c  >&5
/var/tmp/portage/net-libs/libopkele-0.3.2/temp/ccTQ9nBh.o: In function `main':
conftest.c:(.text+0x10): undefined reference to `curl_easy_setopt'
collect2: ld returned 1 exit status
Comment 1 Michael Krelin 2008-05-18 18:31:12 UTC
Thanks, Samuli:

http://git.klever.net/view/cgit/kin/libopkele.git/patch/?id=89795a

This patch should apply fine to the libopkele-0.3.2 as well
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2008-05-19 11:07:15 UTC
thanks, appears to work.. (or it was using libcurl.m4 from system after autoreconf)