Re: Cannot make DBD::Informix
Posted in 2000
"Pirn, Peeter" wrote:
> System: AIX 4.2
> Perl 5.005_03
> DBI-1.13 already installed
> Digest-MD5-2.09 already installed
>
> After failure of `perl -MCPAN -e 'install Bundle::DBD::Informix', I
> successfully ran `perl Makefile.PL' in the DBD::Informix directory. However,
> the subsequent `make' failed for both DBD-Informix-0.97002 and
> DBD-Informix-0.97001.
OK. I'll investigate. But please note that you seem to have ignored the
instructions on how to report a bug in the README file.
I suspect the problem is actually in the ESQL/C itself; the netstub library not
being
present in the command line and not on disk probably means that it was looking
for
/usr/lib/libnsl.a or /usr/lib/libnsl.so and didn't find either and assumed you
had no network
support. Try simply creating an empty file /usr/lib/libnsl.a if you don't have
one already.
Also note the information in the Announce file for the 0.97001 and all the 0.96*
or
0.97* releases -- they are experimental versions testing what CPAN/PAUSE will
do for me. Version 0.95 is the stable version. That said, what you're running
into is
unlikely to be caused by the version changes -- most unlikely.
Also, 9.14 is no longer the current version of ESQL/C by a fairly large number of
revisions (9.15, 9.16, 9.20, 9.21, 9.30). It might be time to look at upgrades.
That said, it should still link, but I haven't run into this particular problem
before,
so iot doesn't yet contain a workaround. I tend to trust the output of the esql
script.
> Having read the Informix DBD README, I rebuilt Perl, using cc instead of ld
> when creating shared libraries. (I don't know how to use cc to build shared
> libraries, but I entered `cc' instead of the default `ld' when the Perl
> Configure script asked me which program to use to build shared libraries.)
> The resulting Perl failed about 40% of the time when I subsequently ran
> `make test', so I backed off this approach and kept my previously built
> ld-made Perl binaries.
>
> I want to get DBD::Informix working. Any help will be appreciated.
>
> The DBD::Informix make failures are:
>
> (DBD-Informix-0.97002)
>
> /bin/make
>
> ...
>
> INFORMIXC="/bin/perl esqlcc" ESQLCC="cc" esql -c -shared> -I/usr/informix/incl/esql -I/usr/local/perl5.005_03/lib/5.00503/aix/auto/DBI
> -I/usr/local/perl5.005_03/lib/site_perl/5.005/aix/auto/DBI -D_ALL_SOURCE
> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192 -O -DVERSION=\\"0.97002\\"
> -DXS_VERSION=\\"0.97002\\" -I/usr/local/perl5.005_03/lib/5.00503/aix/CORE
> -DESQLC_VERSION=914 -DNDEBUG -qlanglvl=ansi -D__H_LOCALEDEF esqlc_v6.ec
> rm -f esqlc_v6.c
> Running Mkbootstrap for DBD::Informix ()
> chmod 644 Informix.bs
> LD_RUN_PATH="" ld -o blib/arch/auto/DBD/Informix/Informix.so -bhalt:
> 4 -bM:SRE -bI:/usr/local/perl5.005_03/lib/5.00503/aix/CORE/perl.exp -bE:
> Informix.exp -b noentry -lc -L/usr/local/lib Informix.o dbdimp.o dbdattr.o
> sqltoken.o sqltype.o ixblob.o decsci.o odbctype.o link.o esqlcver.o esqlc_v6.
> o -L/usr/informix/lib -L/usr/informix/lib/esql -lifsql -lifasf -lifgen
> -lifos -lifgls -lnetstub -ldl -lm /usr/informix/lib/esql/checkapi.o -lifglx
>
> ld: 0706-006 Cannot find or open library file: -l netstub
> ld:open(): No such file or directory
> make: The error code from the last command is 255.
>
> (DBD-Informix-0.97001)
>
> /bin/make
>
> ...
>
> mkdir blib/arch
> mkdir blib/arch/auto
> mkdir blib/arch/auto/DBD
> mkdir blib/arch/auto/DBD/Informix
> Running Mkbootstrap for DBD::Informix ()
> chmod 644 Informix.bs
> LD_RUN_PATH="" ld -o blib/arch/auto/DBD/Informix/Informix.so -bhalt:
> 4 -bM:SRE -bI:/usr/local/perl5.005_03/lib/5.00503/aix/CORE/perl.exp -bE:
> Informix.exp -b noentry -lc -L/usr/local/lib Informix.o dbdimp.o dbdattr.o
> sqltoken.o sqltype.o ixblob.o decsci.o odbctype.o link.o esqlcver.o esqlc_v6.
> o -L/usr/informix/lib -L/usr/informix/lib/esql -lifsql -lifasf -lifgen
> -lifos -lifgls -lnetstub -ldl -lm /usr/informix/lib/esql/checkapi.o -lifglx
>
> ld: 0706-006 Cannot find or open library file: -l netstub
> ld:open(): No such file or directory
> make: The error code from the last command is 255.
>
> -----------------------------------------------------------------------------
> -
> Peeter Pirn Lincoln Financial Systems
--
Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net)
Guardian of DBD::Informix v0.95 -- see http://www.perl.com/CPAN
#include <disclaimer.h>