Python 2.2.1 on Solaris 2.5.1: compilation problem
Oleg Broytmann
phd at phd.pp.ru
Wed Apr 10 09:59:24 EDT 2002
Hello!
Environment: SUN Sparc Ultra-1, Solaris 2.5.1, gcc 2.8.1.
Python 1.5.2, 2.0, 2.1{.1,.2,.3} and Python 2.2 all had been compiled
successfully.
Python 2.2.1 would not compile. The problem:
gcc -c -DNDEBUG -O2 -I. -I./Include -DHAVE_CONFIG_H -o Python/thread.o Python/thread.c
In file included from Python/thread_pthread.h:9,
from Python/thread.c:113:
/usr/include/pthread.h:238: parse error before `destructor'
/usr/include/pthread.h:238: parse error before `)'
make: *** [Python/thread.o] Error 1
The line in question /usr/include/pthread.h:238 is
int pthread_key_create(pthread_key_t *key, void (*destructor)(void *));
Nothing suspicious.
Any idea what can be wrong? Python/thread_pthread.h has
#ifdef __APPLE__
#define destructor xxdestructor
#endif
before
#include <pthread.h>
but it looks ok.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list