cURL / Mailing Lists / curl-library / Single Mail

curl-library

Fedora 13 issue building curl

From: Quanah Gibson-Mount <quanah_at_zimbra.com>
Date: Fri, 10 Sep 2010 14:05:13 -0700

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:

[root_at_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?

--Quanah

--
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-10