Operating System - HP-UX
1752805 Members
5509 Online
108789 Solutions
New Discussion юеВ

Perl DBI Compilation error

 
SOLVED
Go to solution
Madhavendra
Occasional Advisor

Perl DBI Compilation error

# swlist perl
# Initializing...
# Contacting target "ethp1033"...
#
# Target: ethp1033:/
#

# perl E.5.8.8.G Perl Programming Language
perl.Perl5-32 E.5.8.8.G 32-bit Perl Programming Language with Extensions
perl.Perl5-64 E.5.8.8.G 64-bit Perl Programming Language with Extensions

[root@ethp1033:/var/opt/vgvd01/u01/ethp1033-backup/OVO/perl/DBI-1.609]
# getconf KERNEL_BITS
64

uname -a
HP-UX B.11.31 U 9000/800 2204626621 unlimited-user license

I have Hp ANSI/C Compiler on the box:

# B9007AA C.11.31.03 HP C/aC++ Developer's Bundle
B9007AA.Sentinel C.0.91.01 HP Sentinel Tool
B9007AA.CodeAdvisor C.01.17 HP Static Analysis Tool
B9007AA.DebugPrg C.5.7 Debugging Support Tools
B9007AA.WDB-GUI C.5.7 GUI for the HP WDB Debugger
B9007AA.WDB C.5.7 HP Wildebeest (HP WDB) Debugger
B9007AA.Auxiliary-Opt B.11.31.02 Auxiliary Optimizer for HP Languages.
B9007AA.C-Dev-Tools B.11.31.02 C Language Development Tools
B9007AA.C-Analysis-Tools B.11.31.02 C Language Analysis Tools
B9007AA.ACXX C.03.80 HP aC++
B9007AA.C-ANSI-C B.11.31.02 HP C/ANSI C Compiler
B9007AA.CDEDevKit B.11.31.01 CDE Desktop Developer's ToolKit
B9007AA.X11MotifDevKit B.11.31.01 HP-UX Desktop Developer's Toolkit - X11, Motif, and Imake

Still getting below error while compiling DBI/DBD module:
& mv Perl.xsc Perl.c
cc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +Z -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +O2 +Onolimit +Opromote_indirect_calls -DVERSION=\"1.609\" -DXS_VERSION=\"1.609\" +Z "-I/opt/perl_64/lib/5.8.8/PA-RISC2.0-thread-multi-LP64/CORE" Perl.c
(Bundled) cc: warning 480: The -A 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.
(Bundled) cc: warning 480: The +O2 option is available only with the C/ANSI C product; 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_64/lib/5.8.8/PA-RISC2.0-thread-multi-LP64/CORE/perlio.h", line 121: error 4065: Recursion in macro "PerlIO".
*** Error exit code 1

Stop.
Appreciate your help/advice
5 REPLIES 5
Jupinder Bedi
Respected Contributor

Re: Perl DBI Compilation error

Try to install that module again from the MCPAN . hope it will resolve you issue

#/usr/local/bin/perl ├в MCPAN ├в e ├в install module name"


Good luck
All things excellent are as difficult as they are rare
Dennis Handly
Acclaimed Contributor
Solution

Re: Perl DBI Compilation error

>I have HP ANSI/C Compiler on the box:

It seems like it. What does "whence cc" and "ll ($whence cc)" show?

>(Bundled) cc: warning 480: ...

This is still invoking the bundled C compiler. Most likely /usr/ccs/bin/cc.

James R. Ferguson
Acclaimed Contributor

Re: Perl DBI Compilation error

Hi:

As Dennis said, it would appear that your are invoking the the bundled C compiler. '/usr/ccs/bin' is normally in your PATH, but should be after '/usr/bin'. And, '/usr/bin/cc' should be a symbolic link to '/opt/aCC/bin/cc' which is the compiler you require.

Regards!

...JRF...
Madhavendra
Occasional Advisor

Re: Perl DBI Compilation error

Thanks everyone after setting the path it resolved my issue..
Dennis Handly
Acclaimed Contributor

Re: Perl DBI Compilation error

>JRF: /usr/bin/cc should be a symbolic link to /opt/aCC/bin/cc which is the compiler you require.

For PA, that's /opt/ansic/bin/cc.