I've spent hours and hours on this and am about at wit's end. Any advice
would be greatly appreciated:
I'm attempting to build the Python library for swftools 0.9.1 on CentOS 5.5
x64 and using Python 2.6.5 compiled from source. This is the error I am
getting in config.log when it attempts to compile "conftest":
<snip>
/usr/local/lib/libpython2.6.a(thread.o): In function
`PyThread_allocate_lock':
/usr/src/Python-2.6.5/Python/thread_pthread.h:296: undefined reference to
`sem_init'
/usr/src/Python-2.6.5/Python/thread_pthread.h:296: undefined reference to
`sem_init'
/usr/local/lib/libpython2.6.a(posixmodule.o): In function `posix_forkpty':
posixmodule.c:(.text+0x259f): undefined reference to `forkpty'
/usr/local/lib/libpython2.6.a(posixmodule.o): In function `posix_openpty':
posixmodule.c:(.text+0x2626): undefined reference to `openpty'
collect2: ld returned 1 exit status
configure: failed program was:
#include <Python.h>
int main()
{
int ret;
ret = Py_Main(0, 0);
int x; // check also for gcc 2.95.x incompatibilities
return ret;
}
configure:10062: result: no
If I instead try to execute "python setup.py build", I get the following
error:
Creating config.h...
Error: Couldn't find jpeg library on your system
PIL, libjpeg, and the libjpeg development package are all installed.
I'm outta ideas. Can anyone please help? Thank you.