cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: [PATCH] Correct linking for curl

From: Beber <beber_at_meleeweb.net>
Date: Wed, 22 Oct 2008 23:00:43 +0200

merc'her 22 Here da 08:34:04, « Dan Fandrich » a skriv :

> On Wed, Oct 22, 2008 at 02:00:59PM +0200, Beber wrote:
> > I understang, but actullay autoconf just don't define LIBCURL_LIBS as
> > needed. I'm using curl 7.18.2 and libtool 2.2.6a.
>
> Which operating system on which architecture? And what is the libtool
> command line and the link line that's displayed without the patch?

Compile architecture : gentoo-linux 2.6 x86_64-pc-linux-gnu
destination architecture : linux 2.6 i686-pc-linux-gnu

Here is the libtool command line :

..
checking for SSL_connect in -lssl... yes
checking openssl/x509.h usability... yes
checking openssl/x509.h presence... yes
checking for openssl/x509.h... yes
checking openssl/rsa.h usability... yes
checking openssl/rsa.h presence... yes
checking for openssl/rsa.h... yes
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... yes
checking for openssl/crypto.h... yes
checking openssl/pem.h usability... yes
checking openssl/pem.h presence... yes
checking for openssl/pem.h... yes
..
checking for yaSSL using OpenSSL compatibility mode... no
configure: Added /usr/local/ssl/lib to LD_LIBRARY_PATH
..
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -I/usr/n270/include -I/usr/n270/usr/include -L/usr/n270/lib -L/usr/n270/usr/lib -o curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o strtoofft.o strdup.o ../lib/libcurl.la -lz
mkdir .libs
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'
../lib/.libs/libcurl.so: undefined reference to `MD4_Update'
../lib/.libs/libcurl.so: undefined reference to `ASN1_STRING_to_UTF8'
../lib/.libs/libcurl.so: undefined reference to `GENERAL_NAMES_free'
../lib/.libs/libcurl.so: undefined reference to `PKCS12_free'
<snip>

-- 
Beber

-------------------------------------------------------------------
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-22