cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: [PATCH] Correct linking for curl

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 22 Oct 2008 15:50:32 -0700

On Wed, Oct 22, 2008 at 11:00:43PM +0200, Beber wrote:
> Compile architecture : gentoo-linux 2.6 x86_64-pc-linux-gnu
> destination architecture : linux 2.6 i686-pc-linux-gnu

Are you building from the curl source tar ball or from an ebuild? Gentoo
includes a patch that messes with the LDFLAGS, so it would be nice to
eliminate that as a source of the problem.

> i686-pc-linux-gnu-gcc -I/usr/n270/include -I/usr/n270/usr/include -o .libs/curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o strtoofft.o strdup.o -L/usr/n270/lib -L/usr/n270/usr/lib ../lib/.libs/libcurl.so -lz
> /usr/libexec/gcc/i686-pc-linux-gnu/ld: warning: libssl.so.0.9.8, needed by ../lib/.libs/libcurl.so, not found (try using -rpath or -rpath-link)
> /usr/libexec/gcc/i686-pc-linux-gnu/ld: warning: libcrypto.so.0.9.8, needed by ../lib/.libs/libcurl.so, not found (try using -rpath or -rpath-link)
> ../lib/.libs/libcurl.so: undefined reference to `SSL_connect'
> ../lib/.libs/libcurl.so: undefined reference to `TLSv1_client_method'
> ../lib/.libs/libcurl.so: undefined reference to `DES_set_odd_parity'
> ../lib/.libs/libcurl.so: undefined reference to `ENGINE_get_next'
> <snip>

What does the dependency_libs line say in the lib/libcurl.la file? Are all
those dependent libraries available on your system? libtool should
be adding any necessary libs on its own when necessary, but on an ELF
system, there shouldn't be a need for more. libtool uses very similar gcc
command-line when linking on my x86 system and it works fine.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-10-23