PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Dave Warchol" <Warchol at harthosp dot org>
Subject: Re: Solaris 9, DBD::Sybase 1.04, Make Test Fails
Date: Oct 25 2005 1:40PM

Michael:
         Answer to the first question is yes.

hcuxsstest01# cat PWD      
# This file contains optional login id, passwd and server info for the test
# programs:
# You probably don't want to have it lying around after you've made
# sure that everything works OK.

SRV=SYB_SStest
DB=tempdb
UID=sa
PWD=sstest

hcuxsstest01# isql -Usa -SSYB_SStest -Psstest
1> sp_who
2> go
 fid    spid   status       loginame                      
         origname                       hostname   blk_spid
         dbname                         cmd              block_xloid 
 ------ ------ ------------ ------------------------------
         ------------------------------ ---------- --------
         ------------------------------ ---------------- ----------- 
      0      2 sleeping     NULL                          
         NULL                                      0       
         master                         DEADLOCK TUNE              0 
      0      3 sleeping     NULL                          
         NULL                                      0       
         master                         ASTC HANDLER               0 
      0      4 sleeping     NULL                          
         NULL                                      0       
         master                         CHECKPOINT SLEEP           0 
      0      5 sleeping     NULL                          
         NULL                                      0       
         master                         HK WASH                    0 
      0      6 sleeping     NULL                          


hcuxsstest01# echo $LD_LIBRARY_PATH
/sybase/r12.5/OCS-12_5/lib:/sybase/r12.5/OCS-12_5/lib3p64:/sybase/r12.5/OCS-12_5/lib3p:/sybase/r12.5/ASE-12_5/lib

hcuxsstest01# isql -v
Sybase CTISQL Utility/12.5.1/P-EBF12625 ESD #9/DRV.12.5.1.4/SPARC/Solaris 2.8/BUILD1251-042/64bit/OPT/Thu Jun 23 02:06:27 2005


         Turning trace up to (5) in autocommit.t

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....    DBI 1.48-nothread default trace level set to 0x0/5 (pid 17988)
    -> DBI->connect(dbi:Sybase:server=SYB_SStest;database=tempdb, sa, ****, HASH(0x22c70))
    -> DBI->install_driver(Sybase) for solaris perl=5.008005 pid=17988 ruid=0 euid=0
    syb_init() -> DBD::Sybase 1.04 initialized
    OpenClient version: Sybase Client-Library/12.5.1/P-EBF12623 ESD #9/DRV.12.5.1.4/SPARC/Solaris 2.8/BUILD1251-042/OPT/Thu Jun 23 01:53:46 2005
       install_driver: DBD::Sybase version 1.04 loaded from blib/lib/DBD/Sybase.pm
    New DBI::dr (for DBD::Sybase::dr, parent=, id=)
    dbih_setup_handle(DBI::dr=HASH(0x122340)=>DBI::dr=HASH(0x178a6c), DBD::Sybase::dr, 0, Null!)
    dbih_make_com(Null!, 0, DBD::Sybase::dr, 84, 0) thr#0
    dbih_setup_attrib(DBI::dr=HASH(0x178a6c), Err, Null!) SCALAR(0xd30b8) (already defined)
    dbih_setup_attrib(DBI::dr=HASH(0x178a6c), State, Null!) SCALAR(0xd3070) (already defined)
    dbih_setup_attrib(DBI::dr=HASH(0x178a6c), Errstr, Null!) SCALAR(0xd3094) (already defined)
    dbih_setup_attrib(DBI::dr=HASH(0x178a6c), TraceLevel, Null!) 0 (already defined)
    dbih_setup_attrib(DBI::dr=HASH(0x178a6c), FetchHashKeyName, Null!) 'NAME' (already defined)
    <- install_driver= DBI::dr=HASH(0x122340)
    !! warn: 0 CLEARED by call to connect method
    -> connect for DBD::Sybase::dr (DBI::dr=HASH(0x122340)~0x178a6c 'server=SYB_SStest;database=tempdb' 'sa' **** HASH(0x3359c))
    New DBI::db (for DBD::Sybase::db, parent=DBI::dr=HASH(0x178a6c), id=)
    dbih_setup_handle(DBI::db=HASH(0xdf974)=>DBI::db=HASH(0x335cc), DBD::Sybase::db, 11eb58, Null!)
    dbih_make_com(DBI::dr=HASH(0x178a6c), bfb00, DBD::Sybase::db, 2428, 0) thr#0
    dbih_setup_attrib(DBI::db=HASH(0x335cc), Err, DBI::dr=HASH(0x178a6c)) SCALAR(0x125018) (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x335cc), State, DBI::dr=HASH(0x178a6c)) SCALAR(0x125078) (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x335cc), Errstr, DBI::dr=HASH(0x178a6c)) SCALAR(0x125048) (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x335cc), TraceLevel, DBI::dr=HASH(0x178a6c)) 0 (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x335cc), FetchHashKeyName, DBI::dr=HASH(0x178a6c)) 'NAME' (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x335cc), HandleSetErr, DBI::dr=HASH(0x178a6c)) undef (not defined)
    dbih_setup_attrib(DBI::db=HASH(0x335cc), HandleError, DBI::dr=HASH(0x178a6c)) undef (not defined)
    clientmsg_cb -> ct_connect(): network packet layer: internal net library error: There was an error encountered while establishing the connection.
    <> DESTROY(DBI::db=HASH(0xdf974)) ignored for outer handle (inner DBI::db=HASH(0x335cc) has ref cnt 1)
    -> DESTROY for DBD::Sybase::db (DBI::db=HASH(0x335cc)~INNER)
         DESTROY for DBI::db=HASH(0x335cc) ignored - handle not initialised
       ERROR: 4 '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.
