python 2.5 not linking with threads on 7.0 i386?

Brooks Davis brooks at FreeBSD.org
Sun Sep 14 20:33:14 UTC 2008


It looks like the python 2.5 port is failing to actually link with a
threading library on 7.0 i386.  I was having issues with psycopg2 causing
python to hang in state ucond when loaded on one machine and after a bunch of
investigation discovered that while python was set to link with threads, ldd on
python didn't show a threading library:

/usr/local/bin/python:
	libutil.so.7 => /lib/libutil.so.7 (0x28157000)
	libm.so.5 => /lib/libm.so.5 (0x28164000)
	libc.so.7 => /lib/libc.so.7 (0x28179000)

I replicated this on another i386 machine, but only after discovering this
isn't the case on a couple amd64 machines:

/usr/local/bin/python:
	libutil.so.7 => /lib/libutil.so.7 (0x80070e000)
	libm.so.5 => /lib/libm.so.5 (0x80081d000)
	libthr.so.3 => /lib/libthr.so.3 (0x800937000)
	libc.so.7 => /lib/libc.so.7 (0x800a4d000)

Adjusting the postgres config the not link against libthr (via libintl)
seems to have fixed the problem I was seeing which leads me to belive
this really is a threading support issue.

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-python/attachments/20080914/a2dda1b1/attachment.pgp


More information about the freebsd-python mailing list