# gcc foo.c -lpython2.6 /usr/lib/gcc/i686-gentoo-freebsd7.2/4.4.2/../../../libpython2.6.so: undefined reference to `pthread_create' collect2: ld returned 1 exit status libpython2.6.so doesn't get linked with -pthread; I'll attach a patch fixing this, the configure script does its magic but doesn't reuse that magic for setting LDSHARED.
Created attachment 216477 [details, diff] fix please merge it in the patchset this is probably worth forwarding upstream; is still maintained or should we go for python3?
Please report it in: http://bugs.python.org/
(In reply to comment #1) > this is probably worth forwarding upstream; is still maintained or should we go > for python3? (In reply to comment #2) > Please report it in: > http://bugs.python.org/ I assume that should read as "yes it is". http://bugs.python.org/issue7705
2 months later: ping If you don't apply nor comment within one week, I'll feel free to commit this. This changes only fbsd stuff anyway.
I'm planning to include it in the patchset for dev-lang/python-2.6.5, which will be released in next week.
Fixed in 2.6.5 and 3.1.2.