DBI::Sybase build problems w/5.8.1, Tru64 4.0G, cc, make test,

From: John Richter (john.richter_at_eds.com)
Date: 10/23/03


Date: 23 Oct 2003 12:45:25 -0700

My problem appears to be very similar to a problem, "DBD::Sybase and
Sybase::CTlib build problems w/5.8.1, Solaris", posted a few days ago.
 However, the -z flag, in the listed patch, is not in the Makefile on
my platform, and I have been unable to find a counterpart in my
LDDLFLAGS variable.

Below is data regarding my (attemped) installation of the DBD. Both
the 5.8.l and the DBI went without apparent glitches, and seem to run
fine, though the DBI squawks about no driver available yet. I'm still
rooting through the man's, but if someone has a clue they can throw
me, it will be greatly appreciated.

{1) make test TEST_VERBOSE=1 log

/usr/bin/perl -p -e "s/~DRIVER~/Sybase/g"
/usr/local/lib/perl5/site_perl/5.8.1/alpha-dec_osf/auto/DBI/Driver.xst
> Sybase.xsi
/usr/bin/perl /usr/local/lib/perl5/5.8.1/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/5.8.1/ExtUtils/typemap Sybase.xs > Sybase.xsc &&
mv Sybase.xsc Sybase.c
cc -c -I/usr/sybase/include
-I/usr/local/lib/perl5/site_perl/5.8.1/alpha-dec_osf/auto/DBI -std
-D_INTRINSICS -fprm d -ieee -I/usr/local/include -DLANGUAGE_C -O4
-DVERSION=\"1.01\" -DXS_VERSION=\"1.01\"
"-I/usr/local/lib/perl5/5.8.1/alpha-dec_osf/CORE" Sybase.c
ar cr tmp.a Sybase.o dbdimp.o
: tmp.a
rm -f blib/arch/auto/DBD/Sybase/Sybase.so
LD_RUN_PATH="/usr/sybase/lib" ld -L/usr/sybase/lib -shared
-expect_unresolved "*" -O4 -msym -std -s -L/usr/local/lib -all tmp.a
-none -o blib/arch/auto/DBD/Sybase/Sybase.so -L/usr/sybase/lib -lct
-lcs -ltcl -lcomn -lintl -lsdna -lm
chmod 755 blib/arch/auto/DBD/Sybase/Sybase.so
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
t/autocommit....install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/autocommit.t line 24
1..4
ok 1
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-4
        Failed 3/4 tests, 25.00% okay
t/base..........install_driver(Sybase) failed: Can't load
'/usr/users/spc/data/home/DBD-Sybase-1.01/blib/arch/auto/DBD/Sybase/Sybase.so'
for module DBD::Sybase: Unresolved symbol in
/usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/base.t line 18
1..5
ok 1
ok 2
ok 3
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 4-5
        Failed 2/5 tests, 60.00% okay
t/exec..........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/exec.t line 26
1..9
ok 1
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-9
        Failed 8/9 tests, 11.11% okay
t/fail..........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/fail.t line 19
1..13
ok 1
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-13
        Failed 12/13 tests, 7.69% okay
t/login.........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/login.t line 21
1..3
ok 1
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-3
        Failed 2/3 tests, 33.33% okay
t/main..........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/main.t line 28
1..16
ok 1
Switch: DBI 1.38 by Tim Bunce, 1.38
Available Drivers: ExampleP, Proxy, Sponge, Sybase
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-16
        Failed 15/16 tests, 6.25% okay
t/nsql..........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/nsql.t line 24
1..4
ok 1
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-4
        Failed 3/4 tests, 25.00% okay
t/place.........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/place.t line 21
1..11
ok 1
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-11
        Failed 10/11 tests, 9.09% okay
t/xblob.........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/xblob.t line 26
1..6
ok 1
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-6
        Failed 5/6 tests, 16.67% okay
Failed 9/9 test scripts, 0.00% okay. 60/71 subtests failed, 15.49%
okay.
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/autocommit.t 255 65280 4 6 150.00% 2-4
t/base.t 255 65280 5 4 80.00% 4-5
t/exec.t 255 65280 9 16 177.78% 2-9
t/fail.t 255 65280 13 24 184.62% 2-13
t/login.t 255 65280 3 4 133.33% 2-3
t/main.t 255 65280 16 30 187.50% 2-16
t/nsql.t 255 65280 4 6 150.00% 2-4
t/place.t 255 65280 11 20 181.82% 2-11
t/xblob.t 255 65280 6 10 166.67% 2-6
*** Exit 2
Stop.

