hpux 11.11 pa-risc perl dbi make install (163 Views)
Reply
Frequent Advisor
BenIsCool
Posts: 84
Registered: ‎12-27-2005
Message 1 of 14 (163 Views)

hpux 11.11 pa-risc perl dbi make install

Hello,

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?
thanks

txovo# make
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/CORE" Perl.c
(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.
cpp: "/opt/perl/lib/5.8.2/PA-RISC1.1-thread-multi/CORE/perlio.h", line 108: error 4065: Recursion in macro "PerlIO".
*** Error exit code 1

Stop.
txovo#


Ben


Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 2 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

Not really. You are attempting to use the Bundled C compiler which is really only intended for building kernels. It only understands K&R C syntax. You will need either the purchased HP ANSI/C or aCC (C++) compilers. A free option is the Gnu C compiler (gcc).
If it ain't broke, I can fix that.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 3 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

Shalom Ben,

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.

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
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 4 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

Hi Ben:

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:

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

...an evaluation copy is also available in the interim...

OR:

...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:

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

Regards!

...JRF...

Frequent Advisor
BenIsCool
Posts: 84
Registered: ‎12-27-2005
Message 5 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

Thanks all for the quick reply.

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
/opt/pwc/gcc
/opt/hp-gcc64-4.0.2/bin/gcc
/opt/hp-gcc64-4.0.2/lib/gcc
/opt/hp-gcc64-4.0.2/libexec/gcc

Thanks

Ben
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 6 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

In that case, you need to put gcc in your PATH and you will probably have to alter the configure script to look for it although if gcc is in your PATH, the configure script will probably find it and correctly build a makefile -- at the very least, you will have to rerun configure after fixing your PATH.
If it ain't broke, I can fix that.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 7 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

Hi Ben:

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.

Regards!

...JRF...
Frequent Advisor
BenIsCool
Posts: 84
Registered: ‎12-27-2005
Message 8 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

I have concerns about installing a differently compiled perl version.

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?

Thanks
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 9 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

Unless the source code were modified, it should produce identical output. Besides, you are doing the same thing so how does it differ other than the compiling/linking is being done by someone who knows what he is doing?
If it ain't broke, I can fix that.
Frequent Advisor
BenIsCool
Posts: 84
Registered: ‎12-27-2005
Message 10 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

But it would require that I re-install all of the modules I am currently using.

If I have to do that then it is possible I will run into problems with installing those under the new perl version
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 11 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

Merjin's Perl ports include a boatload of commonly used modules so that it is quite possible that you will need to add only a few modules yourself.

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.
If it ain't broke, I can fix that.
Frequent Advisor
BenIsCool
Posts: 84
Registered: ‎12-27-2005
Message 12 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

I have already installed his version of perl on my test system.

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.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 13 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

Hi (again) Ben:

Another path to try is this: Download a current version of Perl from HP:

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

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'.

Regards!

...JRF...
Honored Contributor
H.Merijn Brand (procura
Posts: 6,189
Registered: ‎10-13-1997
Message 14 of 14 (163 Views)

Re: hpux 11.11 pa-risc perl dbi make install

You run 32/64 pa-risc-1.1?????

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
Enjoy, Have FUN! H.Merijn
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.