Python 2.2.1 on Solaris 2.5.1: compilation problem
Martin v. Löwis
loewis at informatik.hu-berlin.de
Wed Apr 10 10:20:51 EDT 2002
Oleg Broytmann <phd at phd.pp.ru> writes:
> 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?
I suggest to produce preprocessor output, via -E (not sure whether
2.8.1 already had --save-temps).
Regards,
Martin
More information about the Python-list
mailing list