Hi,
I'm trying to upgrade DBD::Sybase from 0.91 to 0.95, and get the following
errors, ubdefined cs_ctx_global . Can someone point me where the missing lib
is, how to specify it in CONFIG?
Many thanks
Frank
[root@test001 DBD-Sybase-0.95]# echo $SYBASE
/usr/local/freetds-0.53
[root@test001 DBD-Sybase-0.95]# perl Makefile.PL
Sybase OpenClient found.
The DBD::Sybase module need access to a Sybase server to run the tests.
To clear an entry please enter 'undef'
Sybase server to use (default: undef):
User ID to log in to Sybase (default: sa):
Password (default: undef):
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lcs
Note (probably harmless): No library found for -lsybtcl
Note (probably harmless): No library found for -lcomn
Note (probably harmless): No library found for -lintl
Using DBI 1.21 installed in
/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBI
Writing Makefile for DBD::Sybase
[root@test001 DBD-Sybase-0.95]# make
gcc -c -I/usr/local/freetds-0.53/include
-I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBI -fno-strict-aliasing
-I/usr/local/include -O2 -march=i386 -mcpu=i686 -DVERSION=\"0.95\"
-DXS_VERSION=\"0.95\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE Sybase.c
gcc -c -I/usr/local/freetds-0.53/include
-I/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBI -fno-strict-aliasing
-I/usr/local/include -O2 -march=i386 -mcpu=i686 -DVERSION=\"0.95\"
-DXS_VERSION=\"0.95\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE dbdimp.c
Running Mkbootstrap for DBD::Sybase ()
chmod 644 Sybase.bs
rm -f blib/arch/auto/DBD/Sybase/Sybase.so
LD_RUN_PATH="/usr/local/freetds-0.53/lib:/lib" gcc
-L/usr/local/freetds-0.53/lib -shared -L/usr/local/lib Sybase.o dbdimp.o -o
blib/arch/auto/DBD/Sybase/Sybase.so -L/usr/local/freetds-0.53/lib -lct
-ltds -ldl -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
[root@test001 DBD-Sybase-0.95]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/autocommit........install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
blib/arch/auto/DBD/Sybase/Sybase.so: undefined symbol: cs_ctx_global at
/usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206.
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 40
t/autocommit........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
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
blib/arch/auto/DBD/Sybase/Sybase.so: undefined symbol: cs_ctx_global at
/usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206.
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
t/base..............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:
blib/arch/auto/DBD/Sybase/Sybase.so: undefined symbol: cs_ctx_global at
/usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206.
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 42
t/exec..............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:
blib/arch/auto/DBD/Sybase/Sybase.so: undefined symbol: cs_ctx_global at
/usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206.
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 36
t/fail..............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:
blib/arch/auto/DBD/Sybase/Sybase.so: undefined symbol: cs_ctx_global at
/usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206.
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 38
t/login.............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:
blib/arch/auto/DBD/Sybase/Sybase.so: undefined symbol: cs_ctx_global at
/usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206.
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 45
t/main..............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:
blib/arch/auto/DBD/Sybase/Sybase.so: undefined symbol: cs_ctx_global at
/usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206.
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 40
t/nsql..............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:
blib/arch/auto/DBD/Sybase/Sybase.so: undefined symbol: cs_ctx_global at
/usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206.
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 39
t/place.............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:
blib/arch/auto/DBD/Sybase/Sybase.so: undefined symbol: cs_ctx_global at
/usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206.
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 42
t/xblob.............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-6
Failed 5/6 tests, 16.67% okay
Failed Test Status Wstat Total Fail Failed List of Failed
----------------------------------------------------------------------------
----
t/autocommit.t 255 65280 4 3 75.00% 2-4
t/base.t 255 65280 5 2 40.00% 4-5
t/exec.t 255 65280 9 8 88.89% 2-9
t/fail.t 255 65280 13 12 92.31% 2-13
t/login.t 255 65280 3 2 66.67% 2-3
t/main.t 255 65280 16 15 93.75% 2-16
t/nsql.t 255 65280 4 3 75.00% 2-4
t/place.t 255 65280 11 10 90.91% 2-11
t/xblob.t 255 65280 6 5 83.33% 2-6
Failed 9/9 test scripts, 0.00% okay. 60/71 subtests failed, 15.49% okay.
make: *** [test_dynamic] Error 2