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: Matthew dot Persico at Lazard dot com
Subject: Re: ct_init error for Sybperl CTLib on ASE 12.5 OCS
Date: Apr 17 2002 6:26PM

Hmm. Which means that if you really want multiple versions on a box (for testing
purposes, let's say) you better not take the defaults at installation and make
sure you put different versions in different directories. This way, you can
create the same-named non-numbered softlinks to the numbered libs in each
directory, build sybperl (and DBD or that matter) using the links against the
earliest version and swap versions with a $SYBASE redefinition.

Of course, if the libraries are turn out to be incompatable from release to
release, you will be forced to rebuild one instanance of Sybperl/DBD for each
incompatable release. Each instance will have reside in its own directory tree
(/opt/sybase/12.0/lib/perl5/, /opt/sybase/12.5/lib/perl5/...) and you will have
to muck with PERl5LIB before you call your code OR @INC inside your program.

Here's hoping that the libraries are compatable...

                                               To:     "SybPerl Discussion List"        
             "Michael Peppler"                 cc:                                                               
                         Subject:     Re: ct_init error for Sybperl CTLib on ASE 12.5 OCS  
             Sent by:                                                                                            
             17 Apr 2002 01:12 PM                                                                                
             Please respond to                                                                                   

On Wed, 2002-04-17 at 01:46, wrote:
> Hi Folks,
> We're getting the following from a script:
> Open Client Message:
> Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (131)
> Message String: ct_init(): network packet layer: internal net library error:
> Attempt to load protocol driver failed
> Sybase::CTlib initialize: ct_init() failed at
> /opt/perl5/lib/5.6.1/PA-RISC2.0/ line 225.
> ...when running Sybperl CTlib against an ASE 12.5 SWR 9614 open client
> (OCS-12_0)
> We normally get this error when the environment ($SYBASE, $SYBASE_OCS, etc.)
> not set correctly. However, on this occassion all looks good.
> If I run the script against open client 12.x SWR 9461 (this is where sybperl
>  compiled against) - all is good.

This is because starting with OC 12.5 the net libraries are versioned.
The build that was done with OC 12.0 wants to load, but for OC
12.5 that file is called (to allow multiple versions of
the net libs to exist in the same directory).

Either rebuild sybperl against OC12.5 (probably a good idea anyway), or
make a softlink from to

BTW - the same applies to for the systems that use it
instead of (linux, HP-UX)

Michael Peppler                              Data Migrations, Inc.           *or*
International Sybase User Group: