Python 2.2.1 on Solaris 2.5.1: compilation problem

Oleg Broytmann phd at phd.pp.ru
Wed Apr 10 11:44:31 EDT 2002


On Wed, Apr 10, 2002 at 05:36:57PM +0200, Martin v. LЖwis wrote:
> That is a bug: All API in a header must start with a Py prefix to
> avoid the kind of conflict you got.
> 
> Unfortunately, this probably cannot be fixed for 2.2; you'll have to
> work around it locally. It is unfortunate that this wasn't changed in
> the Grand Renaming - it sounds like rename3.h will be needed. (*)
> 
> You could also report this as a bug to Sun: 'destructor' is not an
> identifier reserved for the implementation, so they should not use it
> in their header. Indeed, Solaris 9 (and probably earlier) has
> 
> extern int pthread_key_create(pthread_key_t *, void (*)(void *));
> 
> Finally, you could report this as a GCC bug: they should fix the
> system header via fixincludes. This is also the work-around which I'd
> offer: copy pthread.h to .../gcc-lib/system/2.8.1/include/pthread.h,
> and adjust the copy accordingly.

   Ouh! The small Python bugfix release revealed THREE bugs in the OS,
copiler and the Python itself :)
   Thank you!

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