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: "Eremin, Dmitry" <EreminD at americanimaging dot net>
Subject: make test failure DBD-Sybase-1.07
Date: Jun 5 2006 7:58PM

Could you help me understand why "make test" failing while I could connect trough isql with the same server name/id/password?
thank you,
Dmitry Eremin

isql -SDEV02 -Usa
Password: 
1> quit
===========
# 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=DEV02
DB=tempdb
UID=sa
PWD=
=============
make test
        PERL_DL_NONLAZY=1 /opt/perl5/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/autocommit....ok 1/9                                                       

The context allocation routine failed.

The following problem caused the failure:

Invalid context version.
#     Failed test (t/autocommit.t at line 18)
#     Tried to use 'DBD::Sybase'.
#     Error:  DBD::Sybase initialize: ct_init(1100) failed at /opt/perl5/lib/5.8.0/PA-RISC2.0/DynaLoader.pm line 249.
# Compilation failed in require at (eval 3) line 2.
t/autocommit....NOK 2    DBI 1.50-nothread default trace level set to 0x0/2 (pid 11984)
    Note: perl is running without the recommended perl -w option
    -> DBI->connect(dbi:Sybase:server=DEV02;database=tempdb, sa, ****, HASH(0x4001993c))
    -> DBI->install_driver(Sybase) for hpux perl=5.008 pid=11984 ruid=163 euid=163
       install_driver: DBD::Sybase version 1.07 loaded from blib/lib/DBD/Sybase.pm
    <- install_driver= DBI::dr=HASH(0x401612ec)
    -> connect for DBD::Sybase::dr (DBI::dr=HASH(0x401612ec)~0x401def68 'server=DEV02;database=tempdb' 'sa' **** HASH(0x401e2c78))
ct_con_alloc failed at blib/lib/DBD/Sybase.pm line 94.
    -> DESTROY for DBD::Sybase::db (DBI::db=HASH(0x401e2ca8)~INNER)
         DESTROY for DBI::db=HASH(0x401e2ca8) ignored - handle not initialised
    <- DESTROY= undef at DBI.pm line 617
    <- connect= undef at DBI.pm line 617
    -> $DBI::errstr (&) FETCH from lasth=HASH
    >> DBD::Sybase::dr::errstr
    <- $DBI::errstr= undef
       DBI connect('server=DEV02;database=tempdb','sa',...) failed: (no error string)
#     Failed test (t/autocommit.t at line 30)
No connection - did you set the user, password and server name correctly in PWD?
#     Failed test (t/autocommit.t at line 35)
t/autocommit....NOK 3#     Failed test (t/autocommit.t at line 35)           
t/autocommit....NOK 4#     Failed test (t/autocommit.t at line 35)           
t/autocommit....NOK 5#     Failed test (t/autocommit.t at line 35)           
t/autocommit....NOK 6#     Failed test (t/autocommit.t at line 35)           
t/autocommit....NOK 7#     Failed test (t/autocommit.t at line 35)           
t/autocommit....NOK 8#     Failed test (t/autocommit.t at line 35)           
t/autocommit....NOK 9#     Failed test (t/autocommit.t at line 35)           
    -- DBI::END
t/autocommit....NOK 10    -> disconnect_all for DBD::Sybase::dr (DBI::dr=HASH(0x401612ec)~0x401def68)
    <- disconnect_all= 1 at DBI.pm line 692
t/autocommit....NOK 11# Looks like you planned 9 tests but ran 2 extra.      
!   -> DESTROY in DBD::_::common for DBD::Sybase::dr (DBI::dr=HASH(0x401def68)~INNER)
!   <- DESTROY= undef during global destruction
t/autocommit....dubious                                                      
        Test returned status 10 (wstat 2560, 0xa00)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++
set
PATH=/opt/perl5/bin:/home2/deremin/lbin:.:/usr/bin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/p
....
SHLIB_PATH=/usr/lib:/lib:/usr/lib/Motif1.2:/sybase2/SQLRemote/lib:/sybase2/ASE-12_5/lib:/sybase2/OCS-12_5/lib:
SYBASE=/sybase2
SYBASE_ASE=/sybase2/ASE-12_5
SYBASE_OCS=OCS-12_5

perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC2.0
    uname='hp-ux aimux b.11.00 u 9000800 601369363 unlimited-user license '
    config_args='-de'
    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='cc', ccflags =' -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ',
    optimize='+O2 +Onolimit',
    cppflags='-Aa -D__STDC_EXT__ -D_HPUX_SOURCE -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings'
    ccversion='A.11.01.20', gccversion='', gccosandvers=''
    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='/usr/bin/ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lnsl -lnm -lndbm -lmalloc -ldld -lm -lc -lndir -lcrypt -lsec
    perllibs=-lnsl -lnm -lmalloc -ldld -lm -lc -lndir -lcrypt -lsec
    libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='+Z', lddlflags='-b +vnocompatwarnings -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under hpux
  Compiled at Dec  5 2002 15:02:22
  @INC:
    /opt/perl5/lib/5.8.0/PA-RISC2.0
    /opt/perl5/lib/5.8.0
    /opt/perl5/lib/site_perl/5.8.0/PA-RISC2.0
    /opt/perl5/lib/site_perl/5.8.0
    /opt/perl5/lib/site_perl
    .









======================================================================
The material in this transmission contains confidential information
intended for the addressee. If you are not the addressee, any disclosure 
or use of this information by you is strictly prohibited. If you have
received this transmission in error, please delete it and destroy
all copies. Notify American Imaging Management at 847 564-8500.
Thank You. 
======================================================================