On Fri, 10 Sep 2010 14:05:13 -0700 Quanah Gibson-Mount <[email protected]> wrote:
> Trying to build curl on Fedora 13 consistently fails with: > > /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -g0 > -Wno-system-headers -L/opt/zimbra/openssl-1.0.0a/lib > -L/opt/zimbra/heimdal-1.3.3/lib -L/opt/zimbra/curl-7.21.1/lib > -R/opt/zimbra/openssl-1.0.0a/lib -R/opt/zimbra/heimdal-1.3.3/lib > -R/opt/zimbra/curl-7.21.1/lib -L/opt/zimbra/heimdal-1.3.3/lib > -L/opt/zimbra/openssl-1.0.0a/lib -L/usr/lib64/lib -L/usr/lib64/lib -o > curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o > homedir.o curlutil.o os-specific.o strtoofft.o strdup.o rawstr.o > nonblock.o ../lib/libcurl.la -lz libtool: link: gcc -O2 -g0 > -Wno-system-headers -o .libs/curl main.o hugehelp.o urlglob.o > writeout.o writeenv.o getpass.o homedir.o curlutil.o os-specific.o > strtoofft.o strdup.o rawstr.o nonblock.o > -L/opt/zimbra/openssl-1.0.0a/lib -L/opt/zimbra/heimdal-1.3.3/lib > -L/opt/zimbra/curl-7.21.1/lib > -L/usr/lib64/lib ../lib/.libs/libcurl.so -lz -pthread -Wl,-rpath > -Wl,/opt/zimbra/curl-7.21.1/lib -Wl,-rpath > -Wl,/opt/zimbra/openssl-1.0.0a/lib -Wl,-rpath > -Wl,/opt/zimbra/heimdal-1.3.3/lib /usr/bin/ld: curlutil.o: undefined > reference to symbol 'clock_gettime@@GLIBC_2.2.5' /usr/bin/ld: note: > 'clock_gettime@@GLIBC_2.2.5' is defined in DSO /lib64/librt.so.1 so > try adding it to the linker command line /lib64/librt.so.1: could not > read symbols: Invalid operation collect2: ld returned 1 exit status > make[3]: *** [curl] Error 1 > make[3]: Leaving directory > `/home/build/p4/main/ThirdParty/curl/curl-7.21.1/src' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/home/build/p4/main/ThirdParty/curl/curl-7.21.1/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/build/p4/main/ThirdParty/curl/curl-7.21.1' make: *** [build] > Error 2 > > > If I add the librt library to the command, it works: > > [r...@zre-f13-64 src]# gcc -O2 -g0 -Wno-system-headers -o .libs/curl > main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o > curlutil.o os-specific.o strtoofft.o strdup.o rawstr.o nonblock.o > -L/opt/zimbra/openssl-1.0.0a/lib -L/opt/zimbra/heimdal-1.3.3/lib > -L/opt/zimbra/curl-7.21.1/lib > -L/usr/lib64/lib ../lib/.libs/libcurl.so -lz -lrt -pthread -Wl,-rpath > -Wl,/opt/zimbra/curl-7.21.1/lib -Wl,-rpath > -Wl,/opt/zimbra/openssl-1.0.0a/lib -Wl,-rpath > -Wl,/opt/zimbra/heimdal-1.3.3/lib > > > I don't have this issue on the other 20 or so OSes I build curl on. > Any idea why curl is failing to pick up librt? Default linker behaviour was changed from Fedora 13 onwards: http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking Paul. ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
