[issue23072] 2.7.9 multiprocessing compile conflict

aab report at bugs.python.org
Wed Dec 17 06:37:53 CET 2014


New submission from aab:

python-2.7.9/Modules/_multiprocessing/multiprocessing.c
python-2.7.9/Modules/_multiprocessing/semaphore.c

The compile lines for the above two files have "-DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDWAIT=0" in them.  The cpp code in those files uses "#ifdef" and "#ifndef" with those symbols commensurate with the #define/#undef commands used in 'pyconfig.h'. In my case, the biggest problem is the "-DHAVE_SEM_TIMEDWAIT=0" which DEFINES that symbol so that the "#ifndef HAVE_SEM_TIMEDWAIT" in semaphore.c fails to do what the coder wanted.  Being very lazy, I just hacked the files to use "#if SYMBOL" and "#if ! SYMBOL".  Worked fine.

Solaris 2.8
Studio 11 Compiler Suite

--  Thanks,
--    aab

----------
components: Build
messages: 232801
nosy: aab at purdue.edu
priority: normal
severity: normal
status: open
title: 2.7.9 multiprocessing compile conflict
versions: Python 2.7

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


More information about the Python-bugs-list mailing list