Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

building 32-bit perl on hpux 11i w/ gcc 3.4.5 (32bit)

by MidLifeXis (Monsignor)
on Feb 06, 2007 at 20:21 UTC ( [id://598629]=perlquestion: print w/replies, xml ) Need Help??

MidLifeXis has asked for the wisdom of the Perl Monks concerning the following question:

Back in Loading a 32-bit library via DynaLoader into 64-bit Perl 5.8.8 on HP-UX 11i, I found that I needed to recompile my Perl 5.8.8 in 32-bit mode due to an API library that I need only being available as a precompiled wrapper to an application we use only being available in 32-bit mode.

I have the 32-bit version of gcc 3.4.5 (from the hp development center), but the Configure script in the Perl distribution is forcing the lp64 flag to the compiler, which isn't recognized as a valid flag under the 32-bit version.

Any idea what flags I need to pass to configure to force 32-bit mode on this platform?

--MidLifeXis

Replies are listed 'Best First'.
Re: building 32-bit perl on hpux 11i w/ gcc 3.4.5 (32bit)
by kwaping (Priest) on Feb 06, 2007 at 20:45 UTC
    Try -Uuse64bitint -Uuse64bitall.

    ---
    It's all fine and dandy until someone has to look at the code.

      Looks good. Why I didn't try that combination is beyond me.

      Thanks.

      --MidLifeXis

Re: building 32-bit perl on hpux 11i w/ gcc 3.4.5 (32bit)
by Tux (Canon) on Feb 06, 2007 at 23:31 UTC
    It should not default to 64bit.
    Are you sure there are no 64bit gcc elements in your $PATH?
    Did you build from a clean tree, or are there leftovers from a previous 64bit build, in which case Configure will use the previous settings, and the resulting binary will be unreliable.
    If so, do a make distclean before running Configure.

    BTW did you consider using a prebuilt binary distribution? I have one for about every perl version on every HP-UX on my site.


    Enjoy, Have FUN! H.Merijn

      Clean tree (rm -rf..; gzip -dc | tar xvf), no 64-bit elements. The -Uuse64bitall -Uuse64bitint took care of the issue (for now, anyway -- I still have not tested against our vendor's library).

      Are your binary distributions locked into a specific directory, or are they able to be relocated? If I can relocate them (and have multiple installed simultaneously), I would surely consider it, although I might need to get my SA involved (political boundaries, not skill boundaries).

      --MidLifeXis

        The perl depot's on my site are /opt/perl and /opt/perl64. Not really relocatable.
        If you want a C-ANSI-C build with a lot of goodies, I can give it located on /pro, but I guess that is not what you want.

        Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://598629]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-18 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found