Operating System - Linux
1751880 Members
5369 Online
108783 Solutions
New Discussion юеВ

Re: perl, module installation and gcc

 
SOLVED
Go to solution
Doug O'Leary
Honored Contributor

perl, module installation and gcc

Hey;

I've been working on HPs for the better part of 14 years and I don't think I've ever gotten anything to compile w/o an unholy amount of effort.

My current issue is trying to get the DBD module working on a fresh install of perl5.8.7 (downloaded from software.hp.com).

When I run "install DBD", it errors out stating various things like:

cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.

I looked at the make file and saw the "CC = cc" line. I tried changing that to gcc then, in that directory, running "make". (that's about the limit of my c programming knowledge).

I got a bunch of errors

# make
gcc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +Z -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls +DAportable +DS2.0 -DVERSION=\"1.58\" -DXS_VERSION=\"1.58\" +Z "-I/opt/perl_32/lib/5.8.7/PA-RISC1.1-thread-multi/CORE" Perl.c
gcc: +Z: No such file or directory
gcc: +Onolimit: No such file or directory
gcc: +Opromote_indirect_calls: No such file or directory
gcc: +DAportable: No such file or directory
gcc: +DS2.0: No such file or directory
gcc: +Z: No such file or directory
cc1: error: unrecognized command line option "-fast"
*** Error exit code 1

Stop.

Is there a way around this?

Thanks for any help/hints/suggestions.

Very Frustrated:
Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
4 REPLIES 4
Arunvijai_4
Honored Contributor

Re: perl, module installation and gcc

Hi Doug,

You can try with "make clean", "make dist clean" and export CC= and re-run Configure if you haven't done.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Luk Vandenbussche
Honored Contributor
James R. Ferguson
Acclaimed Contributor
Solution

Re: perl, module installation and gcc

Hi Doug:

The error "cc: warning 480: The -A option is available only with the C/ANSI C product; ignored." says that you don't have anything more than the HP bundled compiler. You need an ANSI C (not free) compiler or 'gcc'.

Next, when you need to compile Perl modules, you need the *same* compiler that compiled the Perl distribution.

# perl -V:cc

...will summarize your's.

Since you downloaded from HP, the HP ANSII C compiler was used and now you're stuck.

You can license an HP compiler from here:

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AA

*OR*:

Fetch a 'gcc' compiled Perl from Merijn here:

http://mirrors.develooper.com/hpux/

Regards!

...JRF...

Doug O'Leary
Honored Contributor

Re: perl, module installation and gcc

Hey;

Downloading the gcc compiled version of perl worked - at least so far. Thanks for the link.

Doug O'Leary

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html