New submission from JB Robertson <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue4028> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com