Operating System - HP-UX
1823079 Members
3143 Online
109645 Solutions
New Discussion юеВ

Cannot build DBD-Informix with perl and gcc on hpux11.11

 
delaporte
Occasional Contributor

Cannot build DBD-Informix with perl and gcc on hpux11.11

Hello

I am trying to build the DBD-Informix module DBD-Informix-2003.04 on HP-UX 11.11v1 with Perl 5.8.0.B and gcc 3.3.3. The informix parameters are:

INFORMIXDIR=/apps11/informix ; export INFORMIXDIR
INFORMIXSERVER=fab3_prd1 ; export INFORMIXSERVER
PATH=$PATH:$INFORMIXDIR/bin ; export PATH
DBD_INFORMIX_DATABASE=stores7 ; export DBD_INFORMIX_DATABASE
INFORMIXC=/usr/local/bin/gcc

I get the following error during the perl Makefile.PL step.

Testing whether your Informix test environment will work...
gcc: +Ofastaccess: No such file or directory
gcc: +DS2.0: No such file or directory
gcc: +DA1.1: No such file or directory
cc1: error: unrecognized option `-H400000'
Failed to compile esqltest.ec to esqltest.o

I cannot find any reference to that problem in the FAQ and the Notes directory.

Regards

OLivier Delaporte
3 REPLIES 3
susan gregory_1
Valued Contributor

Re: Cannot build DBD-Informix with perl and gcc on hpux11.11

Hi!
If you create a small test C program like this called hello.c:

#include
int main()
{ printf("hello world\n");}

and then try to compile it with the following compile options:

gcc +Ofastaccess +DS2.0 +DA1.1 hello.c

do you get the same error?
My suspicion is that these errors are occurring because the gcc compiler doesn't recognize these compiler options, where the cc (purchasable Ansi C compiler)and aCC (purchasable Ansi C++ compiler) would recognize both of those options.
But that is just a guess. I don't have a gcc compiler installed.
delaporte
Occasional Contributor

Re: Cannot build DBD-Informix with perl and gcc on hpux11.11

Thank you for your reply. The problem was to find where those flags were inserted in the perl Makefile.PL script and I found those flags in the Informix esql shell script and replaced them with gcc flags.
Jeff Schussele
Honored Contributor

Re: Cannot build DBD-Informix with perl and gcc on hpux11.11

Hi Olivier,

One thing to consider is the Informix bit-width. If Informix is 64-bit, then you need to compile the DBD module with a 64-bit Perl.
It's available on Procura's site or any of it's mirrors. I used it to compile an SQL DBD & DBI that was to access a 64-bit Oracle DB & it worked like a champ.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!