Issue3876
Created on 2008-09-16 05:10 by henry.precheur, last changed 2009-09-23 05:42 by iandekit.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
aix-patch
|
brasse,
2008-10-07 12:05
|
Patching multiprocessing. |
|
|
|
EKIT.PATCH3
|
iandekit,
2009-09-23 05:38
|
cope with missing sem_timedwait() on Solaris9 |
|
|
|
EKIT.PATCH2
|
iandekit,
2009-09-23 05:42
|
CMSG_SPACE/CMESG_LEN macros |
|
|
|
msg73291 - (view) |
Author: Henry Precheur (henry.precheur) |
Date: 2008-09-16 05:10 |
|
Compiling `multiprocessing` on OpenBSD fails. `iovec` is not declared.
Adding the following line to multiprocessing.c solves the problem:
#include <sys/uio.h>
But right after I got:
./python:build/lib.openbsd-4.4-amd64-2.6/_multiprocessing.so: undefined
symbol 'sem_timedwait'
It looks like multiprocessing is using a function that is not defined in
OpenBSD and very likely on other BSD's (FreeBSD & NetBSD don't have a
man page for this function)
According to this page, some other systems don't have this function:
http://www.gnu.org/software/gnulib/manual/html_node/sem_005ftimedwait.html
|
|
msg74427 - (view) |
Author: Mattias Brändström (brasse) |
Date: 2008-10-07 07:40 |
|
When trying to build Python 2.6 on AIX 5.2 the following error message:
(
The steps I have taken prior to this are:
1. export PATH=/usr/bin/:/usr/vacpp/bin/
2. ./configure --with-gcc=xlc_r --with-cxx=xlC_r --disable-ipv6
3. make
)
./Modules/ld_so_aix xlc_r -bI:Modules/python.exp build/temp.aix-5.2-
2.6/home/mabr/Python-2.6/Modules/_multiprocessing/multiprocessing.o
build/temp.aix-5.2-2.6/home/mabr/Python-
2.6/Modules/_multiprocessing/socket_connection.o build/temp.aix-5.2-
2.6/home/mabr/Python-2.6/Modules/_multiprocessing/semaphore.o -
L/usr/local/lib -o build/lib.aix-5.2-2.6/_multiprocessing.so
ld: 0711-317 ERROR: Undefined symbol: .sem_timedwait
ld: 0711-317 ERROR: Undefined symbol: .CMSG_SPACE
ld: 0711-317 ERROR: Undefined symbol: .CMSG_LEN
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
*** WARNING: renaming "_multiprocessing" since importing it failed: No
such file or directory
error: No such file or directory
make: The error code from the last command is 1.
|
|
msg74439 - (view) |
Author: Mattias Brändström (brasse) |
Date: 2008-10-07 12:05 |
|
Here is a small patch that lets me build on AIX 5.2.
|
|
msg75217 - (view) |
Author: Piotr Meyer (aniou) |
Date: 2008-10-25 18:55 |
|
I confirm build failure on NetBSD 4.0.1 (latest stable) - but
NetBSD-current is - probably - also affected:
*** WARNING: renaming "_multiprocessing" since importing it failed:
build/lib.netbsd-4.0.1-i386-2.6/_multiprocessing.so: Undefined PLT
symbol "sem_timedwait" (symnum = 20)
system: NetBSD 4.0.1 (i386)
Python version: 2.6
|
|
msg93024 - (view) |
Author: Ian Donaldson (iandekit) |
Date: 2009-09-23 05:38 |
|
Similarly, compile fails on Solaris 9 due to lack of sem_timedwait()
so here is a patch for that. Solaris 10 was the first Solaris
to have this function so the patch adapts for that case.
|
|
msg93025 - (view) |
Author: Ian Donaldson (iandekit) |
Date: 2009-09-23 05:42 |
|
Similar to aix-patch, I enclose what I did for compilation
on Solaris 9, using macros from Solaris 10's headers.
These differ slightly to the aix ones, but I don't know if the
difference matters. (alignment related)
|
|
| Date |
User |
Action |
Args |
| 2009-09-23 05:42:13 | iandekit | set | files:
+ EKIT.PATCH2
messages:
+ msg93025 |
| 2009-09-23 05:38:36 | iandekit | set | files:
+ EKIT.PATCH3 nosy:
+ iandekit messages:
+ msg93024
|
| 2009-05-17 02:42:18 | ajaksu2 | set | stage: test needed versions:
+ Python 3.1, - Python 3.0 |
| 2008-10-25 18:55:45 | aniou | set | nosy:
+ aniou messages:
+ msg75217 |
| 2008-10-12 15:39:32 | dave.peckham | set | nosy:
+ dave.peckham |
| 2008-10-07 12:05:42 | brasse | set | files:
+ aix-patch messages:
+ msg74439 |
| 2008-10-07 07:40:22 | brasse | set | nosy:
+ brasse messages:
+ msg74427 |
| 2008-10-06 15:04:54 | jnoller | set | title: multiprocessing does not compile on *BSD and potentialy other systems -> multiprocessing does not compile on systems which do not define sem_timedwait |
| 2008-10-06 15:02:28 | jnoller | set | priority: normal assignee: jnoller nosy:
+ jnoller |
| 2008-09-16 05:10:02 | henry.precheur | create | |
|