|
|
sybperl-l Archive
Up Prev Next
From: michael dot peppler at bnpparibas dot com
Subject: Re: Solaris 9, DBD::Sybase 1.04, Make Test Fails
Date: Oct 25 2005 12:52PM
Can you access your server through isql in the same environment where you
try to build DBD::Sybase?
If yes, can you please run one of the test scripts with DBI->trace(5) and
see what comes out?
Michael
Internet
Warchol@harthosp.org@peppler.org - 25/10/2005 14:37
Sent by: owner-sybperl-l@peppler.org
To: sybperl-l
cc:
Subject: Solaris 9, DBD::Sybase 1.04, Make Test Fails
Hello:
After applying a Sybase maintenance pack, starting getting the
following messages from perl applications using the modules:
DBI connect('SYB_SS','DBS',...) failed: OpenClient message: LAYER = (5)
ORIGIN = (3) SEVERITY = (5) NUMBER = (4)
Server SYB_SS, database
Message String: ct_connect(): network packet layer: internal net library
error:
There was an error encountered while establishing the connection.
at DBadp.pm line 15
function GET-DB: Can't open the data base: OpenClient message: LAYER = (5)
ORIGIN = (3) SEVERITY = (5) NUMBER = (4)
Server SYB_SS, database
Message String: ct_connect(): network packet layer: internal net library
error:
There was an error encountered while establishing the connection.
So, figuring that the maintenance packed stepped on something, I removed
DBD::Sybase and DBI, re-installed DBI 1.48 and then tried to re-install
DBD::Sybase and got:
hcuxsstest01# perl Makefile.PL
Sybase OpenClient 12.5.1 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: SYBASE): SYB_SStest
User ID to log in to Sybase (default: sa):
Password (default: undef): Sybase database to use on SYB_SStest (default:
undef): tempdb
* Writing login information, including password, to file PWD.
Checking if your kit is complete...
Looks good
Using DBI 1.48 (for perl 5.008005 on sun4-solaris) installed in
/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI/
Writing Makefile for DBD::Sybase
hcuxsstest01# make
cp dbd-sybase.pod blib/lib/DBD/dbd-sybase.pod
cp Sybase.pm blib/lib/DBD/Sybase.pm
/usr/local/bin/perl -p -e "s/~DRIVER~/Sybase/g"
/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI//Driver.xst >
Sybase.xsi
/usr/local/bin/perl /usr/local/lib/perl5/5.8.5/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/5.8.5/ExtUtils/typemap Sybase.xs > Sybase.xsc && mv
Sybase.xsc Sybase.c
gcc -B/usr/ccs/bin/ -c -I/sybase/r12.5/OCS-12_5/include
-I/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI
-fno-strict-aliasing -pipe -I/usr/local/include -I/opt/gnu/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.04\"
-DXS_VERSION=\"1.04\" -fPIC "-I/usr/local/lib/perl5/5.8.5
/sun4-solaris/CORE" Sybase.c
gcc -B/usr/ccs/bin/ -c -I/sybase/r12.5/OCS-12_5/include
-I/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI
-fno-strict-aliasing -pipe -I/usr/local/include -I/opt/gnu/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.04\"
-DXS_VERSION=\"1.04\" -fPIC "-I/usr/local/lib/perl5/5.8.5
/sun4-solaris/CORE" dbdimp.c
Running Mkbootstrap for DBD::Sybase ()
chmod 644 Sybase.bs
rm -f blib/arch/auto/DBD/Sybase/Sybase.so
LD_RUN_PATH="/sybase/r12.5/OCS-12_5/lib" gcc -B/usr/ccs/bin/
-L/sybase/r12.5/OCS-12_5/lib -G -L/usr/local/lib -L/opt/gnu/lib Sybase.o
dbdimp.o -o blib/arch/auto/DBD/Sybase/Sybase.so
-L/sybase/r12.5/OCS-12_5/lib -lct -lcs -ltcl -lcomn -lintl -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
hcuxsstest01# make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/autocommit....Can't call method "do" on an undefined value at
t/autocommit.t line 29.
t/autocommit....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-4
Failed 3/4 tests, 25.00% okay
t/base..........ok
t/exec..........DBI connect('server=SYB_SStest;database=tempdb','sa',...)
failed: OpenClient message: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER
= (4)
Server SYB_SStest, database
Message String: ct_connect(): network packet layer: internal net library
error: There was an error encountered while establishing the connection.
at t/exec.t line 26
Can't call method "prepare" on an undefined value at t/exec.t line 30.
t/exec..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-9
Failed 8/9 tests, 11.11% okay
t/fail..........Unable for connect to SYB_SStest: OpenClient message: LAYER
= (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (4)
Server SYB_SStest, database
Message String: ct_connect(): network packet layer: internal net library
error: There was an error encountered while establishing the connection.
t/fail..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-13
Failed 12/13 tests, 7.69% okay
t/login.........FAILED test 2
Failed 1/3 tests, 66.67% okay
t/main..........Unable for connect to SYB_SStest: OpenClient message: LAYER
= (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (4)
Server SYB_SStest, database
Message String: ct_connect(): network packet layer: internal net library
error: There was an error encountered while establishing the connection.
t/main..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-19
Failed 18/19 tests, 5.26% okay
t/nsql..........DBI connect('server=SYB_SStest;database=tempdb','sa',...)
failed: OpenClient message: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER
= (4)
Server SYB_SStest, database
Message String: ct_connect(): network packet layer: internal net library
error: There was an error encountered while establishing the connection.
at t/nsql.t line 24
Can't call method "func" on an undefined value at t/nsql.t line 29.
t/nsql..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-6
Failed 5/6 tests, 16.67% okay
t/place.........Unable for connect to SYB_SStest: OpenClient message: LAYER
= (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (4)
Server SYB_SStest, database
Message String: ct_connect(): network packet layer: internal net library
error: There was an error encountered while establishing the connection.
t/place.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-11
Failed 10/11 tests, 9.09% okay
t/thread........skipped
all skipped: this perl 5.008005 not configured to support iThreads
t/xblob.........DBI connect('server=SYB_SStest;database=tempdb','sa',...)
failed: OpenClient message: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER
= (4)
Server SYB_SStest, database
Message String: ct_connect(): network packet layer: internal net library
error: There was an error encountered while establishing the connection.
at t/xblob.t line 26
Can't call method "do" on an undefined value at t/xblob.t line 31.
t/xblob.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-6
Failed 5/6 tests, 16.67% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/autocommit.t 255 65280 4 5 125.00% 2-4
t/exec.t 255 65280 9 15 166.67% 2-9
t/fail.t 255 65280 13 24 184.62% 2-13
t/login.t 3 1 33.33% 2
t/main.t 255 65280 19 36 189.47% 2-19
t/nsql.t 255 65280 6 9 150.00% 2-6
t/place.t 255 65280 11 20 181.82% 2-11
t/xblob.t 255 65280 6 9 150.00% 2-6
1 test skipped.
Failed 8/10 test scripts, 20.00% okay. 62/76 subtests failed, 18.42% okay.
*** Error code 2
make: Fatal error: Command failed for target `test_dynamic'
hcuxsstest01#
I'ved checked the obvious, verified that I can connect to the DB with isql
using the info in the PWD file, validated that LD_LIBRARY_PATH is correct.
I'm stumped. I can't install a newer version (yet) as we don't have the
full SDK for Solaris, but only that which comes with the server (missing
the -lblk library). Any help would be appreciated.
Thanks
Dave
-----------------------------------------------
Confidentiality Notice
This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential or proprietary
information which is legally privileged. Any unauthorized review, use,
disclosure, or distribution is prohibited. If you are not the intended
recipient, please promptly contact the sender by reply e-mail and destroy
all copies of the original message.
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.
|