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: Will Nelson <will at filoli dot com>
Subject: sybperl and perl 5.002
Date: Mar 19 1996 8:53PM

I installed perl 5.002 on one of our Sybase servers here, and the
"make test" passed all tests. I then tried to install Sybperl 2.0
on that same system. I did a "make clean", followed by a "make",
and it seemed to build ok:

loki%<2>more OUT
umask 0 && cp lib/ctutil.pl blib/lib/ctutil.pl
umask 0 && cp lib/sql.pl blib/lib/sql.pl
umask 0 && cp lib/sybperl.pl blib/lib/sybperl.pl
umask 0 && cp lib/sybutil.pl blib/lib/sybutil.pl
umask 0 && cp CTlib.pm ../blib/lib/Sybase/CTlib.pm
AutoSplitting Sybase::CTlib (../blib/lib/auto/Sybase/CTlib)
/usr/local/bin/perl -I/usr/local/lib/perl5/sun4-solaris/5.002 -I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/ExtUtils/typemap CTlib.xs >CTlib.tc && mv CTlib.tc CTlib.c
Please specify prototyping behavior for CTlib.xs (see perlxs manual)
gcc -c -I/opt/Sybase/oclient/include -I/usr/local/include -O -DVERSION=\"2.0\" -DXS_VERSION=\"2.0\" -fpic -I/usr/local/lib/perl5/sun4-solaris/5.002/CORE -DCTLIBVS=100 -DSYBPLVER='"2.0"' -DUNDEF_BUG CTlib.c
Running Mkbootstrap for Sybase::CTlib ()
chmod 644 CTlib.bs
LD_RUN_PATH="/opt/Sybase/oclient/lib:/lib" gcc -o ../blib/arch/auto/Sybase/CTlib/CTlib.so -G -L/usr/local/lib -L/opt/gnu/lib CTlib.o   -L/opt/Sybase/oclient/lib -lct -lcs -ltcl -lcomn -lintl -ltli -ldl -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
umask 0 && cp DBlib.pm ../blib/lib/Sybase/DBlib.pm
AutoSplitting Sybase::DBlib (../blib/lib/auto/Sybase/DBlib)
/usr/local/bin/perl -I/usr/local/lib/perl5/sun4-solaris/5.002 -I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/ExtUtils/typemap DBlib.xs >DBlib.tc && mv DBlib.tc DBlib.c
Please specify prototyping behavior for DBlib.xs (see perlxs manual)
gcc -c -I/opt/Sybase/oclient/include -I/usr/local/include -O -DVERSION=\"2.0\" -DXS_VERSION=\"2.0\" -fpic -I/usr/local/lib/perl5/sun4-solaris/5.002/CORE -DDBLIBVS=1000 -DSYBPLVER='"2.0"' -DUNDEF_BUG DBlib.c
Running Mkbootstrap for Sybase::DBlib ()
chmod 644 DBlib.bs
LD_RUN_PATH="/opt/Sybase/oclient/lib:/lib" gcc -o ../blib/arch/auto/Sybase/DBlib/DBlib.so -G -L/usr/local/lib -L/opt/gnu/lib DBlib.o   -L/opt/Sybase/oclient/lib -lsybdb -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
umask 0 && cp Sybperl.pm ../blib/lib/Sybase/Sybperl.pm
AutoSplitting Sybase::Sybperl (../blib/lib/auto/Sybase/Sybperl)


However, when I did the "make test" on this newly build Sybperl,
it failed miserably:

loki%<1>make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl -I../blib/arch -I../blib/lib -I/usr/local/lib/perl5/sun4-solaris/5.002 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/ctlib.............
Open Client Message:
Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (131)
Message String: ct_init(): network packet layer: internal net library error: Error string not available
Sybase::CTlib initialize: ct_init() failed at /usr/local/lib/perl5/DynaLoader.pm line 153.
BEGIN failed--compilation aborted at t/ctlib.t line 8.
FAILED before any test output arrived
        Test returned status 2 (wstat 512)
FAILED--1 test script could be run, alas -- no output ever seen
*** Error code 29
make: Fatal error: Command failed for target `test_dynamic'
Current working directory /export/share/local/src/sybperl/sybperl-2.0/CTlib
*** Error code 1
make: Fatal error: Command failed for target `test'


Does anyone have any ideas what I might have done wrong?
The system is running Solaris 2.4: Generic_101945-36.

Will