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: Joe_Woodhouse at medibank dot com dot au
Subject: sybperl, make test fails in blk.t, ASE 15.5
Date: Mar 4 2010 12:43AM

Dear Sybperl-L folks,

I'm at a client installing sybperl against an ASE 15.5 environment on 
Solaris 10.

perl Markfile.PL runs without error, but make test fails in 4 tests 
against blk.t:

$make test
make[1]: Entering directory `/tmp/sybperl-2.18/BCP'
make[1]: Leaving directory `/tmp/sybperl-2.18/BCP'
make[1]: Entering directory `/tmp/sybperl-2.18/BLK'
make[1]: Leaving directory `/tmp/sybperl-2.18/BLK'
make[1]: Entering directory `/tmp/sybperl-2.18/CTlib'
make[1]: Leaving directory `/tmp/sybperl-2.18/CTlib'
make[1]: Entering directory `/tmp/sybperl-2.18/DBlib'
make[1]: Leaving directory `/tmp/sybperl-2.18/DBlib'
make[1]: Entering directory `/tmp/sybperl-2.18/Sybperl'
make[1]: Leaving directory `/tmp/sybperl-2.18/Sybperl'
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" 
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1_db_dblib...........ok
t/1_db_money...........ok
t/2_ct_ctlib...........ok
t/2_ct_cursor..........ok
t/2_ct_nsql............ok
t/2_ct_prepare.........ok
t/2_ct_xblk............ok
t/3_bcp................ok
t/4_blk................ok 1/19
CS Library Message:
Message number: LAYER = (2) ORIGIN = (4) SEVERITY = (1) NUMBER = (24)
Message String: cs_convert: cslib user api layer: common library error: 
The conversion/operation was stopped due to a syntax error in the source 
field.
User Message: cs_convert failed:column 2: (_convert(data, 8))

Open Client Message:
Message number: LAYER = (1) ORIGIN = (2) SEVERITY = (1) NUMBER = (24)
Message String: blk_rowxfer(): blk layer: internal BLK-Library error: No 
value or default value available and NULL not allowed.  col = 2 row = 1.
Use of uninitialized value in join or string at 
/tmp/sybperl-2.18/blib/lib/Sybase/BLK.pm line 559,  line 2.

CS Library Message:
Message number: LAYER = (2) ORIGIN = (4) SEVERITY = (1) NUMBER = (24)
Message String: cs_convert: cslib user api layer: common library error: 
The conversion/operation was stopped due to a syntax error in the source 
field.
User Message: cs_convert failed:column 2: (_convert(data2, 8))

CS Library Message:
Message number: LAYER = (2) ORIGIN = (4) SEVERITY = (1) NUMBER = (24)
Message String: cs_convert: cslib user api layer: common library error: 
The conversion/operation was stopped due to a syntax error in the source 
field.
User Message: cs_convert failed:column 2: (_convert(data3, 8))
# Failed test 6 in t/4_blk.t at line 42
#  t/4_blk.t line 42 is: ok(@rows);                     # 6
# Failed test 7 in t/4_blk.t at line 43
t/4_blk................NOK 6#  t/4_blk.t line 43 is: ok(scalar(@rows) == 
4);            # 7
Use of uninitialized value in numeric eq (==) at t/4_blk.t line 44.
# Failed test 8 in t/4_blk.t at line 44
#  t/4_blk.t line 44 is: ok($rows[3]->[1] == 12);       # 8
Use of uninitialized value in pattern match (m//) at t/4_blk.t line 45.
# Failed test 9 in t/4_blk.t at line 45
#  t/4_blk.t line 45 is: ok($rows[2]->[2] =~ /\r/);     # 9
t/4_blk................FAILED tests 6-9
        Failed 4/19 tests, 78.95% okay
t/5_sybperl............ok
t/5_sybperl_dbmoney....ok
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/4_blk.t                 19    4  21.05%  6-9
Failed 1/11 test scripts, 90.91% okay. 4/215 subtests failed, 98.14% okay.
make: *** [test_dynamic] Error 29


Environment follows:

************************************************
$uname -a
SunOS imedz3sit 5.10 Generic_138888-06 sun4v sparc SUNW,Sun-Blade-T6320

$dataserver -v
Adaptive Server Enterprise/15.5/EBF 17336 SMP/P/Sun_svr4/OS 
5.8/ase155/2391/64-bit/FBO/Tue Nov 10 01:27:55 2009

$perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=solaris, osvers=2.10, archname=sun4-solaris
    uname='sunos 5.10 generic_118822-30 sun4u sparc sunw,ultra-5_10 
solaris '
    config_args='-Dcc=gcc'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -pipe 
-Wdeclaration-after-statement -I/usr/local/include -I/opt/gnu/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement 
-I/usr/local/include -I/opt/gnu/include'
    ccversion='', gccversion='3.4.6', gccosandvers='solaris2.10'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib -L/opt/gnu/lib '
    libpth=/usr/local/lib /opt/gnu/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib -L/opt/gnu/lib'

Characteristics of this binary (from libperl):
  Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
  Built under solaris
  Compiled at May  8 2007 03:33:15
  @INC:
    /usr/local/lib/perl5/5.8.8/sun4-solaris
    /usr/local/lib/perl5/5.8.8
    /usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.8.8
    /usr/local/lib/perl5/site_perl

$ls $SYBASE/$SYBASE_OCS/lib
libsybblk_r.so           libsybcomn_r64.so        libsybcs64.a libsybdb.so 
             libsybintl_r64.a         libsybtcl_r64.a
libsybblk_r64.a          libsybcomn.so            libsybcs64.so 
libsybdb64.a             libsybintl_r64.so        libsybtcl_r64.so
libsybblk_r64.so         libsybcomn64.a           libsybct_r.so 
libsybdb64.so            libsybintl.so            libsybtcl.so
libsybblk.so             libsybcomn64.so          libsybct_r64.a 
libsybdldap.so.15.5.0    libsybintl64.a           libsybtcl64.a
libsybblk64.a            libsybcs_r.so            libsybct_r64.so 
libsybdldap64.so.15.5.0  libsybintl64.so          libsybtcl64.so
libsybblk64.so           libsybcs_r64.a           libsybct.so 
libsybfssl.so.15.5.0     libsybskrb.so.15.5.0     libsybunic.so
libsybcomn_r.so          libsybcs_r64.so          libsybct64.a 
libsybfssl64.so.15.5.0   libsybskrb64.so.15.5.0   libsybunic64.a
libsybcomn_r64.a         libsybcs.so              libsybct64.so 
libsybintl_r.so          libsybtcl_r.so           libsybunic64.so

$echo $LD_LIBRARY_PATH
/prj/imedz3sit/app/sybase/ase155/ASE-15_0/lib:/prj/imedz3sit/app/sybase/ase155/OCS-15_0/lib:/prj/imedz3sit/app/sybase/ase155/OCS-15_0/lib3p64:/prj/imedz3sit/app/sybase/ase155/OCS-15_0/lib3p:/opt/CA/SharedComponents/lib

************************************************

Thanks in advance,

Joe Woodhouse
Prima Donna Consulting
**********************************************************************************
The information contained in or attached to this message is intended only for the people it is addressed to. 
If you are not the intended recipient, any use, disclosure or copying of this information is unauthorised and prohibited. 
This information may be confidential or subject to legal privilege. 
It is not the expressed view of Medibank Private Limited or any of its subsidiaries unless it is authorised by a person with actual authority. 
To the fullest extent allowed by law, Medibank Private cannot accept liability for any virus damage caused by this message.
Medibank Private Limited ABN 47 080 890 259.
***********************************************************************************