[Python-Dev] GPL'd python code vs Python2.6 linked against OpenSSL

Sandro Tosi morph at debian.org
Thu Mar 10 00:45:01 CET 2011


On Thu, Mar 10, 2011 at 00:32, Antoine Pitrou <solipsis at pitrou.net> wrote:
> Also, with the system Python 2.6 shipped on a Mandriva distribution:
>
> $ ldd /usr/bin/python
>        linux-vdso.so.1 =>  (0x00007fff8456d000)
>        libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0
> (0x00007f1a0b1e2000) libc.so.6 => /lib64/libc.so.6 (0x00007f1a0ae76000)
>        libdl.so.2 => /lib64/libdl.so.2 (0x00007f1a0ac72000)
>        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1a0aa56000)
>        libutil.so.1 => /lib64/libutil.so.1 (0x00007f1a0a853000)
>        libm.so.6 => /lib64/libm.so.6 (0x00007f1a0a5d1000)
>        /lib64/ld-linux-x86-64.so.2 (0x00007f1a0b583000)
>
> $ objdump -p /usr/bin/python | grep NEEDED
>  NEEDED               libpython2.6.so.1.0
>  NEEDED               libc.so.6

(just nitpicking) but it's there on a debian system:

$ ldd /usr/bin/python
	linux-vdso.so.1 =>  (0x00007ffff7bff000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00007f9abcb82000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007f9abc97e000)
	libutil.so.1 => /lib/libutil.so.1 (0x00007f9abc77a000)
	libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00007f9abc525000)
	libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x00007f9abc184000)
	libz.so.1 => /usr/lib/libz.so.1 (0x00007f9abbf6c000)
	libm.so.6 => /lib/libm.so.6 (0x00007f9abbcea000)
	libc.so.6 => /lib/libc.so.6 (0x00007f9abb989000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9abcdc4000)

$ objdump -p /usr/bin/python | grep NEEDED
  NEEDED               libpthread.so.0
  NEEDED               libdl.so.2
  NEEDED               libutil.so.1
  NEEDED               libssl.so.0.9.8
  NEEDED               libcrypto.so.0.9.8
  NEEDED               libz.so.1
  NEEDED               libm.so.6
  NEEDED               libc.so.6

It seems introduced by the patch debian/patches/setup-modules-ssl.diff
with description "# DP: Modules/Setup.dist: patch to build _hashlib
and _ssl extensions statically"

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the Python-Dev mailing list