Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Bill dot Morrow at metso dot com
Subject: Re: make test of dblib failing sybperl 2.13 / perl 5.6.1 on OSF 4 .0, Sybase 10.0.4 library ASE 11.9.2
Date: Jun 7 2001 11:06PM writes:
 > make test of dblib is failing. I have
 > EXTRA_LIBS= -lsdna -ldnet_stub
 > in CONFIG, and set LD_LIBRARY_PATH to $SYBASE/lib
 > The BCP and ctlib test pass successfully, here is some error output
 > once it hits dblib:
 > ...
 > All tests successful.
 > Files=2, Tests=52,  0 wallclock secs ( 0.25 cusr +  0.03 csys =  0.28
 > CPU)
 > gmake[1]: Leaving directory
 > `/usr/local/ksp/users/billm/sybperl-2.13/CTlib'
 > gmake[1]: Entering directory
 > `/usr/local/ksp/users/billm/sybperl-2.13/DBlib'
 > PERL_DL_NONLAZY=1 /usr/ucb/perl -I../blib/arch -I../blib/lib
 > -I/usr/local/ksp/ALPHA/system/lib/perl5/5.6.1/alpha-dec_osf

Well - the version of perl would normally be unimportant, but it seems
strange that the perl binary used for the test is in /usr/ucb/perl,
but the perl include dir is in /usr/local/ksp/...

We've made /usr/ucb/perl and /usr/bin/perl links to the one in
/usr/local/ksp/... that is freshly built. It overwrote an older 5.0.3 perl that
was in that tree, though.

 > -I/usr/local/ksp/ALPHA/system/lib/perl5/5.6.1 -e 'use Test::Harness
 > qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
 > t/dblib.............Sybase error: Read from SQL Server failed.
 > OS Error: Bad file number

Can you access the server from the same shell using isql?

1> select * from sysprocesses
2> go -m vert | more
spid:          1
kpid:          1540685875
enginenum:     0
status:        recv sleep
suid:          3
hostname:      KEYPDS1
program_name:  osrelay
hostprocess:   2517
cmd:           AWAITING COMMAND
cpu:           1

I'm thinking I've screwed up the library linking somehow...

P.s. I haven't figured out how to quote responses yet, we have been mandated to
use Lotus Notes here :(