cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl problem after libssh2 update

From: Jochen Roderburg <Roderburg_at_uni-koeln.de>
Date: Sun, 05 Apr 2009 14:07:28 +0200

Zitat von Jochen Roderburg <Roderburg_at_uni-koeln.de>:

>
> Zitat von Jochen Roderburg <Roderburg_at_uni-koeln.de>:
>
>> curl 7.19.4 (i686-pc-linux-gnu) libcurl/7.19.4 OpenSSL/0.9.8k
>> zlib/1.2.3 libidn/1.13 libssh2/1.0
>> Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
>> Features: IDN Largefile NTLM SSL libz
>>
>> After installation of the just released libssh2 v1.1 I get now
>>
>> curl: symbol lookup error: /usr/local/lib/libcurl.so.4: undefined
>> symbol: zlibVersion
>
> Well, re-building curl made the problem disappear.
>
> Still very strange, could the missing "zlibVersion" have been hidden
> in the libssh2 v1.0?

Further inspection of the involved shared libraries shows that this
indeed seems to be the case.

nm /usr/local/lib/libssh2.so.1.0.0 | grep zlib
0002c030 d libssh2_comp_method_zlib
00007e00 t libssh2_comp_method_zlib_alloc
00007ed0 t libssh2_comp_method_zlib_comp
00007e60 t libssh2_comp_method_zlib_dtor
00007e20 t libssh2_comp_method_zlib_free
000083a0 t libssh2_comp_method_zlib_init
000220d0 T zlibCompileFlags
000220c0 T zlibVersion

nm /usr/local/lib/libssh2.so.1.0.1 | grep zlib
0002c030 d comp_method_zlib
00007300 t comp_method_zlib_alloc
000073d0 t comp_method_zlib_comp
00007360 t comp_method_zlib_dtor
00007320 t comp_method_zlib_free
000078a0 t comp_method_zlib_init
00021e60 t zlibCompileFlags
00021e50 t zlibVersion

The 1.0 version has zlibVersion as external.

This excerpt form the libssh2 ChangeLog looks like it is responsible
for the difference:

- (Mar 17 2009) Simon Josefsson:

   Added a Libtool -export-symbols-regex flag to reduce the number of
   exported symbols in shared libraries. Reported by Mikhail Gusarov.

Best regards,
Jochen Roderburg
RRZK
University of Cologne
Robert-Koch-Str. 10 Tel.: +49-221/478-7024
D-50931 Koeln E-Mail: Roderburg_at_Uni-Koeln.DE
Germany

-------------------------------------------------------------------
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 2009-04-05