Python 2.2.1 on Solaris 2.5.1: compilation problem
Michael Hudson
mwh at python.net
Wed Apr 10 10:54:20 EDT 2002
Oleg Broytmann <phd at phd.pp.ru> writes:
> Hello!
>
> 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.
> 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:
I have a hard time believing 2.2 compiled but 2.2.1 does not. The
only change the "#ifdef __APPLE__" block you mention below.
> 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__)
(or whatever).
> #define destructor xxdestructor
> #endif
Cheers,
M.
--
Lisp does badly because we refuse to lie. When people ask us if
we can solve insoluble problems we say that we can't, and because
they expect us to lie to them, they find some other language
where the truth is less respected. -- Tim Bradshaw, comp.lang.lisp
More information about the Python-list
mailing list