Building Python 2.3 on HP-UX 10.20 - pthread failure

Dan Cescato Dan.Cescato at transcendata.com
Fri Oct 3 17:10:13 EDT 2003


Actually, what sets PY_PTHREAD_D4 is a combination of the existence of
__hpux and _DECTHREADS_ (defined in cma.h).  Based on what I see in
the PEP doc, I assume the code to support this is still in Python
2.3.1.  I was planning to comment out the #error that brings the show
to a halt, and get on with life.  As far as volunteering, let me talk
to the boss about this.  (BTW, the response I was really hoping for
was "Just apply HP patch XXXX, and you'll be fine.  Oh well...)

martin at v.loewis.de (Martin v. Löwis) wrote in message news:<m3k77mi828.fsf at mira.informatik.hu-berlin.de>...
> Dan.Cescato at transcendata.com (Dan Cescato) writes:
> 
> > When I try to build Python 2.3 on HP-UX 10.20 using their cc compiler,
> > I get a compile failure.  It comes down to Python/thread_pthread.h
> > deciding that my machine is an unsupported system, as documented in
> > the README file.  ("Systems defining PY_PTHREAD_D4...").  Apparently,
> > Python 2.3 doesn't like their implementation of pthreads.  However, in
> > the "Platform specific notes" section, there is a note about HP-UX
> > 10.20 which makes me believe that someone has gotten it to work.
> > 
> > The application we're writing in Python needs pthreads.  Is there an
> > upgrade patch available from HP that will get this to build?
> 
> Please read http://www.python.org/peps/pep-0011.html. Python 2.3 might
> work just fine on your system, however, we (actually, I) believe that
> the this specific aspect of Python is little used. So unless you act
> as described in the PEP, the existing support for the feature will be
> *removed* rather than the problem being corrected.
> 
> So far, I had no information that it is HP-UX 10.20 which defines
> PY_PTHREAD_D4; I was believing that the code dealing with it is dead.
> Restoring the feature is trivial at the moment, but it takes a
> volunteer to actually do so.
> 
> Regards,
> Martin




More information about the Python-list mailing list