Python 2.2.1 on Solaris 2.5.1: compilation problem

Oleg Broytmann phd at phd.pp.ru
Wed Apr 10 10:59:02 EDT 2002


On Wed, Apr 10, 2002 at 04:20:51PM +0200, Martin v. LЖwis wrote:
> > 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 *));
> 
> I suggest to produce preprocessor output, via -E (not sure whether
> 2.8.1 already had --save-temps).

   Thank you very much for stepping in.

   It revealed that "destructor" was defined
typedef void (*destructor)(PyObject *);
   before.

   Not sure if I should report this as a bug.

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