***********************************************************
***********************************************************
***********************************************************

(2) perl -e "print qq(@INC)"

/usr/local/lib/perl5/5.8.1/alpha-dec_osf /usr/local/lib/perl5/5.8.1
/usr/local/lib/perl5/site_perl/5.8.1/alpha-dec_osf
/usr/local/lib/perl5/site_perl/5.8.1 /usr/local/lib/perl5/site_perl .

***********************************************************
***********************************************************
***********************************************************

(3) perl -V

Summary of my perl5 (revision 5.0 version 8 subversion 1)
configuration:
  Platform:
    osname=dec_osf, osvers=4.0g, archname=alpha-dec_osf
    uname='osf1 nbbus3 v4.0 1530 alpha '
    config_args='-de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-std -D_INTRINSICS -fprm d -ieee
-I/usr/local/include -DLANGUAGE_C',
    optimize='-O4',
    cppflags='-std -D_INTRINSICS -ieee -I/usr/local/include
-DLANGUAGE_C'
    ccversion='V6.1-123', gccversion='', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc
/usr/lib /var/shlib
    libs=-ldbm -ldb -lm -lutil
    perllibs=-lm -lutil
    libc=/usr/shlib/libc.so, so=so, useshrplib=true,
libperl=libperl.so
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='
-Wl,-rpath,/usr/local/lib/perl5/5.8.1/alpha-dec_osf/CORE'
    cccdlflags=' ', lddlflags='-shared -expect_unresolved "*" -O4
-msym -std -s -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES
  Built under dec_osf
  Compiled at Oct 21 2003 11:54:01
  @INC:
    /usr/local/lib/perl5/5.8.1/alpha-dec_osf
    /usr/local/lib/perl5/5.8.1
    /usr/local/lib/perl5/site_perl/5.8.1/alpha-dec_osf
    /usr/local/lib/perl5/site_perl/5.8.1
    /usr/local/lib/perl5/site_perl
    .

***********************************************************
***********************************************************
***********************************************************

(4) make log

cp Sybase.pm blib/lib/DBD/Sybase.pm
cp dbd-sybase.pod blib/lib/DBD/dbd-sybase.pod
/usr/bin/perl -p -e "s/~DRIVER~/Sybase/g"
/usr/local/lib/perl5/site_perl/5.8.1/alpha-dec_osf/auto/DBI/Driver.xst
> Sybase.xsi
/usr/bin/perl /usr/local/lib/perl5/5.8.1/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/5.8.1/ExtUtils/typemap Sybase.xs > Sybase.xsc &&
mv Sybase.xsc Sybase.c
cc -c -I/usr/sybase/include
-I/usr/local/lib/perl5/site_perl/5.8.1/alpha-dec_osf/auto/DBI -std
-D_INTRINSICS -fprm d -ieee -I/usr/local/include -DLANGUAGE_C -O4
-DVERSION=\"1.01\" -DXS_VERSION=\"1.01\"
"-I/usr/local/lib/perl5/5.8.1/alpha-dec_osf/CORE" Sybase.c
cc -c -I/usr/sybase/include
-I/usr/local/lib/perl5/site_perl/5.8.1/alpha-dec_osf/auto/DBI -std
-D_INTRINSICS -fprm d -ieee -I/usr/local/include -DLANGUAGE_C -O4
-DVERSION=\"1.01\" -DXS_VERSION=\"1.01\"
"-I/usr/local/lib/perl5/5.8.1/alpha-dec_osf/CORE" dbdimp.c
Running Mkbootstrap for DBD::Sybase ()
chmod 644 Sybase.bs
ar cr tmp.a Sybase.o dbdimp.o
: tmp.a
rm -f blib/arch/auto/DBD/Sybase/Sybase.so
LD_RUN_PATH="/usr/sybase/lib" ld -L/usr/sybase/lib -shared
-expect_unresolved "*" -O4 -msym -std -s -L/usr/local/lib -all tmp.a
-none -o blib/arch/auto/DBD/Sybase/Sybase.so -L/usr/sybase/lib -lct
-lcs -ltcl -lcomn -lintl -lsdna -lm
chmod 755 blib/arch/auto/DBD/Sybase/Sybase.so
cp Sybase.bs blib/arch/auto/DBD/Sybase/Sybase.bs
chmod 644 blib/arch/auto/DBD/Sybase/Sybase.bs
Manifying blib/man3/DBD::Sybase.3

