Closed GoogleCodeExporter closed 9 years ago
Tried adding _multiprocessing/semaphore.c to the multiprocessing module sources
in the Modules file at toplevel for 2.7 -- sadly not that easy.
Original comment by kerg...@gmail.com
on 28 Oct 2011 at 8:11
Thank you for submitting this bug report, thus letting me know about the
problem.
For Python 2.7 on Linux, the configure script sets POSIX_SEMAPHORES_NOT_ENABLED
to 1, possibly because of a non-working sem_init(3) implementation in uClibc
used for compiling StaticPython. This needs further investigation, maybe it's
possible to make it work.
For Python 3.2 we get another error message, related to dependencies and the
semaphore.o file.
For Mac OS X, it needs further investigation whether we should use semaphore.c
and whether it works.
Original comment by pts...@gmail.com
on 29 Oct 2011 at 11:48
Fixed in r281. The most important part of the fix was adding fixsemaphore() to
build.sh, to prevent pyconfig.h from defining POSIX_SEMAPHORES_NOT_ENABLED. It
works on both Linux and Mac OS X now.
Again, thank you for reporting the problem, and thank you for writing a
detailed bug report.
Original comment by pts...@gmail.com
on 30 Oct 2011 at 11:59
Thanks for the quick fix. Love the project, find it extremely useful,
particularly on old hosts which are stuck on old python versions.
Original comment by kerg...@gmail.com
on 30 Oct 2011 at 2:32
Original issue reported on code.google.com by
kerg...@gmail.com
on 28 Oct 2011 at 7:34