1833193 Members
3283 Online
110051 Solutions
New Discussion

perl DBI problem

 
SOLVED
Go to solution
Paul_481
Respected Contributor

perl DBI problem

Hi,

I am trying to install DBI on our server, I have successfully download and install perl from merjins website (perl-5.8.6-gcc-3.4.3-11.11-elf64.tbz) and DBI-1.48 (CPAN).

I am following these steps.

1. #perl Makefile.PL (successull)
2. #make (error - see below)
3. #make test
4. #make install

I received the following error. I've check other threads regarding this error and from there it says compiler problem. We have aCC installed in HPUX 11.11 64 bit.


cscpcc@edw-dev [/home/cscpcc/perl/DBI-1.48]
#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.48\" -DXS_VERSION=\"1.48\" +Z "-I/opt/perl/lib/5.8.3/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.3/PA-RISC1.1-thread-multi/CORE/perlio.h", line 108: error 4065: Recursion in macro "PerlIO".
*** Error exit code 1

Stop.


Any would would be greatly appreciated.

Thanks,
Paul
3 REPLIES 3
D Block 2
Respected Contributor

Re: perl DBI problem

Paul,

I wonder about the dependency on the C/ANSI C compiler ? Might you try this link:
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,,1858,00.html

Golf is a Good Walk Spoiled, Mark Twain.
H.Merijn Brand (procura
Honored Contributor
Solution

Re: perl DBI problem

If you got my build, then why build DBI???

My build already includes the most recent DBI!

# perl -MV=DBI

Furthermore, *IF* you are using *my* build, you have a $PATH problem, because your phase 1 (perl Makefile.PL) shows that the perl you use wants to use the HP C-ANSI-C compiler, and all my builds are created with GNU gcc.

# which perl

should be /opt/perl/bin/perl or /opt/perl64/bin/perl

DBI is an XS module, which means you will ness an ANSI C compiler to build it. In almost all cases it is preferable to use the same compiler as the one perl was build with. In my case that is- as said - GNU gcc, which you can also fetch from my site.

Enjoy, Have FUN! H.Merijn [ Mer i j n, not Mer j i n ]
Enjoy, Have FUN! H.Merijn
Paul_481
Respected Contributor

Re: perl DBI problem

Hi Merijin,

Thanks, It is a PATH problem.

Regards,
Paul