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: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: ctlib error
Date: Nov 2 1999 7:40PM

Abohebeish, Eman writes:
 > Hi,
 > I  was hopeing someone could shed light on the error I am getting below.  I
 > was able to install Perl5/Sybperl on one machine, and run the ctlib.t test
 > file just fine.  When I installed Perl5/Sybperl on another UNIX box (same
 > OS), I get the following error when I run ctlib.t.  I know that CTlib is
 > fine because I use it in my 'C' code.  

Is the environment *exactly* the same for your C code as for the perl

sybperl is just a thin wrapper around the CTlib API, so it should
*normally* behave the same way as a CTlib C app.

 > Open Client Message: (In msg_cb)
 > Message number: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (1)
 > Message String: ct_connect(): directory service layer: internal directory
 > contro
 > l layer error: There was an error encountered while binding to the directory
 > ser
 > vice.
 > not ok 2
 > -- The supplied login id/password combination may be invalid
 > Can't call method "ct_execute" on an undefined value at ctlib.t line 53.
 > psoft@bandit /perl/sybperl-2.11/CTlib/t>>                  
 > ----------------------------------------------------------------------------
 > ----------------------------------------------------
 > Here is part of the code which I modified to test ctlib.t:
 > ----------------------------------------------------------------------------
 > ----------------------------------------------------
 > #( $X = Sybase::CTlib->ct_connect($Uid, $Pwd, $Srv, '', {LastError => 0}) )
 > ( $X = Sybase::CTlib->ct_connect('USER1', 'USER1_PASS', 'DEVELOP' , '',
 > {LastError => 0
 > }) )

Is the DEVELOP server listed in the interfaces file? Is $SYBASE
pointing at the correct interfaces file?

Michael Peppler         -||-  Data Migrations Inc.    -||-
Int. Sybase User Group  -||-
Sybase on Linux mailing list: