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: 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:
 > testsql
 > /usr/local/bin/perl: fatal: relocation error: file
 > /usr/local/lib/perl5
 > /site_perl/5.005/sun4-solaris/auto/Sybase/CTlib/ 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/

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/ => /opt/sybase/lib/ (0x40018000) => /opt/sybase/lib/ (0x40061000) => /opt/sybase/lib/ (0x4006e000) => /opt/sybase/lib/ (0x4007f000) => /opt/sybase/lib/ (0x400be000) => /opt/sybase/lib/ (0x400c6000) => /lib/ (0x400c9000) => /lib/ (0x400e2000)
        /lib/ => /lib/ (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 Peppler         -||-  Data Migrations Inc.    -||-
Int. Sybase User Group  -||-
Sybase on Linux mailing list: