DBD::Sybase, Solaris 8 (Sparc) 'make test' problem 
Author Message
 DBD::Sybase, Solaris 8 (Sparc) 'make test' problem

Trying to install DBD::Sybase, having problems with 'make test'.
System:

Sun Ultra 10
Solaris 8 (sparc) patchlevel Generic_108528-10.
Sybase ASE 12.5 standard installation.  
Perl 5.6.0 built with gcc installed in /usr/local
DBD installed cleanly
SQSH precompiled binary works fine over the network

Trying to install DBD::Sybase in /usr/local. Sybase is on similar
machine
on the network. The interfaces file seems to work right (see above
about SQSH) and SQSH was able to load the open client libraries OK (it
worked). After some messing around, got make to work including the
necessary libtli.so. 'ldd Sybase.so' gives:

        libct.so =>      /developer/sybase/OCS-12_5/lib/libct.so
          libcs.so =>      /developer/sybase/OCS-12_5/lib/libcs.so
          libtcl.so =>     /developer/sybase/OCS-12_5/lib/libtcl.so
          libcomn.so =>    /developer/sybase/OCS-12_5/lib/libcomn.so
          libintl.so =>    /developer/sybase/OCS-12_5/lib/libintl.so
          libtli.so.12.5.0 =>    
/developer/sybase/OCS-12_5/lib/libtli.so.12.5.0
          libdl.so.1 =>    /usr/lib/libdl.so.1
          libm.so.1 =>     /usr/lib/libm.so.1
          libc.so.1 =>     /usr/lib/libc.so.1
          libsocket.so.1 =>        /usr/lib/libsocket.so.1
          libnsl.so.1 =>   /usr/lib/libnsl.so.1
          libmp.so.2 =>    /usr/lib/libmp.so.2
          /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1

...everything seems to be there, notable libtli,libnsl and libdl which
are specifically required by Solaris.

'make test' gives the following:

  PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib
-I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1
-e 'use