' (err#0)
    <- DESTROY= undef at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 598 via t/autocommit.t line 24
    dbih_clearcom 0xdf974 (com 0x1b5c98, type 2) done.

    !! ERROR: 4 '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.
' (err#0)
    <- connect= undef at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 598
    -> $DBI::errstr (&) FETCH from lasth=HASH
    >> DBD::Sybase::dr::errstr
    <- $DBI::errstr= '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.
'
       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.

Can't call method "do" on an undefined value at t/autocommit.t line 29.
    -- DBI::END
    !! ERROR: 4 CLEARED by call to disconnect_all method
    -> disconnect_all for DBD::Sybase::dr (DBI::dr=HASH(0x122340)~0x178a6c)
    <- disconnect_all= 1 at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 677 via t/autocommit.t line 0
t/autocommit....ok 1/4!   -> DESTROY in DBD::_::common for DBD::Sybase::dr (DBI::dr=HASH(0x178a6c)~INNER)
t/autocommit....NOK 2 during global destruction                              
    dbih_clearcom 0x122340 (com 0xbfb00, type 1) done.

!   <> DESTROY for DBI::dr=HASH(0x122340) ignored (inner handle gone)
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 1.48-nothread default trace level set to 0x0/5 (pid 17990)
    -> DBI->connect(dbi:Sybase:server=SYB_SStest;database=tempdb, sa, ****, HASH(0x22c70))
    -> DBI->install_driver(Sybase) for solaris perl=5.008005 pid=17990 ruid=0 euid=0
    syb_init() -> DBD::Sybase 1.04 initialized
    OpenClient version: Sybase Client-Library/12.5.1/P-EBF12623 ESD #9/DRV.12.5.1.4/SPARC/Solaris 2.8/BUILD1251-042/OPT/Thu Jun 23 01:53:46 2005
       install_driver: DBD::Sybase version 1.04 loaded from blib/lib/DBD/Sybase.pm
    New DBI::dr (for DBD::Sybase::dr, parent=, id=)
    dbih_setup_handle(DBI::dr=HASH(0x1227fc)=>DBI::dr=HASH(0x17c11c), DBD::Sybase::dr, 0, Null!)
    dbih_make_com(Null!, 0, DBD::Sybase::dr, 84, 0) thr#0
    dbih_setup_attrib(DBI::dr=HASH(0x17c11c), Err, Null!) SCALAR(0x182a94) (already defined)
    dbih_setup_attrib(DBI::dr=HASH(0x17c11c), State, Null!) SCALAR(0x182adc) (already defined)
    dbih_setup_attrib(DBI::dr=HASH(0x17c11c), Errstr, Null!) SCALAR(0x182ab8) (already defined)
    dbih_setup_attrib(DBI::dr=HASH(0x17c11c), TraceLevel, Null!) 0 (already defined)
    dbih_setup_attrib(DBI::dr=HASH(0x17c11c), FetchHashKeyName, Null!) 'NAME' (already defined)
    <- install_driver= DBI::dr=HASH(0x1227fc)
    !! warn: 0 CLEARED by call to connect method
    -> connect for DBD::Sybase::dr (DBI::dr=HASH(0x1227fc)~0x17c11c 'server=SYB_SStest;database=tempdb' 'sa' **** HASH(0x3303c))
    New DBI::db (for DBD::Sybase::db, parent=DBI::dr=HASH(0x17c11c), id=)
    dbih_setup_handle(DBI::db=HASH(0xc09b0)=>DBI::db=HASH(0x3306c), DBD::Sybase::db, 11ef0c, Null!)
    dbih_make_com(DBI::dr=HASH(0x17c11c), 34aa8, DBD::Sybase::db, 2428, 0) thr#0
    dbih_setup_attrib(DBI::db=HASH(0x3306c), Err, DBI::dr=HASH(0x17c11c)) SCALAR(0x12547c) (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x3306c), State, DBI::dr=HASH(0x17c11c)) SCALAR(0x1254dc) (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x3306c), Errstr, DBI::dr=HASH(0x17c11c)) SCALAR(0x1254ac) (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x3306c), TraceLevel, DBI::dr=HASH(0x17c11c)) 0 (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x3306c), FetchHashKeyName, DBI::dr=HASH(0x17c11c)) 'NAME' (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x3306c), HandleSetErr, DBI::dr=HASH(0x17c11c)) undef (not defined)
    dbih_setup_attrib(DBI::db=HASH(0x3306c), HandleError, DBI::dr=HASH(0x17c11c)) undef (not defined)
    clientmsg_cb -> ct_connect(): network packet layer: internal net library error: There was an error encountered while establishing the connection.
    <> DESTROY(DBI::db=HASH(0xc09b0)) ignored for outer handle (inner DBI::db=HASH(0x3306c) has ref cnt 1)
    -> DESTROY for DBD::Sybase::db (DBI::db=HASH(0x3306c)~INNER)
         DESTROY for DBI::db=HASH(0x3306c) ignored - handle not initialised
       ERROR: 4 '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.
