Operating System - HP-UX
1752775 Members
5224 Online
108789 Solutions
New Discussion юеВ

Re: hpux 11.11 pa-risc perl dbi make install

 
BenIsCool
Frequent Advisor

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


13 REPLIES 13
A. Clay Stephenson
Acclaimed Contributor

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.
Steven E. Protter
Exalted Contributor

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
James R. Ferguson
Acclaimed Contributor

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

BenIsCool
Frequent Advisor

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
A. Clay Stephenson
Acclaimed Contributor

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.
James R. Ferguson
Acclaimed Contributor

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...
BenIsCool
Frequent Advisor

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
A. Clay Stephenson
Acclaimed Contributor

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.
BenIsCool
Frequent Advisor

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