[New-bugs-announce] [issue9972] PyGILState_XXX missing in Python builds without threads

Lisandro Dalcin report at bugs.python.org
Tue Sep 28 17:22:20 CEST 2010


New submission from Lisandro Dalcin <dalcinl at gmail.com>:

I've built Python-2.6.5 form with this :

$ ./configure --without-threads --prefix=$HOME/python-without-threads
$ make && make install

$ cd ~/python-without-threads/lib
$ nm libpython2.6.so | grep PyGILState
$ 

At Include/pystate.h,  PyGILState_{Ensure|Release} are not protected with #ifdef WITH_THREADS

At Python/pystate.c PyGILState_{Ensure|Release} are implemented in a block protected with #ifdef WITH_THREADS

AFAIK, this happens in all Python versions back to 2.3 and up to 3.2

----------
messages: 117531
nosy: dalcinl
priority: normal
severity: normal
status: open
title: PyGILState_XXX missing in Python builds without threads
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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


More information about the New-bugs-announce mailing list