' (err#0)
    <- DESTROY= undef at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 598 via t/exec.t line 26
    dbih_clearcom 0xc09b0 (com 0x1bb028, type 2) done.

    !! ERROR: 4 '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.
' (err#0)
    <- connect= undef at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 598
    -> $DBI::errstr (&) FETCH from lasth=HASH
    >> DBD::Sybase::dr::errstr
    <- $DBI::errstr= '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.
'
       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.

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.
    -- DBI::END
    !! ERROR: 4 CLEARED by call to disconnect_all method
    -> disconnect_all for DBD::Sybase::dr (DBI::dr=HASH(0x1227fc)~0x17c11c)
    <- disconnect_all= 1 at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 677 via t/exec.t line 0
!   <> DESTROY(DBI::dr=HASH(0x1227fc)) ignored for outer handle (inner DBI::dr=HASH(0x17c11c) has ref cnt 1)
!   -> DESTROY in DBD::_::common for DBD::Sybase::dr (DBI::dr=HASH(0x17c11c)~INNER)
t/exec..........ok 1/9 during global destruction                             
    dbih_clearcom 0x1227fc (com 0x34aa8, type 1) done.

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..........    DBI 1.48-nothread default trace level set to 0x0/5 (pid 17993)
       warn: 0 '' (err#0)
    <> FETCH= 'DBI 1.48 by Tim Bunce' ('Attribution' from cache) at t/main.t line 26
       warn: 0 '' (err#0)
    <> FETCH= '1.48' ('Version' from cache) at t/main.t line 26
    -> DBI->connect(dbi:Sybase:server=SYB_SStest;database=tempdb, sa, ****, HASH(0x126188))
    -> DBI->install_driver(Sybase) for solaris perl=5.008005 pid=17993 ruid=0 euid=0
    syb_init() -> DBD::Sybase 1.04 initialized
    OpenClient version: Sybase Client-Library/12.5.1/P-EBF12623 ESD #9/DRV.12.5.1.4/SPARC/Solaris 2.8/BUILD1251-042/OPT/Thu Jun 23 01:53:46 2005
       install_driver: DBD::Sybase version 1.04 loaded from blib/lib/DBD/Sybase.pm
    New DBI::dr (for DBD::Sybase::dr, parent=, id=)
    dbih_setup_handle(DBI::dr=HASH(0x1262b4)=>DBI::dr=HASH(0x1c3234), DBD::Sybase::dr, 0, Null!)
    dbih_make_com(Null!, 0, DBD::Sybase::dr, 84, 0) thr#0
    dbih_setup_attrib(DBI::dr=HASH(0x1c3234), Err, Null!) SCALAR(0x1d62d0) (already defined)
    dbih_setup_attrib(DBI::dr=HASH(0x1c3234), State, Null!) SCALAR(0x1d6318) (already defined)
    dbih_setup_attrib(DBI::dr=HASH(0x1c3234), Errstr, Null!) SCALAR(0x1d62f4) (already defined)
    dbih_setup_attrib(DBI::dr=HASH(0x1c3234), TraceLevel, Null!) 0 (already defined)
    dbih_setup_attrib(DBI::dr=HASH(0x1c3234), FetchHashKeyName, Null!) 'NAME' (already defined)
    <- install_driver= DBI::dr=HASH(0x1262b4)
    !! warn: 0 CLEARED by call to connect method
    -> connect for DBD::Sybase::dr (DBI::dr=HASH(0x1262b4)~0x1c3234 'server=SYB_SStest;database=tempdb' 'sa' **** HASH(0x1c29dc))
    New DBI::db (for DBD::Sybase::db, parent=DBI::dr=HASH(0x1c3234), id=)
    dbih_setup_handle(DBI::db=HASH(0x1cb788)=>DBI::db=HASH(0x1c2a0c), DBD::Sybase::db, 16c048, Null!)
    dbih_make_com(DBI::dr=HASH(0x1c3234), 1f61e0, DBD::Sybase::db, 2428, 0) thr#0
    dbih_setup_attrib(DBI::db=HASH(0x1c2a0c), Err, DBI::dr=HASH(0x1c3234)) SCALAR(0x170cf8) (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x1c2a0c), State, DBI::dr=HASH(0x1c3234)) SCALAR(0x170d58) (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x1c2a0c), Errstr, DBI::dr=HASH(0x1c3234)) SCALAR(0x170d28) (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x1c2a0c), TraceLevel, DBI::dr=HASH(0x1c3234)) 0 (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x1c2a0c), FetchHashKeyName, DBI::dr=HASH(0x1c3234)) 'NAME' (already defined)
    dbih_setup_attrib(DBI::db=HASH(0x1c2a0c), HandleSetErr, DBI::dr=HASH(0x1c3234)) undef (not defined)
    dbih_setup_attrib(DBI::db=HASH(0x1c2a0c), HandleError, DBI::dr=HASH(0x1c3234)) undef (not defined)
    clientmsg_cb -> ct_connect(): network packet layer: internal net library error: There was an error encountered while establishing the connection.
    <> DESTROY(DBI::db=HASH(0x1cb788)) ignored for outer handle (inner DBI::db=HASH(0x1c2a0c) has ref cnt 1)
    -> DESTROY for DBD::Sybase::db (DBI::db=HASH(0x1c2a0c)~INNER)
         DESTROY for DBI::db=HASH(0x1c2a0c) ignored - handle not initialised
       ERROR: 4 '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.
