Building Python 2.3 on HP-UX 10.20 - pthread failure

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dan Cescato

    Building Python 2.3 on HP-UX 10.20 - pthread failure

    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? Our
    technology director has ruled out gcc. Has anyone gotten this to
    build?
  • Martin v. Löwis

    #2
    Re: Building Python 2.3 on HP-UX 10.20 - pthread failure

    Dan.Cescato@tra nscendata.com (Dan Cescato) writes:
    [color=blue]
    > 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?[/color]

    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

    Comment

    • Dan Cescato

      #3
      Re: Building Python 2.3 on HP-UX 10.20 - pthread failure

      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@v.loewis .de (Martin v. Löwis) wrote in message news:<m3k77mi82 8.fsf@mira.info rmatik.hu-berlin.de>...[color=blue]
      > Dan.Cescato@tra nscendata.com (Dan Cescato) writes:
      >[color=green]
      > > 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?[/color]
      >
      > 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[/color]

      Comment

      • Anthony Baxter

        #4
        Re: Building Python 2.3 on HP-UX 10.20 - pthread failure

        [color=blue][color=green][color=darkred]
        >>> Dan Cescato wrote[/color][/color]
        > 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...)[/color]

        It's a big patch <wink>, but the patch called "HP/UX 11.11" builds
        clean, out of the box, on HP/UX. (Note, though, that if you're on
        Itanium, you'll need to build without optimisation - the HP compiler
        screws up the executable in a rather spectacular fashion).

        I've been using HP's "test drive" systems for this - they don't appear
        to have a HP/UX 10 system there, so I'm afraid I can't offer more
        specific help.


        --
        Anthony Baxter <anthony@interl ink.com.au>
        It's never too late to have a happy childhood.


        Comment

        • Martin v. Löwis

          #5
          Re: Building Python 2.3 on HP-UX 10.20 - pthread failure

          Dan.Cescato@tra nscendata.com (Dan Cescato) writes:
          [color=blue]
          > Actually, what sets PY_PTHREAD_D4 is a combination of the existence of
          > __hpux and _DECTHREADS_ (defined in cma.h).[/color]

          That is a useful hint. __hpux probably should be defined on the
          system, but where does _DECTHREADS_ come from?

          Regards,
          Martin

          Comment

          • Dan Cescato

            #6
            Re: Building Python 2.3 on HP-UX 10.20 - pthread failure

            martin@v.loewis .de (Martin v. Löwis) wrote in message news:<m3ekxtzbu z.fsf@mira.info rmatik.hu-berlin.de>...[color=blue]
            > Dan.Cescato@tra nscendata.com (Dan Cescato) writes:
            >[color=green]
            > > Actually, what sets PY_PTHREAD_D4 is a combination of the existence of
            > > __hpux and _DECTHREADS_ (defined in cma.h).[/color]
            >
            > That is a useful hint. __hpux probably should be defined on the
            > system, but where does _DECTHREADS_ come from?
            >
            > Regards,
            > Martin[/color]

            _DECTHREADS_ is #define'd in cma.h. It gets sucked in, eventually, by
            anything that gets within a country mile of threads.

            Comment

            • Dan Cescato

              #7
              Re: Building Python 2.3 on HP-UX 10.20 - pthread failure

              Anthony Baxter <anthony@interl ink.com.au> wrote in message news:<mailman.1 065226868.12165 .python-list@python.org >...[color=blue][color=green][color=darkred]
              > >>> Dan Cescato wrote[/color]
              > > 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...)[/color]
              >
              > It's a big patch <wink>, but the patch called "HP/UX 11.11" builds
              >
              > clean, out of the box, on HP/UX. (Note, though, that if you're on
              > Itanium, you'll need to build without optimisation - the HP compiler
              > screws up the executable in a rather spectacular fashion).
              >
              > I've been using HP's "test drive" systems for this - they don't appear
              > to have a HP/UX 10 system there, so I'm afraid I can't offer more
              > specific help.[/color]

              The bummer is that I work for a small software company, and some
              customers are still on these creaky old systems. What we won't do for
              a customer whose check clears the bank...

              Comment

              • Anthony Baxter

                #8
                Re: Building Python 2.3 on HP-UX 10.20 - pthread failure

                [color=blue][color=green][color=darkred]
                >>> Dan Cescato wrote[/color]
                > > I've been using HP's "test drive" systems for this - they don't appear
                > > to have a HP/UX 10 system there, so I'm afraid I can't offer more
                > > specific help.[/color]
                >
                > The bummer is that I work for a small software company, and some
                > customers are still on these creaky old systems. What we won't do for
                > a customer whose check clears the bank...[/color]

                I'm pretty sure none of the folks on python-dev have access to a HP/UX 10
                system. So there's three possibilities for getting this fixed:

                .. Since you have access to such a system, figure out what needs to be changed
                and supply a patch to the SF tracker
                .. Make a HP/UX 10 system available to someone who can fix the problem
                .. Convince HP to add a HP/UX 10 system to the test drive farm.

                It's virtually impossible for someone to fix this who doesn't have access
                to a system to work on the problem. I have access to only HP/UX 11 systems,
                so I can only make sure python builds out of the box on those systems. (For
                instance, I'm following up with HP on a couple of issues on the HP/UX on
                Itanium platform to get bugs on the platform fixed.)


                Anthony

                --
                Anthony Baxter <anthony@interl ink.com.au>
                It's never too late to have a happy childhood.


                Comment

                • AK

                  #9
                  Re: Building Python 2.3 on HP-UX 10.20 - pthread failure

                  In article <mailman.106540 1290.29798.pyth on-list@python.org >, Anthony
                  Baxter wrote:[color=blue]
                  >[color=green][color=darkred]
                  >>>> Dan Cescato wrote
                  >> > I've been using HP's "test drive" systems for this - they don't appear
                  >> > to have a HP/UX 10 system there, so I'm afraid I can't offer more
                  >> > specific help.[/color]
                  >>
                  >> The bummer is that I work for a small software company, and some
                  >> customers are still on these creaky old systems. What we won't do for
                  >> a customer whose check clears the bank...[/color]
                  >
                  > I'm pretty sure none of the folks on python-dev have access to a HP/UX 10
                  > system. So there's three possibilities for getting this fixed:
                  >
                  > . Since you have access to such a system, figure out what needs to be changed
                  > and supply a patch to the SF tracker
                  > . Make a HP/UX 10 system available to someone who can fix the problem
                  > . Convince HP to add a HP/UX 10 system to the test drive farm.
                  >
                  > It's virtually impossible for someone to fix this who doesn't have access
                  > to a system to work on the problem. I have access to only HP/UX 11 systems,
                  > so I can only make sure python builds out of the box on those systems. (For
                  > instance, I'm following up with HP on a couple of issues on the HP/UX on
                  > Itanium platform to get bugs on the platform fixed.)
                  >
                  >
                  > Anthony
                  >
                  > It's never too late to have a happy childhood.[/color]

                  Love the quote.. where from?

                  -AK

                  Comment

                  • Anthony Baxter

                    #10
                    Re: Building Python 2.3 on HP-UX 10.20 - pthread failure

                    [color=blue][color=green][color=darkred]
                    >>> AK wrote[/color]
                    > > It's never too late to have a happy childhood.[/color]
                    >
                    > Love the quote.. where from?[/color]

                    Bloom County.



                    Comment

                    Working...