I hoping someone may be able to help explain why DBD-Ingres-0.31 fails make
test.
I'm using the copy of Perl that comes with SCO 7.1.1. Perl -v reports
"This is perl, version 5.004_04 built for i386-svr4"
DBI 1.20 installs O.K.
    PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
-I/usr/gnu/lib/pe
rl5/i386-svr4/5.00404 -I/usr/gnu/lib/perl5 -e 'use Test::Harness
qw(&runtests $v
erbose); $verbose=0; runtests @ARGV;' t/*.t
t/basics............ok
t/dbidrv............ok
t/examp.............ok
t/meta..............ok
t/preparse..........ok
t/proxy.............skipping test on this platform
t/shell.............skipping test on this platform
t/subclass..........ok
All tests successful.
Files=8,  Tests=237,  1 secs ( 0.60 cusr  0.06 csys =  0.66 cpu)
    PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
-I/usr/gnu/lib/pe
rl5/i386-svr4/5.00404 -I/usr/gnu/lib/perl5 test.pl
test.pl
DBI test application $Revision: 11.2 $
Using /spare1/russell/DBI-1.20/blib
Switch: DBI 1.20 by Tim Bunce, 1.20
Available Drivers: ExampleP, Ingres, Proxy
dbi:ExampleP:: testing 5 sets of 20 connections:
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
Made 100 connections in  0 secs ( 0.03 usr  0.00 sys =  0.03 cpu)
Testing handle creation speed...
5000 NullP statement handles cycled in 0.7 cpu+sys seconds (6756 per sec)
test.pl done

However DBD-Ingres-0.31 fails make test
It seems to build O.K.

per Makefile.PL reports:-
 Configuring DBD::Ingres ...
        Try 'perl Makefile.PL -v'
          if you have any problems.
Using Ingres in /ingresii
Checking if your kit is complete...
Looks good
Writing Makefile for DBD::Ingres

make reports :-
mkdir ./blib
mkdir ./blib/lib
mkdir ./blib/lib/DBD
mkdir ./blib/arch
mkdir ./blib/arch/auto
mkdir ./blib/arch/auto/DBD
mkdir ./blib/arch/auto/DBD/Ingres
mkdir ./blib/lib/auto
mkdir ./blib/lib/auto/DBD
mkdir ./blib/lib/auto/DBD/Ingres
mkdir ./blib/man3
cp ingtest.pl ./blib/lib/DBD/ingtest.pl
cp Ingres.pm ./blib/lib/DBD/Ingres.pm
cp ingperl.pl ./blib/lib/ingperl.pl
cp Ingperl.pm ./blib/lib/Ingperl.pm
        /usr/bin/perl -p -e "s!/\*64\*!!" dbdimp.psc > dbdimp.sc
        /ingresii/ingres/bin/esqlc -o.h dbdimp.sc
ESQL dbdimp.sc:
        /usr/bin/perl -p -e "s/~DRIVER~/Ingres/g"
</usr/gnu/lib/perl5/site_perl/i386-svr4/auto/DBI/Driver.xst >Ingres.xsi
        /usr/bin/perl -I/usr/gnu/lib/perl5/i386-svr4/5.00404
-I/usr/gnu/lib/perl5 /usr/gnu/lib/perl5/ExtUtils/xsubpp  -typemap
/usr/gnu/lib/perl5/ExtUtils/typemap Ingres.xs >Ingres.tc && mv Ingres.tc
Ingres.c
        /bin/cc -c -I/usr/gnu/lib/perl5/site_perl/i386-svr4/auto/DBI
-I/usr/include -I/usr/ucbinclude -g     -DVERSION=\"0.31\"
-DXS_VERSION=\"0.31\" -Kpic -I/usr/gnu/lib/perl5/i386-svr4/5.00404/CORE
Ingres.c
UX:acomp: WARNING: "Ingres.xsi", line 92: end-of-loop code not reached
UX:acomp: WARNING: "Ingres.xsi", line 296: end-of-loop code not reached
UX:acomp: WARNING: "Ingres.xsi", line 305: end-of-loop code not reached
UX:acomp: WARNING: "Ingres.xsi", line 361: end-of-loop code not reached
UX:acomp: WARNING: "Ingres.xsi", line 367: end-of-loop code not reached
        /bin/cc -c -I/usr/gnu/lib/perl5/site_perl/i386-svr4/auto/DBI
-I/usr/incl
ude -I/usr/ucbinclude -g     -DVERSION=\"0.31\"  -DXS_VERSION=\"0.31\" -Kpic
-I/usr/gnu/lib/perl5/i386-svr4/5.00404/CORE  dbdimp.c
UX:acomp: WARNING: "dbdimp.c", line 1276: statement not reached
Running Mkbootstrap for DBD::Ingres ()
        chmod 644 Ingres.bs
        LD_RUN_PATH="/ingresii/ingres/lib:/usr/ccs/lib" /bin/cc -o
../blib/arch/auto/DBD/Ingres/Ingres.so  -G -L/usr/ccs/lib -L/usr/ucblib
-L/usr/local/lib -L/usr/gnu/lib Ingres.o dbdimp.o -L/usr/ccs/lib -L/usr/lib
-L/ingresii/ingres/lib -linterp.1 -lframe.1 -lq.1 -lcompat.1 -lelf -lgen -lm
-lc    -L/usr/ccs/lib -L/usr/lib -L/ingresii/ingres/lib -linterp.1 -lframe.1
-lq.1 -lcompat.1 -lelf -lgen -lm -lc
UX:cc: WARNING: Avoid specifying -lc; cc will ensure that libc is linked in
        the proper order. Linking libc in the wrong order may cause
