After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 387177 - gnome-python configure test needs to link to pthread
gnome-python configure test needs to link to pthread
Status: RESOLVED FIXED
Product: gnome-python
Classification: Deprecated
Component: general
2.16.x
Other FreeBSD
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-18 15:26 UTC by Roy Marples
Modified: 2007-01-06 15:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Link to -pthread (811 bytes, patch)
2006-12-18 15:27 UTC, Roy Marples
needs-work Details | Review
Use the same CC that built python (1.08 KB, patch)
2006-12-19 09:55 UTC, Roy Marples
none Details | Review

Description Roy Marples 2006-12-18 15:26:40 UTC
checking for python libraries... not found
configure: error: could not find Python headers or library

Downstream bug
http://bugs.gentoo.org/show_bug.cgi?id=158019

Patch to follow
Comment 1 Roy Marples 2006-12-18 15:27:24 UTC
Created attachment 78571 [details] [review]
Link to -pthread
Comment 2 Daniel Macks 2006-12-18 22:29:04 UTC
Seems like this is something of a platform-specific patch. Is it *always* required to do -pthread, or is it even always allowed? Based on the hoops that glib uses to figure out the threading flag, I don't think all compilers need or recognize -pthread. Can one use python's own distutils.sysconfig.get_config_vars() function to determine "what are the flags to use here?" instead of trying to write new autoconf tests?
Comment 3 Gustavo Carneiro 2006-12-18 23:56:39 UTC
Yes, I agree with dmacks; -lpthread is not very portable, -pthread is even less portable.
Comment 4 Roy Marples 2006-12-19 09:55:29 UTC
Created attachment 78616 [details] [review]
Use the same CC that built python

Well, the only thing we can use from the python Makefile is the CC line so this patch uses that.
Comment 5 Gustavo Carneiro 2006-12-19 11:01:49 UTC
well, I don't like overriding the user's $CC, but I guess we don't have any alternative...  thanks.
Comment 6 Roy Marples 2006-12-19 11:28:46 UTC
(In reply to comment #5)
> well, I don't like overriding the user's $CC, but I guess we don't have any
> alternative...  thanks.
> 

Only overriding the CC for the python test - that is it.
Maybe python should be putting CC flags required in another var or something?
Comment 7 Daniel Macks 2006-12-19 16:40:33 UTC
Could first check if PYTHON_CC is set in env, that way user could override.
Comment 8 Gustavo Carneiro 2007-01-06 15:43:03 UTC
Thanks.