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: LD_LIBRARY_PATH problem
Date: Jun 18 1999 2:18PM

Sullivan, Kenneth P writes:
 > Hi,
 > 
 >   I am trying to execute my perl script in a sun-solaris environment.  The
 > error message leads me to believe that I have an LD_LIBRARY_PATH problem,
 > but I have that set to the current location of the 11.0.x open client
 > libraries.  
 > 
 > The call:
 > 
 > row_cnt.pl testsql
 > ld.so.1: /usr/local/bin/perl: fatal: relocation error: file
 > /usr/local/lib/perl5
 > /site_perl/5.005/sun4-solaris/auto/Sybase/CTlib/CTlib.so: symbol
 > cs_ctx_alloc: r
 > eferenced symbol not found
 > Killed
 > 

First try
	ldd /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Sybase/CTlib/CTlib.so

to make sure that the script is really finding the right libraries
(for example, on my linux box I get:

troll (7:15AM):221 > ldd /usr/lib/perl5/site_perl/5.005/i686-linux/auto/Sybase/CTlib/CTlib.so 
        libct.so => /opt/sybase/lib/libct.so (0x40018000)
        libcs.so => /opt/sybase/lib/libcs.so (0x40061000)
        libsybtcl.so => /opt/sybase/lib/libsybtcl.so (0x4006e000)
        libcomn.so => /opt/sybase/lib/libcomn.so (0x4007f000)
        libintl.so => /opt/sybase/lib/libintl.so (0x400be000)
        libinsck.so => /opt/sybase/lib/libinsck.so (0x400c6000)
        libm.so.6 => /lib/libm.so.6 (0x400c9000)
        libc.so.6 => /lib/libc.so.6 (0x400e2000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)

Next, if the libraries seem to be right, check the actual libraries in 
the Sybase directory. 

At first look this seems like a problem with your Sybase installation, 
not with the sybperl installation, but I could be wrong.

Also, are the libraries in /opt/sybase/sybase/lib the same as the ones 
you used to build sybperl?

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@peppler.org    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com