Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300961 - dev-lang/python: libpythonX.Y.so has broken linkage when pthread is enabled on FreeBSD
Summary: dev-lang/python: libpythonX.Y.so has broken linkage when pthread is enabled o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL: http://bugs.python.org/issue7705
Whiteboard: 2.6.5, 3.1.2
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-14 10:20 UTC by Alexis Ballier
Modified: 2010-03-22 18:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix (python_fbsd_pthread.patch,515 bytes, patch)
2010-01-14 10:22 UTC, Alexis Ballier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2010-01-14 10:20:03 UTC
# 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.
Comment 1 Alexis Ballier gentoo-dev 2010-01-14 10:22:50 UTC
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?
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-14 17:26:00 UTC
Please report it in:
http://bugs.python.org/
Comment 3 Alexis Ballier gentoo-dev 2010-01-15 06:01:51 UTC
(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
Comment 4 Alexis Ballier gentoo-dev 2010-03-11 16:19:44 UTC
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.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-11 18:31:36 UTC
I'm planning to include it in the patchset for dev-lang/python-2.6.5, which will be released in next week.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-22 18:13:04 UTC
Fixed in 2.6.5 and 3.1.2.