Operating System - HP-UX
1834665 Members
1962 Online
110069 Solutions
New Discussion

Compiling Perl 5.6.1 on HP-UX 11.11

 
Reiner_Buehl
Occasional Advisor

Compiling Perl 5.6.1 on HP-UX 11.11

Hello,

I have some trouble compiling Perl 5.6.1 on HP-UX 11.11. I have downloaded the source and installed B3899BA (HP C/ANSI C Developer's Bundle for HP-UX 11.i) as well as some patches for this bundle.
If I run the perl Configure script I get "The bundled C compiler is not ANSI-compliant, and so cannot be used to build perl."
I checked that PATH is set to include /opt/ansic/bin before /bin and "which cc" shows /opt/ansic/bin/cc is used. How can I fix this?
5 REPLIES 5
H.Merijn Brand (procura
Honored Contributor

Re: Compiling Perl 5.6.1 on HP-UX 11.11

Read the perl section on my site, and README.hpux in the source distribution. Your (literal) question is answered in there.

Then decide why you want an old version of perl

If you understand that, fetch whatever version pleases you best, and install.

My HP ITRC site pages can be found at (please use LA as primary choice):

USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Steven E. Protter
Exalted Contributor

Re: Compiling Perl 5.6.1 on HP-UX 11.11

Why compile?

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Florian Heigl (new acc)
Honored Contributor

Re: Compiling Perl 5.6.1 on HP-UX 11.11

SEP, I don't know about mervin's but at least the HP build has not all threading options enabled - maybe that's why, or for optimizing it to PA-RISC 2.0.

also i've found it easier at our clients site to get a clearance for new software if it was built in-house. (no logic in that, but experience :)

But today I'd also just grab the prebuilt binaries from mervin (or the old perl-5.6.1-threaded.tar in my home directory)
yesterday I stood at the edge. Today I'm one step ahead.
Reiner_Buehl
Occasional Advisor

Re: Compiling Perl 5.6.1 on HP-UX 11.11

procura, I have had a look at your site and could not find any explanation there on how to compile with HP C-ANSI-C. Same for the README.hpux that comes with the 5.6.1 source. It only mentions "When using this compiler to build Perl, you should make sure that the flag -Aa is added to the cpprun and cppstdin variables in the config.sh
file (though see the section on 64-bit perl below)." If I do an export cc='cc -Aa' before the ./Configure, the result is the same error.

Unfortunatly I have to stick to this version and compiler since I have to create a build environment for building perl modules that will be used with the perl 5.6.1 that comes with HP OpenView Operations. I use the same Configure options like the one that I get from perl -V from the OpenView perl.

I use this for Configure:
config_args='-Dprefix=/opt/OV/contrib/perl -Dusemultiplicity -Ubincompat5005 -Uusemymalloc -Dusethreads -Accflags=+DA1.1 +DS1.1 -DPERL_IMPLICIT_SYS -Aarchobjs=perllib.o -Duseshrplib -Dlibperl=libopcperl.sl -de'

Any help on how to resolve this is appreciated.


H.Merijn Brand (procura
Honored Contributor

Re: Compiling Perl 5.6.1 on HP-UX 11.11

You could try

Configure -Dcc=...

the expoted value as you say you do it will not be picked up by Configure

BUT

you say that you still get the same error, which indicates that you are not using HP's C-ANSI-C compiler, but the bundled HP C compiler, which is not ANSI compliant and cannot be used to build Perl.
That is what the error states.

That there is nothing in README.hpux about using HP C-ANSI-C, is because noone that actually used that compiler to build Perl has encountered problems serious enough to be mentioned in that document.
If you have installed HP C-ANSI-C, and your $PATH can find it before the bundled compiler, Perl should build out of the box, even on older HP-UX 10.20 systems

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn