08-20-2007 05:26 AM
rp440, pa-risc, hpux 11.11
I am trying to install the perl DBI module. I downloaded it from cpan.
But when I run the make command I get an error. Can you help me?
cc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -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/lib/5.8.2/PA-RISC1.1-thread-multi/COR
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 422: Unknown option "f" ignored.
(Bundled) cc: warning 480: The +Onolimit option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Opromote_indirect_calls option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Z option is available only with the C/ANSI C product; ignored.
*** Error exit code 1
08-20-2007 05:32 AM
08-20-2007 05:32 AM
It would appear that you are not using the ANSI C compiler. There are definitely options being called in this process that only work with that compiler. This compiler is a pay for add in and not part of the Base OS. Please use that compiler to compile the module.
The perl module is written for PA-RISC1.1, which is compatible with a PA-RISC 2.0 system but may be a sign the code you are using is a bit old.
Owner of ISN Corporation
08-20-2007 05:34 AM
You have attempted to compile a Perl module with HP's ANSI C compiler but don't have the requisite compiler. You only have the "bundled" HP C compiler which is not sufficient.
Your options are to purchase ANSI C:
...an evaluation copy is also available in the interim...
...install a Perl distribution that has been compiled with 'gcc' and download the 'gcc' compiler to compile modules requiring compilation. Both a gcc-compiled Perl and a 'gcc' compiler can be obtained here:
08-20-2007 05:35 AM
I am not real versed on compiling modules. How do I use the gcc? I believe I have that installed on the system already.
txovo# find / -name gcc
08-20-2007 05:38 AM
08-20-2007 05:39 AM
To use the 'gcc' compiler with a Perl distribution, you will need a version of Perl that was _compiled_ with 'gcc'. Your Perl distibution was compiled with HP ANSI C.
Merijn's site referenced in my first post will allow you to fetch a 'gcc'-compiled Perl.
Thereafter, simply use the standard Perl module installation steps.
08-20-2007 05:40 AM
I use this perl extensively in a production environment and have many other modules installed and operational.
Wouldn't installing a newly compiled version of perl cause issues?
08-20-2007 05:47 AM
08-20-2007 05:54 AM
If I have to do that then it is possible I will run into problems with installing those under the new perl version
08-20-2007 06:38 AM
You can always install his Perl in another location and test the output of your current scripts against the new version. I suspect that the modules that you have installed to date did not require compiling and/or linking but were rather pure Perl modules.
08-20-2007 07:04 AM
One concern is that his version is compiled for 64b pa-risc2.
I run 32/64 pa-risc1.1
I do not see that he offers an option for that.
The limited testing I have done works fine thus far, however, larger applications make use of perl as well, in ways that I do not have the ability to test. And using this gcc version of perl will not fall under my support contracts. That is why I originally wished to install only the module rather than the entire perl version.
08-20-2007 09:41 AM
Another path to try is this: Download a current version of Perl from HP:
If you don't have the HP ANSI C compiler, run:
# /opt/perl/bin/change_config_pm gcc
This should allow you to change the compiler for module builds to 'gcc'.
08-20-2007 10:15 AM
PA-RISC-1.1 only supports 32bit!
Take my build for HP-UX 10.20 to see if that runs on your PA1.1
But don't be misguided by what your current perl build tells you. Use the FAQ methods to see what system you actually have before downloading the correct version.
Enjoy, Have FUN! H.Merijn