R. David Murray <[email protected]> added the comment:
I compiled the referenced test program on Gentoo, where my Mesa library
is compiled with NPTL:
rdmur...@partner:~>equery uses mesa
[ Searching for packages matching mesa... ]
[ Legend : Left column (U) - USE flags from make.conf ]
[ : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for media-libs/mesa-7.3 ]
U I
<snip>
+ + nptl
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-I/usr/include -I/usr/local/include -I./Include -I. -c spam.cc -o spam.o
gcc -pthread -shared spam.o -L/usr/lib -L/usr/local/lib -Wl,-R/usr/lib
-lGL -o build/lib.linux-i686-2.7/spam.so -lstdc++
rdmur...@partner:~/python/trunk>strings build/lib.linux-i686-2.7/spam.so
|grep -i libgl
libGL.so.1
>./python
Python 2.7a0 (unknown, Mar 29 2009, 16:10:14)
[GCC 4.1.2 (Gentoo 4.1.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import spam
>>> spam.system('ls')
this be cerrzsh: segmentation fault ./python
Without the '-lGL' it works fine.
Now, is it a bug in Python, or Mesa?
I haven't checked if it is still a problem in py3k since spam.cc
does not compile cleanly under py3k.
----------
nosy: +bitdancer
resolution: works for me ->
status: pending -> open
versions: +Python 2.7 -Python 2.5
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1730372>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com