***********************************************************
***********************************************************
***********************************************************
(5) make test

/usr/bin/perl -p -e "s/~DRIVER~/Sybase/g"
/usr/local/lib/perl5/site_perl/5.8.1/alpha-dec_osf/auto/DBI/Driver.xst
> Sybase.xsi
/usr/bin/perl /usr/local/lib/perl5/5.8.1/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/5.8.1/ExtUtils/typemap Sybase.xs > Sybase.xsc &&
mv Sybase.xsc Sybase.c
cc -c -I/usr/sybase/include
-I/usr/local/lib/perl5/site_perl/5.8.1/alpha-dec_osf/auto/DBI -std
-D_INTRINSICS -fprm d -ieee -I/usr/local/include -DLANGUAGE_C -O4
-DVERSION=\"1.01\" -DXS_VERSION=\"1.01\"
"-I/usr/local/lib/perl5/5.8.1/alpha-dec_osf/CORE" Sybase.c
ar cr tmp.a Sybase.o dbdimp.o
: tmp.a
rm -f blib/arch/auto/DBD/Sybase/Sybase.so
LD_RUN_PATH="/usr/sybase/lib" ld -L/usr/sybase/lib -shared
-expect_unresolved "*" -O4 -msym -std -s -L/usr/local/lib -all tmp.a
-none -o blib/arch/auto/DBD/Sybase/Sybase.so -L/usr/sybase/lib -lct
-lcs -ltcl -lcomn -lintl -lsdna -lm
chmod 755 blib/arch/auto/DBD/Sybase/Sybase.so
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/autocommit....install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/autocommit.t line 24
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-4
        Failed 3/4 tests, 25.00% okay
t/base..........install_driver(Sybase) failed: Can't load
'/usr/users/spc/data/home/DBD-Sybase-1.01/blib/arch/auto/DBD/Sybase/Sybase.so'
for module DBD::Sybase: Unresolved symbol in
/usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/base.t line 18
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 4-5
        Failed 2/5 tests, 60.00% okay
t/exec..........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/exec.t line 26
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-9
        Failed 8/9 tests, 11.11% okay
t/fail..........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/fail.t line 19
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-13
        Failed 12/13 tests, 7.69% okay
t/login.........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/login.t line 21
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-3
        Failed 2/3 tests, 33.33% okay
t/main..........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/main.t line 28
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-16
        Failed 15/16 tests, 6.25% okay
t/nsql..........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/nsql.t line 24
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-4
        Failed 3/4 tests, 25.00% okay
t/place.........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/place.t line 21
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-11
        Failed 10/11 tests, 9.09% okay
t/xblob.........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
Unresolved symbol in /usr/sybase/lib/libsdna.so: getnodebyname at
/usr/local/lib/perl5/5.8.1/alpha-dec_osf/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 t/xblob.t line 26
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-6
        Failed 5/6 tests, 16.67% okay
Failed 9/9 test scripts, 0.00% okay. 60/71 subtests failed, 15.49%
okay.
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/autocommit.t 255 65280 4 6 150.00% 2-4
t/base.t 255 65280 5 4 80.00% 4-5
t/exec.t 255 65280 9 16 177.78% 2-9
t/fail.t 255 65280 13 24 184.62% 2-13
t/login.t 255 65280 3 4 133.33% 2-3
t/main.t 255 65280 16 30 187.50% 2-16
t/nsql.t 255 65280 4 6 150.00% 2-4
t/place.t 255 65280 11 20 181.82% 2-11
t/xblob.t 255 65280 6 10 166.67% 2-6
*** Exit 2
Stop.



Relevant Pages

  • problem with instalaion of DBD::mysql
    ... i installed mysql database via Mysql-serever-5.1.10-0.i386.rpm also via ... But i could not install DBD::mysql thru cpan. ... Perhaps a required shared library or dll isn't installed where expected ... FAILED tests 4-5 ...
    (perl.beginners)
  • problem with DBD::Informix
    ... have correct output (without errors an warnings). ... Perhaps a required shared library or dll isn't installed where expected ... FAILED tests 1-41 ...
    (perl.dbi.users)
  • GD-2.12 - make test fails
    ... All the installation was successfull only. ... FAILED tests 2-10 ... But make install is not showing any of the error. ...
    (comp.lang.perl.modules)