PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
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 2.95.2.1 on a
 > AIX 4.3.2.0 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/DynaLoader.pm 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
DBD::Sybase.

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/Sybase.so
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/Sybase.so  
	libct.so => /opt/sybase-12.5/OCS/lib/libct.so (0x40015000)
	libcs.so => /opt/sybase-12.5/OCS/lib/libcs.so (0x40082000)
	libsybtcl.so => /opt/sybase-12.5/OCS/lib/libsybtcl.so (0x4008f000)
	libcomn.so => /opt/sybase-12.5/OCS/lib/libcomn.so (0x400d4000)
	libintl.so => /opt/sybase-12.5/OCS/lib/libintl.so (0x40131000)
	libdl.so.2 => /lib/libdl.so.2 (0x4013b000)
	libm.so.6 => /lib/i686/libm.so.6 (0x4013f000)
	libc.so.6 => /lib/i686/libc.so.6 (0x40162000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (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
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org           *or*          mpeppler@mbay.net
http://www.mbay.net/~mpeppler
International Sybase User Group: http://www.isug.com