classification
Title: libpython2.6.so is not linked correctly on FreeBSD when threads are enabled
Type: Stage: patch review
Components: Build Versions: Python 3.1, Python 3.2, Python 2.7, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: aballier, benjamin.peterson, rpetrov
Priority: normal Keywords: needs review, patch

Created on 2010-01-15 05:59 by aballier, last changed 2010-03-14 19:11 by rpetrov. This issue is now closed.

Files
File name Uploaded Description Edit
python_fbsd_pthread.patch aballier, 2010-01-15 05:59 fix
Messages (3)
msg97800 - (view) Author: Alexis Ballier (aballier) Date: 2010-01-15 05:59
As reported in https://bugs.gentoo.org/show_bug.cgi?id=300961 :

# 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.
msg101057 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2010-03-14 14:24
Fixed in r78962.
msg101061 - (view) Author: Roumen Petrov (rpetrov) * Date: 2010-03-14 19:11
the applied patch is not correct - please replace " with '
History
Date User Action Args
2010-03-14 19:11:02rpetrovsetnosy: + rpetrov
messages: + msg101061
2010-03-14 14:24:56benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg101057

resolution: fixed
2010-03-14 14:09:48Arfreversetversions: + Python 3.1, Python 2.7, Python 3.2
2010-01-15 15:04:55brian.curtinsetpriority: normal
keywords: + needs review
stage: patch review
2010-01-15 05:59:44aballiercreate