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: Tom Throckmorton <throck at hbs dot edu>
Subject: problem installing Sybperl 2.10
Date: Feb 19 1999 4:43PM

Hi,

I've been trying to install the 2.10 Syberl modules and keep hitting a
snag during the "make test".  It fails under different make scenarios
with the same result (see below).  I suspect it has something to do with
changes in the dbpoll() that dblib.t doesn't handle properly.

Here's a little background on our install:

Solaris        2.5.1, Ultra Enterprise 3000
OpenClient:    11
Sybase ver.    11.9.2
perl version    5.005_02
Tcl libs?:        no
Berkley db:       no

I've verified the $SYBASE env is setup properly (I can issue an 'isql
-Usa, etc. and login); the PWD file looks good.

Here's the output of the make attempt  (Note:  I've tried with/without
the -lnsl options and dynamic/static)

$PATH
/usr/sbin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/ccs/bin:/usr/ucb/bin:/usr/local/bin:/usr/local/syb1192/bin

$LD_LIBRARY_PATH
/usr/local/syb1192/lib:/usr/local/lib:/opt/hpnp/lib:/usr/dt/lib:/usr/include:/lib:/usr/lib:



mira# perl
Makefile.PL
/usr/local/bin/sybp/sybperl-2.10
Checking if your kit is complete...
Looks good
Checking if your kit is complete...
Looks good
Writing Makefile for Sybase::BCP
Writing Makefile for Sybase::CTlib
Writing Makefile for Sybase::DBlib
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase

mira#
make
/usr/local/bin/sybp/sybperl-2.10
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Sybase
mkdir blib/lib/auto
mkdir blib/lib/auto/Sybase
cp config.pl blib/lib/config.pl
cp lib/sql.pl blib/lib/sql.pl
cp lib/sybperl.pl blib/lib/sybperl.pl
cp lib/sybutil.pl blib/lib/sybutil.pl
cp lib/ctutil.pl blib/lib/ctutil.pl
mkdir ../blib/lib/Sybase
mkdir ../blib/arch/auto/Sybase/BCP
mkdir ../blib/lib/auto/Sybase/BCP
mkdir ../blib/man3
cp BCP.pm ../blib/lib/Sybase/BCP.pm
Manifying ../blib/man3/Sybase::BCP.3
mkdir ../blib/arch/auto/Sybase/CTlib
mkdir ../blib/lib/auto/Sybase/CTlib
cp CTlib.pm ../blib/lib/Sybase/CTlib.pm
AutoSplitting ../blib/lib/Sybase/CTlib.pm
(../blib/lib/auto/Sybase/CTlib)
/usr/local/bin/perl -I/usr/local/lib/perl5/5.00502/sun4-solaris
-I/usr/local/lib/perl5/5.00502
/usr/local/lib/perl5/5.00502/ExtUtils/xsubpp -prototypes -typemap
/usr/local/lib/perl5/5.00502/ExtUtils/typemap CTlib.xs >CTlib.tc && mv
CTlib.tc CTlib.c
gcc -c -I/usr/local/syb1192/include -I/usr/local/include -O
-DVERSION=\"2.10\"  -DXS_VERSION=\"2.10\" -fPIC
-I/usr/local/lib/perl5/5.00502/sun4-solaris/CORE -DCTLIBVS=100
-DSYBPLVER='"2.10"' -DDO_TIE CTlib.c
Running Mkbootstrap for Sybase::CTlib ()
chmod 644 CTlib.bs
LD_RUN_PATH="/usr/local/syb1192/lib:/lib" gcc -o
../blib/arch/auto/Sybase/CTlib/CTlib.so -R/usr/local/syb1192/lib -R/lib
-L/usr/local/syb1192/lib -G -L/usr/local/lib CTlib.o
-L/usr/local/syb1192/lib -lct -lcs -ltcl -lcomn -lintl -ltli -lnsl -lm
chmod 755 ../blib/arch/auto/Sybase/CTlib/CTlib.so
cp CTlib.bs ../blib/arch/auto/Sybase/CTlib/CTlib.bs
chmod 644 ../blib/arch/auto/Sybase/CTlib/CTlib.bs
mkdir ../blib/arch/auto/Sybase/DBlib
mkdir ../blib/lib/auto/Sybase/DBlib
cp DBlib.pm ../blib/lib/Sybase/DBlib.pm
AutoSplitting ../blib/lib/Sybase/DBlib.pm
(../blib/lib/auto/Sybase/DBlib)
/usr/local/bin/perl -I/usr/local/lib/perl5/5.00502/sun4-solaris
-I/usr/local/lib/perl5/5.00502
/usr/local/lib/perl5/5.00502/ExtUtils/xsubpp -prototypes -typemap
/usr/local/lib/perl5/5.00502/ExtUtils/typemap DBlib.xs >DBlib.tc && mv
DBlib.tc DBlib.c
gcc -c -I/usr/local/syb1192/include -I/usr/local/include -O
-DVERSION=\"2.10\"  -DXS_VERSION=\"2.10\" -fPIC
-I/usr/local/lib/perl5/5.00502/sun4-solaris/CORE -DDBLIBVS=1000
-DSYBPLVER='"2.10"' -DDO_TIE DBlib.c
Running Mkbootstrap for Sybase::DBlib ()
chmod 644 DBlib.bs
LD_RUN_PATH="/usr/local/syb1192/lib:/lib" gcc -o
../blib/arch/auto/Sybase/DBlib/DBlib.so -R/usr/local/syb1192/lib -R/lib
-L/usr/local/syb1192/lib -G -L/usr/local/lib DBlib.o
-L/usr/local/syb1192/lib -lsybdb -ltli -lnsl -lm
chmod 755 ../blib/arch/auto/Sybase/DBlib/DBlib.so
cp DBlib.bs ../blib/arch/auto/Sybase/DBlib/DBlib.bs
chmod 644 ../blib/arch/auto/Sybase/DBlib/DBlib.bs
mkdir ../blib/arch/auto/Sybase/Sybperl
mkdir ../blib/lib/auto/Sybase/Sybperl
cp Sybperl.pm ../blib/lib/Sybase/Sybperl.pm
AutoSplitting ../blib/lib/Sybase/Sybperl.pm
(../blib/lib/auto/Sybase/Sybperl)

