[Python-modules-team] Bug#658952: closed by Sandro Tosi <morph at debian.org> (Bug#658952: fixed in pycurl 7.19.0-5)

Jakub Wilk jwilk at debian.org
Sat Feb 11 17:44:45 UTC 2012


>     - added libssh2-1-dev to build-depends; thanks to Jakub Wilk for the report;
>       Closes: #658952

I wonder if this is the correct solution. Some time ago librtmp-dev was 
added to Build-Depends for fix a similar FTBFS. This looks dubious to 
me, as there are no references to either of these libraries in the 
pycurl code.

Let's look at the linking command:

>| gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
>build/temp.linux-i686-2.6/src/pycurl.o -L/usr/lib/i386-linux-gnu -lcurl 
>-lidn -lssh2 -llber -llber -lldap -lrt -lgssapi_krb5 -lz -lgnutls 
>-lgcrypt -lrtmp -o build/lib.linux-i686-2.6/pycurl.so -Wl,-z,relro 
>/usr/lib/i386-linux-gnu/libcurl.a -Wl,-z,relro

It contains:
- tons of libraries that pycurl doesn't use directly;
- two references to libcurl: "-lcurl" and later 
"/usr/lib/i386-linux-gnu/libcurl.a" (!).

Apparently that's because setup.py uses "curl-config --static-libs" to 
construct the linking command. But that doesn't sound right, unless you 
want to compile stuff statically.

-- 
Jakub Wilk





More information about the Python-modules-team mailing list