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: DBD::Sybase errors
Date: Mar 12 2002 6:05PM

Joel Saunier writes:
 > Hi.
 > I post this message a few days ago in the comp.lang.perl newsgroup,
 > but without success (i.e. without answers).

The comp.lang.perl newsgroup has been dead for quite a while. Use
comp.lang.perl.modules, or comp.databases.sybase instead.

 > So I try this mailing list.

Good idea :-)

 > I try to install DBD::Sybase V0.93 compiled with gcc on a
 > AIX server against a Perl 5.6.1 binary distrib. from the
 > Bull Freeware Archive.
 > The compilation is fine but the test suite fails with a lot
 > of theses messages:
 > 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
 > install_driver(Sybase) failed: DBD::Sybase initialize: ct_init() failed a
 > /usr/local/lib/perl5/5.6.1/aix-thread/ line 225.

Ah - I see that you have a threaded version of perl - this *might* be
a problem, depending on which OpenClient libraries are linked to

I'm unfortunately not very familiar with AIX - does it have an ldd(1)
command?  If so, please run
	  ldd blib/arch/auto/DBD/Sybase/
This should list the libraries that are linked to the .so file. For
example, on my linux box I have:

troll (10:03AM):34 > ldd blib/arch/auto/DBD/Sybase/ => /opt/sybase-12.5/OCS/lib/ (0x40015000) => /opt/sybase-12.5/OCS/lib/ (0x40082000) => /opt/sybase-12.5/OCS/lib/ (0x4008f000) => /opt/sybase-12.5/OCS/lib/ (0x400d4000) => /opt/sybase-12.5/OCS/lib/ (0x40131000) => /lib/ (0x4013b000) => /lib/i686/ (0x4013f000) => /lib/i686/ (0x40162000)
	/lib/ => /lib/ (0x80000000)

It is possible that one of the libraries linked to the .so file is
conflicting with something else that is linked to perl itself.

BTW - can you use isql from the same shell?

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