Python 2.2.1 on Solaris 2.5.1: compilation problem

Oleg Broytmann phd at phd.pp.ru
Wed Apr 10 11:22:32 EDT 2002


On Wed, Apr 10, 2002 at 02:54:20PM +0000, Michael Hudson wrote:
> >    Environment: SUN Sparc Ultra-1, Solaris 2.5.1, gcc 2.8.1.
>                                                         ^^^^^
> Is this negotiable?  I.e. could you try upgrading?  This is pretty old now.

   I don't care if it is old, I love old and proven software :) Really, I
don't understand the rush for all new versions.

> > 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__
> 
> Try making that 
> 
> #if defined(__APPLE__) || defined(__SUN__)

   The define is "sun", and it seems it helped. At least it is being
compiled now.
   Thank you for the help. Would you put it in the CVS or at least file a
bug report?

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