Operating System - HP-UX
1832574 Members
3586 Online
110043 Solutions
New Discussion

How to build PERL 5.8.0 gcc 11.00/32 threads?

 
Michael Huttner_2
New Member

How to build PERL 5.8.0 gcc 11.00/32 threads?

Has anyone documented a build/compile process for PERL 5.8.0 on HP-UX 11.00/32 (eg, Merijn, Jarkko) with threads?

Requirements include ARSperl w/static API, XML Bundle which seems to demand GCC/threads, and DBD:Oracle among other things.

I've run into various problems (eg, GDBM won't link so I removed it from confis.sh), Encode (hangs during "gmake test"). The current build attempt for 5.8.0 and 5.8.1/R4 coredumps on attempts to run simple scripts (eg, cpan -i HTTP::Date).

I'm using Merjin's gcc 3.3/pa20_32 on an 11.00/A400. I am hoping that we will not have to resort to using multiple variants of PERL 5.8.

Can anyone help? Thanks in advance!

Michael Huttner
Wherever I go, there I am.
2 REPLIES 2
Pratyush Paul_1
Valued Contributor

Re: How to build PERL 5.8.0 gcc 11.00/32 threads?

This is what I did to build/compile perl5.8.0

#./Configure -Duse64bitall -Duselargefile -Dusethreads
#gmake
#gmake test
#gmake install
#swpackage -s perl.psf @ /depot/perl5.8.0_64
#swreg -l depot @ /depot/perl5.8.0_64
#swinstall -s /depot/perl5.8.0_64

It is working in my enviroment. What I would suggest is you get a good working Gcc compiler in your system. That is where a majority of the builds fail. The challenge is to get a good perl.psf file if you plan to make it SD-UX format(depotized)

Thanks

Pratyush
Die Hard
ranjith_2
New Member

Re: How to build PERL 5.8.0 gcc 11.00/32 threads?

Micheal,



you can download perl 5.8.0 built with threads using gcc from software.hp.com. can you give it a try. if you want to use DBD::Oracle on the perl downloaded from HP site, you may have to use LD_PRELOAD on libcl.sl and/or libjava.sl before using DBD.



The perl delivered by HP is built using gcc3.2 downloaded from HP's DSPP, you can get it from www.hp.com/go/gcc, perl 5.8.0 can be built without any problem with this version of gcc.



the configure script is run with the following arguments.



Configure -des -Dcc=gcc -Uinstallusrbinperl -Ud_sigsetjmp -Dusethreads -Duseithreads -Ulocincpth= -Uloclibpth= -Accflags=-fPIC -Dd_attribut=undef -Dcccdlflags=-fPIC -Darchname=PA-RISC1.1 -Duselargefiles -Accflags=-mpa-risc-1-1 -Dprefix=/opt/perl



if you are having a PA2.0 machine, then u can remove -Darchname=PA-RISC1.1 & -Accflags=-mpa-risc-1-1.