Unable to compile pyprocessing module on SUN solaris

Deepak Rokade smartpawn at gmail.com
Fri Mar 20 14:06:12 CET 2009


I am trying to build package "pyprocessing" for python 2.5

I am using sun machine with Solaris 5.8

drokade at himalaya:~/modules_python/processing-0.52
(Deepak:)uname -a
SunOS himalaya 5.8 Generic_117350-35 sun4u sparc SUNW,Sun-Fire

While building the package I get below warnings.

(Deepak:)python setup.py build
Macros:
        HAVE_FD_TRANSFER = 1
        HAVE_SEM_OPEN = 1
        HAVE_SEM_TIMEDWAIT = 1

Libraries:
        ['rt']

running build
running build_py
running build_ext
building 'processing._processing' extension
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDWAIT=1
-I/home/drokade/ess_temp/56_release/ess/3rdparty/python/solaris/include/python2.5
-c src/processing.c -o build/temp.solaris-2.8-sun4u-2.5/src/processing.o
src/processing.c: In function `processing_sendfd':
*src/processing.c:158: warning: implicit declaration of function
`CMSG_SPACE'
src/processing.c:175: warning: implicit declaration of function `CMSG_LEN'
*gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDWAIT=1
-I/home/drokade/ess_temp/56_release/ess/3rdparty/python/solaris/include/python2.5
-c src/socket_connection.c -o
build/temp.solaris-2.8-sun4u-2.5/src/socket_connection.o
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDWAIT=1
-I/home/drokade/ess_temp/56_release/ess/3rdparty/python/solaris/include/python2.5
-c src/semaphore.c -o build/temp.solaris-2.8-sun4u-2.5/src/semaphore.o
src/semaphore.c: In function `SemLock_acquire':
*src/semaphore.c:296: warning: implicit declaration of function
`sem_timedwait'
src/semaphore.c: In function `SemLock_new':
src/semaphore.c:416: warning: int format, pid_t arg (arg 4)
*gcc -shared build/temp.solaris-2.8-sun4u-2.5/src/processing.o
build/temp.solaris-2.8-sun4u-2.5/src/socket_connection.o
build/temp.solaris-2.8-sun4u-2.5/src/semaphore.o -lrt -o
build/lib.solaris-2.8-sun4u-2.5/processing/_processing.so

Though shared libraries were created, after I installed it in my python
(2.5.1) I get below message while importing module 'processing"

drokade at himalaya:~/modules_python/processing-0.52
(Deepak:)python
Python 2.5.1 (r251:54863, Nov 27 2007, 18:27:50)
[GCC 3.4.6] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import processing
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/home/drokade/ess_temp/56_release/ess/3rdparty/python/solaris/lib/python2.5/site-packages/processing/__init__.py",
line 62, in <module>
    import _processing
ImportError: ld.so.1: python2.5: fatal: relocation error: file
/home/drokade/ess_temp/56_release/ess/3rdparty/python/solaris/lib/python2.5/site-packages/processing/_processing.so:
symbol CMSG_SPACE: referenced symbol not found
>>> ^D


How can I get rid of this ?
Is this package not available for sun solaris ?


-- 
Thanx & Regards,
Deepak Rokade
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090320/40f99784/attachment.html>


More information about the Python-list mailing list