|
|
sybperl-l Archive
Up Prev Next
From: Jay Listo <jay dot listo at gmail dot com>
Subject: make (warnings) and make test fails on MacOSX
Date: Jun 24 2005 4:48AM
Hi All,
I'm trying to get DBD::Sybase 1.05 to work on MacOSX 10.3. I managed to
make and install DBI-1.48 with no problems.
I did "perl Makefile.PL" and used the default values.
Here's the section from "make" where there's a warning...
cc -c -I/Applications/Sybase/System/OCS-12_5/include
-I/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI -g -pipe -pipe
-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
-I/usr/local/include -Os -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\"
"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" dbdimp.c
dbdimp.c: In function `_dbd_rebind_ph':
dbdimp.c:4727: warning: passing arg 2 of `to_binary' from incompatible
pointer type
...I originally had the error about -lsybsrv_r, and edited the Makefile
EXTRALIBS and LDLOADLIBS to include it. But I'm not sure if the above
warning is serious, I looked at that line of source code but am unable
to understand (after trying to typecast the arg to int the warning
turned into an error :-I ).
However, when I do "make test", the last line says...
Failed 10/12 test scripts, 16.67% okay. 172/208 subtests failed, 17.31%
okay.
...I tried this with ASE 12.5.2 on MacOSX...and then also with ASE
12.5.3 on MacOSX. Both the DBI and DBD "perl Makefile.PL" detects this
as ASE 12.5.1.
I even tried to get SybPerl, thinking it would be much
simpler...-lsybsrv_r was not found, and I could not trace where in the
Makefile or config.pl I could explicitly include this library...of
course, "make test" was even worse, with 0% okay.
Please help,
Jay
PS: Below is the output from "make test"...
-------------------------
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/autocommit....NOK 3# Failed test (t/autocommit.t at line
29)
Can't call method "do" on an undefined value at t/autocommit.t line 31.
# Looks like you planned 5 tests but only ran 3.
# Looks like your test died just after 3.
t/autocommit....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-5
Failed 3/5 tests, 40.00% okay
t/base..........ok
t/exec..........ok 2/17DBI
connect('server=SYBASE;database=tempdb','sa',...) failed: OpenClient
message: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
Server SYBASE, database
Message String: ct_connect(): directory service layer: internal
directory control layer error: Requested server name not found.
at t/exec.t line 27
t/exec..........NOK 3# Failed test (t/exec.t at line
29)
Can't call method "prepare" on an undefined value at t/exec.t line 32.
# Looks like you planned 17 tests but only ran 3.
# Looks like your test died just after 3.
t/exec..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-17
Failed 15/17 tests, 11.76% okay
t/fail..........NOK 3# 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.
t/fail..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-12
Failed 10/12 tests, 16.67% okay
t/login.........ok 2/4DBI
connect('server=SYBASE;database=tempdb','sa',...) failed: OpenClient
message: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
Server SYBASE, database
Message String: ct_connect(): directory service layer: internal
directory control layer error: Requested server name not found.
at t/login.t line 23
t/login.........NOK 3# Failed test (t/login.t at line
25)
t/login.........ok 4/4# Looks like you failed 1 tests of
4.
t/login.........dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 3
Failed 1/4 tests, 75.00% okay
t/main..........NOK 3# 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.
t/main..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-29
Failed 27/29 tests, 6.90% okay
t/multi_sth.....NOK 3# 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.
t/multi_sth.....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-43
Failed 41/43 tests, 4.65% okay
t/nsql..........ok 2/7DBI
connect('server=SYBASE;database=tempdb','sa',...) failed: OpenClient
message: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
Server SYBASE, database
Message String: ct_connect(): directory service layer: internal
directory control layer error: Requested server name not found.
at t/nsql.t line 20
t/nsql..........NOK 3# 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.
t/nsql..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-7
Failed 5/7 tests, 28.57% okay
t/place.........NOK 3# Failed test (t/place.t at line
20)
t/place.........ok 13/13Can'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.
t/place.........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........skipped
all skipped: this DBD::Sybase not configured to support iThreads
t/xblk..........NOK 3# 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.
t/xblk..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-62
Failed 60/62 tests, 3.23% okay
t/xblob.........ok 2/11DBI
connect('server=SYBASE;database=tempdb','sa',...) failed: OpenClient
message: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
Server SYBASE, database
Message String: ct_connect(): directory service layer: internal
directory control layer error: Requested server name not found.
at t/xblob.t line 21
t/xblob.........NOK 3# 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.
t/xblob.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-11
Failed 9/11 tests, 18.18% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/autocommit.t 255 65280 5 5 100.00% 3-5
t/exec.t 255 65280 17 29 170.59% 3-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.
Failed 10/12 test scripts, 16.67% okay. 172/208 subtests failed, 17.31%
okay.
make: *** [test_dynamic] Error 2
|