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: mpeppler at itf1 dot itf dot ch (Michael Peppler)
Subject: Re: sybperl make
Date: Mar 26 1996 6:38PM

> From: "Brent B. Powers Swaps Programmer x2293" 
> Attempting to make a dynamic version of sybperl2.0.4 .... odd messages
> (essentially a failed make):
> First, I tried dynamic:
>     t/bcp...............Argument "SYBESMSG" isn't numeric in ne at 
../blib/lib/ line 56.
>     Sybase error: Attempt to use Bulk Copy with a non-existent Server 
>     bcp_init failed. at t/bcp.t line 58
>     FAILED tests 5-9
>             Failed 5/9 tests, 44.44% okay
>             Test returned status 255 (wstat 65280)
>     Failed 1 test script, 0.00% okay. 5/9 subtests failed, 44.44% okay.
>     *** Error code 2
>     make: Fatal error: Command failed for target `test_dynamic'

That looks like the bug I found when testing the BCP module against a 4.x
server.  This bug ALSO shows up if you build sybperl with DBLIBVS < 1000,
because then DBlibrary is not put into System 10 mode.

> Then, a make clean, re-edit the CONFIG file and try again (Note that
> the user/password/server worked for the first set of tests)
>     To install the new "perl" binary, call
>         make -f Makefile.aperl inst_perl MAP_TARGET=perl
>     To remove the intermediate files say
>         make -f Makefile.aperl map_clean
>     PERL_DL_NONLAZY=1 ./../perl -I../blib/arch -I../blib/lib 
-I/home/powers/perl5/lib/sun4-sunos/5.002 -I/home/powers/perl5/lib -e 'use 
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
>     t/ctlib.............ok
>     t/cursor............Identifier "Sybase::CTlib::VERSION" used only 
once: possible typo at ../blib/lib/Sybase/ line 862.
>     Identifier "Sybase::CTlib::Version" used only once: possible typo at 
../blib/lib/Sybase/ line 862.
>     Cursors are not available on this SQL Server.
>     ok
>     All tests successful.
>     Files=2,  Tests=52,  3 secs ( 1.48 cusr  0.48 csys =  1.97 cpu)
>     PERL_DL_NONLAZY=1 ./../perl -I../blib/arch -I../blib/lib 
-I/home/powers/perl5/lib/sun4-sunos/5.002 -I/home/powers/perl5/lib -e 'use 
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
>     t/dblib.............not ok 1
>     -- The supplied login id/password combination may be invalid
>     FAILED tests 1-19
>             Failed 19/19 tests, 0.00% okay
>             Test returned status 22 (wstat 5632)
>     t/money.............Identifier "main::SybperlVer" used only once: 
possible typo at ../blib/lib/Sybase/ line 304.
>     not ok 1
>     -- The userid/password combination may be invalid - check the PWD 
>     FAILED tests 1-13
>             Failed 13/13 tests, 0.00% okay
>             Test returned status 22 (wstat 5632)
>     Failed 2/2 test scripts, 0.00% okay. 32/32 subtests failed, 0.00% 

That one's pretty strange, but the 'Cursor's are not available' message 
means that the SYbase @@version string didn't include '10.x'.

The DBlib failures are strange, but probably come from something that is
not the Userid/Pwd thing.  Run the tests manually (ie perl t/dblib.t) to
see what goes on...


PS My 2.05 release appears to be stuck somewhere in CPAN, and the
administrator is on vacation....