mira# make
test
/usr/local/bin/sybp/sybperl-2.10
PERL_DL_NONLAZY=1 /usr/local/bin/perl -I../blib/arch -I../blib/lib
-I/usr/local/lib/perl5/5.00502/sun4-solaris
-I/usr/local/lib/perl5/5.00502 -e 'use Test::Harness qw(&runtests
$verbose); $verbose=0; runtests @ARGV;' t/*.t
t/bcp...............ok
All tests successful.
Files=1,  Tests=9,  1 wallclock secs ( 0.23 cusr +  0.05 csys =  0.28
CPU)
PERL_DL_NONLAZY=1 /usr/local/bin/perl -I../blib/arch -I../blib/lib
-I/usr/local/lib/perl5/5.00502/sun4-solaris
-I/usr/local/lib/perl5/5.00502 -e 'use Test::Harness qw(&runtests
$verbose); $verbose=0; runtests @ARGV;' t/*.t
t/ctlib.............ok
t/cursor............Use of uninitialized value at t/cursor.t line 123.
ok
All tests successful.
Files=2,  Tests=52,  2 wallclock secs ( 0.75 cusr +  0.19 csys =  0.94
CPU)
PERL_DL_NONLAZY=1 /usr/local/bin/perl -I../blib/arch -I../blib/lib
-I/usr/local/lib/perl5/5.00502/sun4-solaris
-I/usr/local/lib/perl5/5.00502 -e 'use Test::Harness qw(&runtests
$verbose); $verbose=0; runtests @ARGV;' t/*.t
t/dblib.............Can't call method "dbsqlok" on an undefined value at
t/dblib.t line 132.
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 20-22
        Failed 3/22 tests, 86.36% okay
t/money.............ok
Failed Test  Status Wstat Total Fail  Failed  List of failed
-------------------------------------------------------------------------------

t/dblib.t       255 65280    22    3  13.64%  20-22
Failed 1/2 test scripts, 50.00% okay. 3/35 subtests failed, 91.43% okay.

*** Error code 29
make: Fatal error: Command failed for target `test_dynamic'
Current working directory /usr/local/bin/sybp/sybperl-2.10/DBlib
*** Error code 1
make: Fatal error: Command failed for target `test'
mira#
/usr/local/bin/sybp/sybperl-2.10

Any ideas?

--
Tom Throckmorton
Harvard Business School
ITG, Network Operations Center
throck@hbs.edu