' (err#0)
    <- DESTROY= undef at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 598 via t/main.t line 30
    dbih_clearcom 0x1cb788 (com 0x212798, type 2) done.

    !! ERROR: 4 '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.
' (err#0)
    <- connect= undef at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 598
    -> $DBI::errstr (&) FETCH from lasth=HASH
    >> DBD::Sybase::dr::errstr
    <- $DBI::errstr= '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.
'
       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.

    -> $DBI::errstr (&) FETCH from lasth=HASH
    >> DBD::Sybase::dr::errstr
    <- $DBI::errstr= '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.
'
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.
    -- DBI::END
    !! ERROR: 4 CLEARED by call to disconnect_all method
    -> disconnect_all for DBD::Sybase::dr (DBI::dr=HASH(0x1262b4)~0x1c3234)
    <- disconnect_all= 1 at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 677 via t/main.t line 0
t/main..........ok 1/19!   <> DESTROY(DBI::dr=HASH(0x1262b4)) ignored for outer handle (inner DBI::dr=HASH(0x1c3234) has ref cnt 1)
!   -> DESTROY in DBD::_::common for DBD::Sybase::dr (DBI::dr=HASH(0x1c3234)~INNER)
!   <- DESTROY= undef during global destruction
    dbih_clearcom 0x1262b4 (com 0x1f61e0, type 1) done.

!   <> DESTROY(DBI::dr=HASH(0x16dc00)) ignored for outer handle (inner DBI::dr=HASH(0x126284) has ref cnt 1)
!   -> DESTROY in DBD::_::common for DBD::Switch::dr (DBI::dr=HASH(0x126284)~INNER)
       warn: 0 '' (err#0)
!   <- DESTROY= undef during global destruction
    dbih_clearcom 0x16dc00 (com 0x93098, type 1) done.

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# 


Thanks very much,
Dave

>>>  10/25/05 8:52 AM >>>
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.




-----------------------------------------------
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.