curl-users
Re: Build problem on Linux with 7.10.3
Date: Fri, 14 Mar 2003 14:26:07 +0100
Hello Christian,
Christian Knoke wrote:
> On Fri, Mar 14, 2003 at 12:09:48PM +0100, Götz Babin-Ebell wrote:
>>Christian Knoke wrote:
>>>On Fri, Mar 14, 2003 at 12:04:42AM +0100, Götz Babin-Ebell wrote:
>>>>Please, what is your compile option ?
>>>>gcc ... -I/usr/include -I/usr/ssl/include ... ?
>>
>>>Not sure what you mean. In the Makefile is a line:
>>>
>>>CPPFLAGS = -I/usr/ssl/include/openssl -I/usr/ssl/include
>>
>>So you get your OpenSSL headers from /usr/ssl/include and your
>>library from /usr/lib ?
>
> No, they are in /usr/include/openssl
But first the headers are searched in /usr/ssl/include...
> Main part is resolved now:
> While the static libcrypto.a was up to date, there were old versions of
> libcrypto.so and libssl.so of 0.9.6 hanging around in /usr/lib.
> I removed them, and was able to compile curl with this configuration:
>
> CPPFLAGS="-I/usr/include/openssl -I/usr/include" LDFLAGS="-L/usr/lib" \
> ../configure --prefix=/usr --with-ssl=/usr/ssl
>
> make completed ok, but warnings like this had been given:
>
> gcc -g -O2 -o .libs/lib504 lib504.o first.o -L/usr/lib -L/usr/ssl/lib
> .../../lib/.libs/libcurl.so -lz -lz -lz -lssl -lcrypto -ldl -lz
> /usr/i486-suse-linux/bin/ld: warning: libssl.so.0.9.6, needed by
> .../../lib/.libs/libcurl.so, not found (try using -rpath or -rpath-link)
> /usr/i486-suse-linux/bin/ld: warning: libcrypto.so.0.9.6, needed by
> .../../lib/.libs/libcurl.so, not found (try using -rpath or -rpath-link)
> creating lib504
the curl librarie complained that it was build
against dynamic OpenSSL libraries.
> I didn't test whether curl was operating, though.
ldd curl
would help...
> Reinstall of openssl 0.9.7a, this time *with* shared libraries, made the
> warnings disappear, and curl is operating.
OK.
> Unfortunately, mutt stopped working after the remove of libcrypto.so.0.9.6
>
> That is why my /usr/lib is looking like this now:
>
> max:/usr/lib # ls -l libcrypto* libssl*
> -rw-r--r-- 1 root root 1772324 Mar 14 12:45 libcrypto.a
> lrwxrwxrwx 1 root root 14 Mar 14 12:45 libcrypto.so -> libcrypto.so.0
> lrwxrwxrwx 1 root root 18 Mar 14 12:45 libcrypto.so.0 -> libcrypto.so.0.9.7
> -rwxr-xr-x 1 root root 922986 Sep 24 2001 libcrypto.so.0.9.6
> -r-xr-xr-x 1 root root 1160211 Mar 14 12:45 libcrypto.so.0.9.7
> -rw-r--r-- 1 root root 272216 Mar 14 12:45 libssl.a
> lrwxrwxrwx 1 root root 11 Mar 14 12:45 libssl.so -> libssl.so.0
> lrwxrwxrwx 1 root root 15 Mar 14 12:45 libssl.so.0 -> libssl.so.0.9.7
> -rwxr-xr-x 1 root root 205656 Sep 24 2001 libssl.so.0.9.6
> -r-xr-xr-x 1 root root 214805 Mar 14 12:45 libssl.so.0.9.7
To keep more than one version of a dynamic library in the library path
was the reason for the naming shema...
> I guess I have to recompile mutt to let it use 0.9.7.
No need as long as you keep the 0.9.6 libraries around.
And I belive somewhere in your system are some other programs
linked against OpenSSL 0.9.6 and requiring the old libraries...
Bye
Goetz
-- Goetz Babin-Ebell, TC TrustCenter AG, http://www.trustcenter.de Sonninstr. 24-28, 20097 Hamburg, Germany Tel.: +49-(0)40 80 80 26 -0, Fax: +49-(0)40 80 80 26 -126
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
- application/x-pkcs7-signature attachment: S/MIME Cryptographic Signature