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: Bernard Harrison <bernard dot harrison at showads dot com dot au>
Subject: compiling Sybperl for Sybase 11.9.2 on Sun
Date: Jan 4 1999 5:31AM

This is just a note to outline some problems I appear to have had compiling Sybperl
I am compiling Sybperl 2.10 using:
Solaris 2.6
Perl 5.5
Sybase 11.9.2

I am compiling with Dynamic Loading and the DO_TIE flag.  In fact I didn't need to edit
the CONFIG file at all though I tried a few things to eliminate the problems.
The only thing I had to change was my LD_LIBRARY_PATH variable.

---------------------------------------------------------------------
Initially I seem to have had a problem with one of the Sybase header files:
ctpublic.h which is included in CTlib.xs
ctpublic.h includes a header file called sqlda.h. There is no sqlda.h!


In file included from CTlib.xs:38:
/opt/sybase/include/ctpublic.h:20: sqlda.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `CTlib.o'
Current working directory /tmp/sybperl-2.10/CTlib
*** Error code 1

---------------------------------------------------------------------

When I edited CTlib.xs and changed ctpublic.h to cspublic.h
things seemed to compile ok
but when I run the tests I get the following errors.
I have been able to install the compiled libraries despite this.
They seem to do what I require them to do so far...
I was just wondering how serious the change I made to CTlib.xs was
and how serious these test errors were:

root(sydsrv011):/tmp/sybperl-2.10# make test
PERL_DL_NONLAZY=1 /bin/perl -I../blib/arch -I../blib/lib
-I/opt/CPANperl/lib/5.00502/sun4-solaris-thread -I/opt/CPANperl/lib/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.33 cusr +  0.07 csys =  0.40 CPU)
PERL_DL_NONLAZY=1 /bin/perl -I../blib/arch -I../blib/lib
-I/opt/CPANperl/lib/5.00502/sun4-solaris-thread -I/opt/CPANperl/lib/5.00502 -e 'use Test::Harness
qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/ctlib.............ok
t/cursor............ok
All tests successful.
Files=2,  Tests=52,  2 wallclock secs ( 1.07 cusr +  0.18 csys =  1.25 CPU)
PERL_DL_NONLAZY=1 /bin/perl -I../blib/arch -I../blib/lib
-I/opt/CPANperl/lib/5.00502/sun4-solaris-thread -I/opt/CPANperl/lib/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 /tmp/sybperl-2.10/DBlib
*** Error code 1
make: Fatal error: Command failed for target `test'

regards,

Bernard Harrison

--
Database Publishing
Show-Ads Sydney PH: +61 2 9427 1333
13 Sirius Road
Lane Cove NSW 2066