On Mon, 20 Oct 2003, Jay Hannah wrote:
> We've had a hell of a weekend. We upgraded from AIX 4.3.3_11 to 5.1, and 
> can't get DBD::Informix working. 
...

By the way, to get as far as I got in that post I first had to do the
following to a clean tarball of DBD::Informix. I don't know if this is
relevant or not in DBD::Informix land, but I thought it'd be better to
post it. (I know squat about C, just enough to usually get things compiled
by any means necessary. -grin-)

First "perl Makefile.PL" does this:

Testing whether your Informix test environment will work...
gcc: installation problem, cannot exec `cpp': A file or directory in the path name 
does not exist.
gcc: file path prefix `/opt/freeware/GNUPro/lib/gcc-lib/rtl/2.9-aix51-020209/' never 
used
Failed to compile esqltest.ec to esqltest.o

So I add "cpp" to my path:

([EMAIL PROTECTED]) > find /opt/freeware -name "cpp"
/opt/freeware/GNUPro/bin/cpp
/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/cpp
([EMAIL PROTECTED]) > export PATH=$PATH:/opt/freeware/GNUPro/bin

Then "perl Makefile.PL" does this:

Testing whether your Informix test environment will work...
cpp: -lang-c: linker input file unused since linking not done
gcc: installation problem, cannot exec `cc1': A file or directory in the path name 
does not exist.
gcc: file path prefix `/opt/freeware/GNUPro/lib/gcc-lib/rtl/2.9-aix51-020209/' never 
used
Failed to compile esqltest.ec to esqltest.o

So I add "cc1" to my path:

([EMAIL PROTECTED]) > find /opt/freeware -name "cc1"
/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/cc1
([EMAIL PROTECTED]) > export 
PATH=$PATH:/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209

Then "perl Makefile.PL" does this:

Testing whether your Informix test environment will work...
cpp: -lang-c: linker input file unused since linking not done
gcc: file path prefix `/opt/freeware/GNUPro/lib/gcc-lib/rtl/2.9-aix51-020209/' never 
used
cpp: -lang-c: linker input file unused since linking not done
gcc: file path prefix `/opt/freeware/GNUPro/lib/gcc-lib/rtl/2.9-aix51-020209/' never 
used
ld: 0706-005 Cannot find or open file: libgcc.a
        ld:open(): A file or directory in the path name does not exist.
ld: 0706-005 Cannot find or open file: libgcc.a
        ld:open(): A file or directory in the path name does not exist.
gcc: file path prefix `/opt/freeware/GNUPro/lib/gcc-lib/rtl/2.9-aix51-020209/' never 
used
Failed to link test program esqltest

So I copy a libgcc.a into the current directory (I've tried a couple 
different ones):

([EMAIL PROTECTED]) > find /opt/freeware/ -name "libgcc.a"
/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/aix64/libgcc.a
/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/libgcc.a
/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/power/libgcc.a
/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/powerpc/libgcc.a
/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/soft-float/aix64/libgcc.a
/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/soft-float/libgcc.a
/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/soft-float/power/libgcc.a
/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/soft-float/powerpc/libgcc.a

cp 
/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/powerpc/libgcc.a
 ./

But it seems all for naught, bringing me back to the state of my first 
post. All attempts to use DBD::Informix throw this:

gmake test
t/t00basic..........install_driver(Informix) failed: Can't load 
'/junk/jhannah/DBD-Informix-2003.04/blib/arch/auto/DBD/Informix/Informix.so' for 
module DBD::Informix:  at /usr/local/lib/perl5/5.8.0/aix/DynaLoader.pm line 229.
 at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
 at /junk/jhannah/DBD-Informix-2003.04/blib/lib/DBD/Informix/TestHarness.pm line 183
t/t00basic..........dubious

etc...

As you can see, my C cluelessness abounds. Save me, please! -grin-

Jay Hannah


Reply via email to