[New-bugs-announce] [issue7705] libpython2.6.so is not linked correctly on FreeBSD when threads are enabled

Alexis Ballier report at bugs.python.org
Fri Jan 15 06:59:45 CET 2010


New submission from Alexis Ballier <aballier at gentoo.org>:

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.

----------
components: Build
files: python_fbsd_pthread.patch
keywords: patch
messages: 97800
nosy: aballier
severity: normal
status: open
title: libpython2.6.so is not linked correctly on FreeBSD when threads are enabled
versions: Python 2.6
Added file: http://bugs.python.org/file15890/python_fbsd_pthread.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7705>
_______________________________________


More information about the New-bugs-announce mailing list