t/*.t
  t/autocommit........not ok 2
  Can't call method "do" on an undefined value at t/autocommit.t line
48.
  t/autocommit........dubious
          Test returned status 255 (wstat 65280, 0xff00)
  DIED. FAILED tests 2-4
          Failed 3/4 tests, 25.00% okay
  t/base..............ok
  t/exec..............DBI->connect(server=dev) failed: Server message
number=4002 severity=14 state=1 line=0 server=dev text=Login failed.
  OpenClient message: LAYER = (4) ORIGIN = (1) SEVERITY = (4) NUMBER =
(44)
  Message String: ct_connect(): protocol specific layer: external
error: The attempt to connect to the server failed.
   at t/exec.t line 42
  Can't call method "prepare" on an undefined value at t/exec.t line
46.
  t/exec..............dubious
          Test returned status 255 (wstat 65280, 0xff00)
  DIED. FAILED tests 2-9
          Failed 8/9 tests, 11.11% okay
  t/fail..............Unable for connect to dev: Server message
number=4002 severity=14 state=1 line=0 server=dev text=Login failed.
  OpenClient message: LAYER = (4) ORIGIN = (1) SEVERITY = (4) NUMBER =
(44)
  Message String: ct_connect(): protocol specific layer: external
error: The attempt to connect to the server failed.
  t/fail..............dubious
          Test returned status 255 (wstat 65280, 0xff00)
  DIED. FAILED tests 2-13
          Failed 12/13 tests, 7.69% okay
  t/login.............FAILED test 2
          Failed 1/3 tests, 66.67% okay
  t/main..............Unable for connect to dev: Server message
number=4002 severity=14 state=1 line=0 server=dev text=Login failed.
  OpenClient message: LAYER = (4) ORIGIN = (1) SEVERITY = (4) NUMBER =
(44)
  Message String: ct_connect(): protocol specific layer: external
error: The attempt to connect to the server failed.
  t/main..............dubious
          Test returned status 255 (wstat 65280, 0xff00)
  DIED. FAILED tests 2-14
          Failed 13/14 tests, 7.14% okay
  t/nsql..............DBI->connect(server=dev) failed: Server message
number=4002 severity=14 state=1 line=0 server=dev text=Login failed.
  OpenClient message: LAYER = (4) ORIGIN = (1) SEVERITY = (4) NUMBER =
(44)
  Message String: ct_connect(): protocol specific layer: external
error: The attempt to connect to the server failed.
   at t/nsql.t line 40
  Can't call method "func" on an undefined value at t/nsql.t line 45.
  t/nsql..............dubious
          Test returned status 255 (wstat 65280, 0xff00)
  DIED. FAILED tests 2-4
          Failed 3/4 tests, 25.00% okay
  t/place.............Unable for connect to dev: Server message
number=4002 severity=14 state=1 line=0 server=dev text=Login failed.
  OpenClient message: LAYER = (4) ORIGIN = (1) SEVERITY = (4) NUMBER =
(44)
  Message String: ct_connect(): protocol specific layer: external
error: The attempt to connect to the server failed.
  t/place.............dubious
          Test returned status 255 (wstat 65280, 0xff00)
  DIED. FAILED tests 2-11
          Failed 10/11 tests, 9.09% okay
  t/xblob.............DBI->connect(server=dev;database=tempdb) failed:
Server message number=4002 severity=14 state=1 line=0 server=dev
text=Login
  failed.
  OpenClient message: LAYER = (4) ORIGIN = (1) SEVERITY = (4) NUMBER =
(44)
  Message String: ct_connect(): protocol specific layer: external
error: The attempt to connect to the server failed.
   at t/xblob.t line 42
  Can't call method "do" on an undefined value at t/xblob.t line 47.
  t/xblob.............dubious
          Test returned status 255 (wstat 65280, 0xff00)
  DIED. FAILED tests 2-6
          Failed 5/6 tests, 16.67% okay
  Failed Test    Status Wstat Total Fail  Failed  List of Failed
  --------------------------------------------------------------------------------
  t/autocommit.t   255 65280     4    3  75.00%  2-4
  t/exec.t         255 65280     9    8  88.89%  2-9
  t/fail.t         255 65280    13   12  92.31%  2-13
  t/login.t                      3    1  33.33%  2
  t/main.t         255 65280    14   13  92.86%  2-14
  t/nsql.t         255 65280     4    3  75.00%  2-4
  t/place.t        255 65280    11   10  90.91%  2-11
  t/xblob.t        255 65280     6    5  83.33%  2-6
  Failed 8/9 test scripts, 11.11% okay. 55/69 subtests failed, 20.29%
okay.
  *** Error code 2
  make: Fatal error: Command failed for target `test_dynamic'

... I don't recognise anything useful in the errors. My 'make'
compiled with gcc while the open client libraries were compiled with
SUNWSpro 6.1. Could there dynamic loading incompatibility??

Any Solaris 8 / ASE 12.5 success stories appreciated.

Thanks,
Callum



Mon, 12 Apr 2004 06:49:17 GMT  
 DBD::Sybase, Solaris 8 (Sparc) 'make test' problem
Hi, just 2 guesses:

Quote:

> Trying to install DBD::Sybase, having problems with 'make test'.
> Trying to install DBD::Sybase in /usr/local. Sybase is on similar
> machine
> on the network. The interfaces file seems to work right (see above
> about SQSH)

ok, but have you set the $SYBASE?

Quote:
> 'make test' gives the following:

>   PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib
> -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1
> -e 'use

> t/*.t
>   t/autocommit........not ok 2
>   Can't call method "do" on an undefined value at t/autocommit.t line
> 48.

Have you edited the PWD file as suggested in the README?

Quote:
> Any Solaris 8 / ASE 12.5 success stories appreciated.

oche150:eedalf {27} uname -a
SunOS oche150 5.8 Generic_108528-06 sun4u sparc SUNW,Sun-Blade-100

oche150:eedalf {28} gcc -v
Reading specs from /opt/local/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
gcc version 2.95.2 19991024 (release)

oche150:eedalf {29} perl5.6.0 -MDBD::Sybase -e 'print $DBD::Sybase::VERSION'
0.90

But I have older Sybase:
Adaptive Server Enterprise/11.5.1.1/P/Sun_svr4/OS 5.5.1/SWR 8547 ESD 2/opt/Tue Jul 20 12:18:58 PDT 1999  

Regards
Alex



Tue, 13 Apr 2004 22:22:02 GMT  
 DBD::Sybase, Solaris 8 (Sparc) 'make test' problem

Quote:

>   t/exec..............DBI->connect(server=dev) failed: Server message
> number=4002 severity=14 state=1 line=0 server=dev text=Login failed.
>   OpenClient message: LAYER = (4) ORIGIN = (1) SEVERITY = (4) NUMBER =
> (44)
>   Message String: ct_connect(): protocol specific layer: external
> error: The attempt to connect to the server failed.
>    at t/exec.t line 42

Looks like you didn't correctly specify user, password and server in the
PWD file.

The next version of DBD::Sybase will ask for this information when you
run perl Makefile.PL...

Michael
--
Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler

International Sybase User Group - http://www.isug.com



Wed, 14 Apr 2004 00:11:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. DBD Sybase problem, can't prepare SQL.

2. DBD::Oracle hangs on 'make test'

3. DBD Oracle 'make test' fails

4. DBD 'make test' prob

5. DBD-Sybase Problem - Failed "make test"

6. DBD::Sybase - can't change context to database

7. I can't install DBD-Sybase-0.212.1

8. Binaries for DBD-Oracle on Solaris 2.6 SPARC

9. FYI on perl5.004 beta 2 optimizer testing on sparc Solaris 2.5.1

10. Test 3 of lib/dirhand fails on 5.003/Sparc Solaris 2.5.1

11. DBD:ODBC sql query 'where' problems

12. Help with Sybperl 'make test' problem

 

 
Powered by phpBB® Forum Software