[New-bugs-announce] [issue4028] Problem compiling the multiprocessing module on sunos5
JB Robertson
report at bugs.python.org
Fri Oct 3 15:14:20 CEST 2008
New submission from JB Robertson <jr244 at kent.ac.uk>:
Hello,
there's some issues compiling the multiprocessing module on the SunOS I
have here, where CMSG_LEN, CMSG_ALIGN, CMSG_SPACE and sem_timedwait are
absent.
$ uname -av
SunOS xxxxxxx 5.9 Generic_117171-15 sun4u sparc SUNW,Sun-Fire-V440
it looks like simply defining the first three macros like this works:
#ifndef CMSG_SPACE
# define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct
cmsghdr))+CMSG_ALIGN(len))
#endif
#ifndef CMSG_ALIGN
# ifdef __sun__
# define CMSG_ALIGN _CMSG_DATA_ALIGN
# else
# define CMSG_ALIGN(len) (((len)+sizeof(long)-1) & ~(sizeof(long)-1))
# endif
#endif
#ifndef CMSG_LEN
# define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr))+(len))
#endif
(from http://mailman.videolan.org/pipermail/vlc-devel/2006-May/024400.html )
and setting HAVE_SEM_TIMEDWAIT=0 in setup.py does the trick for the last
one. Presumably, adding something like
elif platform.startswith('sunos5'):
macros = dict(
HAVE_SEM_OPEN=1,
HAVE_SEM_TIMEDWAIT=0,
HAVE_FD_TRANSFER=1
)
libraries = ['rt']
in setup.py should work, but I have no other SunOS machines to test this on.
thanks
----------
components: Extension Modules
messages: 74248
nosy: jr244
severity: normal
status: open
title: Problem compiling the multiprocessing module on sunos5
type: compile error
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4028>
_______________________________________
More information about the New-bugs-announce
mailing list