|
|
sybperl-l Archive
Up Prev Next
From: "Klaus Danker" <danker at datab dot de>
Subject: Failing to compile DBD::Sybase on Suse 9.2
Date: Jan 23 2005 12:20PM
Hi there,
I'm trying to compile DBD-Sybase 1.05 on my Suse 9.2 Linux box with FreeTDS
0.62.4. I end up with a lot of error messages when trying to use it
afterwards. In the mailing archive I've seen exactly the same errors from
another guy using Solaris. I've seen a comment from you that the problem
might come from something about the locale settings but haven't seen any
solution for this problem. Could you give me a hand to overcome this
problem, please? I really hope I did not miss something obvious since I'm
not really experienced in setting up things like this!
This is what I see when I run the make command:
/usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.8.5/ExtUtils/typemap Sybase.xs > Sybase.xsc && mv
Sybase.xsc Sybase.c
cc -c -I/usr/local/include -DNO_THREADS
-I/usr/lib/perl5/vendor_perl/5.8.5/i586-linux-thread-multi/auto/DBI
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -Wall -pipe -DVERSION=\"1.05\"
-DXS_VERSION=\"1.05\" -fPIC
"-I/usr/lib/perl5/5.8.5/i586-linux-thread-multi/CORE" Sybase.c
Sybase.c: In function `XS_DBD__Sybase__db__isdead':
Sybase.c:98: warning: unused variable `ix'
Sybase.c: In function `XS_DBD__Sybase__db__date_fmt':
Sybase.c:115: warning: unused variable `ix'
Sybase.xs: In function `XS_DBD__Sybase__st_cancel':
Sybase.xs:87: warning: implicit declaration of function `syb_st_cancel'
Sybase.c:133: warning: unused variable `ix'
Sybase.c: In function `XS_DBD__Sybase__st_ct_get_data':
Sybase.c:150: warning: unused variable `ix'
Sybase.c: In function `XS_DBD__Sybase__st_ct_data_info':
Sybase.c:179: warning: unused variable `ix'
Sybase.c: In function `XS_DBD__Sybase__st_ct_send_data':
Sybase.c:213: warning: unused variable `ix'
Sybase.c: In function `XS_DBD__Sybase__st_ct_prepare_send':
Sybase.c:232: warning: unused variable `ix'
Sybase.c: In function `XS_DBD__Sybase__st_ct_finish_send':
Sybase.c:249: warning: unused variable `ix'
Sybase.c: In function `XS_DBD__Sybase__st_ct_data_info':
Sybase.xs:115: warning: `sybaction' might be used uninitialized in this
function
cc -c -I/usr/local/include -DNO_THREADS
-I/usr/lib/perl5/vendor_perl/5.8.5/i586-linux-thread-multi/auto/DBI
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -Wall -pipe -DVERSION=\"1.05\"
-DXS_VERSION=\"1.05\" -fPIC
"-I/usr/lib/perl5/5.8.5/i586-linux-thread-multi/CORE" dbdimp.c
dbdimp.c: In function `clientmsg_cb':
dbdimp.c:273: warning: long int format, int arg (arg 3)
dbdimp.c:273: warning: long int format, int arg (arg 4)
dbdimp.c:276: warning: long int format, int arg (arg 3)
dbdimp.c:276: warning: long int format, int arg (arg 4)
dbdimp.c: In function `servermsg_cb':
dbdimp.c:472: warning: long int format, CS_MSGNUM arg (arg 3)
dbdimp.c:472: warning: long int format, CS_INT arg (arg 4)
dbdimp.c:475: warning: long int format, CS_INT arg (arg 3)
dbdimp.c:475: warning: long int format, CS_INT arg (arg 4)
dbdimp.c: In function `syb_init':
dbdimp.c:708: warning: unused variable `boolean'
dbdimp.c: In function `get_server_version':
dbdimp.c:1595: warning: unused variable `db'
dbdimp.c: In function `syb_db_opentran':
dbdimp.c:1897: warning: unsigned int format, pointer arg (arg 3)
dbdimp.c: In function `dbd_preparse':
dbdimp.c:2419: warning: unused variable `STATES'
dbdimp.c: In function `_convert':
dbdimp.c:3217: warning: suggest parentheses around && within ||
dbdimp.c: In function `syb_bind_ph':
dbdimp.c:4861: warning: operation on `lna' may be undefined
dbdimp.c: In function `fetch_data':
dbdimp.c:5005: warning: long int format, CS_INT arg (arg 3)
dbdimp.c: In function `toggle_autocommit':
dbdimp.c:5341: warning: `ret' might be used uninitialized in this function
dbdimp.c: In function `syb_bind_ph':
dbdimp.c:4834: warning: `name' might be used uninitialized in this function
dbdimp.c: In function `syb_st_prepare':
dbdimp.c:2429: warning: `pos' might be used uninitialized in this function
dbdimp.c: At top level:
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/CORE/patchlevel.h:121: warning:
`local_patches' defined but not used
dbdimp.c:134: warning: `cslibmsg_cb' defined but not used
Running Mkbootstrap for DBD::Sybase ()
chmod 644 Sybase.bs
rm -f blib/arch/auto/DBD/Sybase/Sybase.so
LD_RUN_PATH="/usr/local/lib" cc -L/usr/local/lib -shared Sybase.o dbdimp.o
-o blib/arch/auto/DBD/Sybase/Sybase.so -L/usr/local/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
=============================================================
And this is the result of "make test"
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/autocommit....cs_config(CS_LOC_PROP) failed at
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/DynaLoader.pm line 253.
# Failed test (t/autocommit.t at line 46)
# Failed test (t/autocommit.t at line 61)
# Looks like you failed 2 tests of 5.
dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 4-5
Failed 2/5 tests, 60.00% okay
t/base..........cs_config(CS_LOC_PROP) failed at
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/DynaLoader.pm line 253.
ok
t/exec..........cs_config(CS_LOC_PROP) failed at
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/DynaLoader.pm line 253.
# Failed test (t/exec.t at line 39)
# Failed test (t/exec.t at line 55)
dubious
Test returned status 0 (wstat 11, 0xb)
DIED. FAILED tests 5-6, 8-17
Failed 12/17 tests, 29.41% okay
t/fail..........cs_config(CS_LOC_PROP) failed at
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/DynaLoader.pm line 253.
src/tds/login.c: tds_connect: 192.168.1.114:1433: Verbindungsaufbau
abgelehnt
# Failed test (t/fail.t at line 24)
Can't call method "prepare" on an undefined value at t/fail.t line 28.
# Looks like you planned 12 tests but only ran 3.
# Looks like your test died just after 3.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-12
Failed 10/12 tests, 16.67% okay
t/login.........cs_config(CS_LOC_PROP) failed at
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/DynaLoader.pm line 253.
src/tds/login.c: tds_connect: 192.168.1.114:1433: Verbindungsaufbau
abgelehnt
DBI connect('server=ltklas-xp;database=test','klaus',...) failed: OpenClient
message: LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER = (41)
Server ltklas-xp, database
Message String: Server is unavailable or does not exist.
at t/login.t line 23
# Failed test (t/login.t at line 25)
src/tds/login.c: tds_connect: 192.168.1.114:1433: Verbindungsaufbau
abgelehnt
# Looks like you failed 1 tests of 4.
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 3
Failed 1/4 tests, 75.00% okay
t/main..........cs_config(CS_LOC_PROP) failed at
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/DynaLoader.pm line 253.
src/tds/login.c: tds_connect: 192.168.1.114:1433: Verbindungsaufbau
abgelehnt
# Failed test (t/main.t at line 32)
Use of uninitialized value in print at t/main.t line 34.
Can't call method "do" on unblessed reference at t/main.t line 38.
# Looks like you planned 29 tests but only ran 3.
# Looks like your test died just after 3.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-29
Failed 27/29 tests, 6.90% okay
t/multi_sth.....cs_config(CS_LOC_PROP) failed at
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/DynaLoader.pm line 253.
src/tds/login.c: tds_connect: 192.168.1.114:1433: Verbindungsaufbau
abgelehnt
# Failed test (t/multi_sth.t at line 27)
Can't call method "prepare" on an undefined value at t/multi_sth.t line 42.
# Looks like you planned 43 tests but only ran 3.
# Looks like your test died just after 3.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-43
Failed 41/43 tests, 4.65% okay
t/nsql..........cs_config(CS_LOC_PROP) failed at
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/DynaLoader.pm line 253.
src/tds/login.c: tds_connect: 192.168.1.114:1433: Verbindungsaufbau
abgelehnt
DBI connect('server=ltklas-xp;database=test','klaus',...) failed: OpenClient
message: LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER = (41)
Server ltklas-xp, database
Message String: Server is unavailable or does not exist.
at t/nsql.t line 20
# Failed test (t/nsql.t at line 22)
Can't call method "func" on an undefined value at t/nsql.t line 24.
# Looks like you planned 7 tests but only ran 3.
# Looks like your test died just after 3.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-7
Failed 5/7 tests, 28.57% okay
t/place.........cs_config(CS_LOC_PROP) failed at
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/DynaLoader.pm line 253.
src/tds/login.c: tds_connect: 192.168.1.114:1433: Verbindungsaufbau
abgelehnt
# Failed test (t/place.t at line 20)
Can't call method "disconnect" on unblessed reference at t/place.t line 69.
# Looks like you failed 1 tests of 13.
# Looks like your test died just after 13.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 3
Failed 1/13 tests, 92.31% okay (less 10 skipped tests: 2 okay,
15.38%)
t/thread........cs_config(CS_LOC_PROP) failed at
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/DynaLoader.pm line 253.
skipped
all skipped: this DBD::Sybase not configured to support iThreads
t/xblk..........cs_config(CS_LOC_PROP) failed at
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/DynaLoader.pm line 253.
src/tds/login.c: tds_connect: 192.168.1.114:1433: Verbindungsaufbau
abgelehnt
# Failed test (t/xblk.t at line 48)
Can't call method "do" on an undefined value at t/xblk.t line 50.
# Looks like you planned 62 tests but only ran 3.
# Looks like your test died just after 3.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-62
Failed 60/62 tests, 3.23% okay
t/xblob.........cs_config(CS_LOC_PROP) failed at
/usr/lib/perl5/5.8.5/i586-linux-thread-multi/DynaLoader.pm line 253.
src/tds/login.c: tds_connect: 192.168.1.114:1433: Verbindungsaufbau
abgelehnt
DBI connect('server=ltklas-xp;database=test','klaus',...) failed: OpenClient
message: LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER = (41)
Server ltklas-xp, database
Message String: Server is unavailable or does not exist.
at t/xblob.t line 21
# Failed test (t/xblob.t at line 23)
Can't call method "do" on an undefined value at t/xblob.t line 25.
# Looks like you planned 11 tests but only ran 3.
# Looks like your test died just after 3.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-11
Failed 9/11 tests, 18.18% okay
Failed 10/12 test scripts, 16.67% okay. 168/208 subtests failed, 19.23%
okay.
Failed Test Stat Wstat Total Fail Failed List of Failed
----------------------------------------------------------------------------
---
t/autocommit.t 2 512 5 2 40.00% 4-5
t/exec.t 0 11 17 22 129.41% 5-6 8-17
t/fail.t 255 65280 12 19 158.33% 3-12
t/login.t 1 256 4 1 25.00% 3
t/main.t 255 65280 29 53 182.76% 3-29
t/multi_sth.t 255 65280 43 81 188.37% 3-43
t/nsql.t 255 65280 7 9 128.57% 3-7
t/place.t 255 65280 13 1 7.69% 3
t/xblk.t 255 65280 62 119 191.94% 3-62
t/xblob.t 255 65280 11 17 154.55% 3-11
1 test and 10 subtests skipped.
make: *** [test_dynamic] Fehler 255
Thanks a lot for your help in advance and kind regards,
Klaus
Klaus Danker - Leiter datab Support
Tel: +49 (0) 69 962 207-33
Fax: +49 (0) 69 962 207-80
E-Mail: mailto:danker@datab.de
Have a look at: http://www.datab.de
|