incorrect
    execution behavior. If you do specify -lc, make sure that no dynamic
    libraries are specified after it.
UX:cc: WARNING: Avoid specifying -lc; cc will ensure that libc is linked in
    the proper order. Linking libc in the wrong order may cause incorrect
    execution behavior. If you do specify -lc, make sure that no dynamic
    libraries are specified after it.
    chmod 755 ./blib/arch/auto/DBD/Ingres/Ingres.so
    cp Ingres.bs ./blib/arch/auto/DBD/Ingres/Ingres.bs
    chmod 644 ./blib/arch/auto/DBD/Ingres/Ingres.bs
Manifying ./blib/man3/DBD::Ingres.3
Manifying ./blib/man3/DBD::Ingperl.3

However DBI_DSN=gvbh make test reports:-
        /usr/bin/perl -I/usr/gnu/lib/perl5/i386-svr4/5.00404
-I/usr/gnu/lib/perl5 /usr/gnu/lib/perl5/ExtUtils/xsubpp  -typemap
/usr/gnu/lib/perl5/ExtUtils/typemap Ingres.xs >Ingres.tc && mv Ingres.tc
Ingres.c
        /bin/cc -c -I/usr/gnu/lib/perl5/site_perl/i386-svr4/auto/DBI
-I/usr/include -I/usr/ucbinclude -g     -DVERSION=\"0.31\"
-DXS_VERSION=\"0.31\" -Kpic -I/usr/gnu/lib/perl5/i386-svr4/5.00404/CORE
Ingres.c
UX:acomp: WARNING: "Ingres.xsi", line 92: end-of-loop code not reached
UX:acomp: WARNING: "Ingres.xsi", line 296: end-of-loop code not reached
UX:acomp: WARNING: "Ingres.xsi", line 305: end-of-loop code not reached
UX:acomp: WARNING: "Ingres.xsi", line 361: end-of-loop code not reached
UX:acomp: WARNING: "Ingres.xsi", line 367: end-of-loop code not reached
        LD_RUN_PATH="/ingresii/ingres/lib:/usr/ccs/lib" /bin/cc -o
../blib/arch/auto/DBD/Ingres/Ingres.so  -G -L/usr/ccs/lib -L/usr/ucblib
-L/usr/local/lib -L/usr/gnu/lib Ingres.o dbdimp.o -L/usr/ccs/lib -L/usr/lib
-L/ingresii/ingres/lib -linterp.1 -lframe.1 -lq.1 -lcompat.1 -lelf -lgen -lm
-lc    -L/usr/ccs/lib -L/usr/lib -L/ingresii/ingres/lib -linterp.1 -lframe.1
-lq.1 -lcompat.1 -lelf -lgen -lm -lc
UX:cc: WARNING: Avoid specifying -lc; cc will ensure that libc is linked in
        the proper order. Linking libc in the wrong order may cause
incorrect
        execution behavior. If you do specify -lc, make sure that no dynamic
        libraries are specified after it.
UX:cc: WARNING: Avoid specifying -lc; cc will ensure that libc is linked in
        execution behavior. If you do specify -lc, make sure that no dynamic
        libraries are specified after it.
        chmod 755 ./blib/arch/auto/DBD/Ingres/Ingres.so
        PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
-I/usr/gnu/lib/perl5/i386-svr4/5.00404 -I/usr/gnu/lib/perl5 -e 'use
Test::Harness qw(&runtest
s $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/dbi...............install_driver(Ingres) failed: Can't load
'./blib/arch/auto/DBD/Ingres/Ingres.so' for module DBD::Ingres: dynamic
linker: /usr/bin/perl: relocation error: symbol not found: mutex_init;
referenced from: /ingresii/ingres/lib/libcompat.1.so at
/usr/gnu/lib/perl5/i386-svr4/5.00404/DynaLoader.pm line 166
..

 at (eval 1) line 2
Perhaps a required shared library or dll isn't installed where expected
 at t/dbi.t line 49
dubious
        Test returned status 2 (wstat 512, 0x200)
Number found where operator expected at (eval 25) line 1, near ")0"
        (Missing operator before 0?)
t/event.............install_driver(Ingres) failed: Can't load
'./blib/arch/auto/DBD/Ingres/Ingres.so' for module DBD::Ingres: dynamic
linker: /usr/bin/perl: relocation error: symbol not found: mutex_init;
referenced from: /ingresii/ingres/lib/libcompat.1.so at
/usr/gnu/lib/perl5/i386-svr4/5.00404/DynaLoader.pm line 166
..
 at (eval 1) line 2
Perhaps a required shared library or dll isn't installed where expected
 at t/event.t line 24
dubious
    Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-17
    Failed 17/17 tests, 0.00% okay
Failed Test  Status Wstat Total Fail  Failed  List of failed
----------------------------------------------------------------------------
---
t/dbi.t           2   512    ??   ??       %  ??
t/event.t         2   512    17   17 100.00%  1-17
Failed 2/2 test scripts, 0.00% okay. 17/17 subtests failed, 0.00% okay.

I've tried make clean; perl Makefile.PL then edit Makefile to remove -lc as
suggested above. Then DynaLoader complains about "finite" not found.

Russell McDonell,
Goulburn Valley Health,
Victoria Australia






This communication is intended only to be read or used by the addressee.
The information contained in this communication may be confidential
information.  If you are not the intended recipient, any use, interference
with, distribution, disclosure or copying of this material is unauthorised
and prohibited.  The confidentiality attached to this communication is not
waived or lost by reason of the mistaken delivery to you.  If you have
received this communication in error, please destroy it and notify Goulburn
Valley Health - by phoning (03) 5832 2322.

Reply via email to