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: Jason Stajich <jason at chg dot mc dot duke dot edu>
Subject: RE:Enviroment problem ---------
Date: Apr 13 2000 1:34PM

You're not pointing to the right libtcl.

Sybperl FAQ
     4.The $LD_LIBRARY_PATH environment variable is incorrectly set. 
            1. Solaris has in /usr/lib Even if you build
               sybperl with the correct libraries, because these
               libraries are shared, the setting of LD_LIBRARY_PATH
               may override the actual library that is used at
               run-time. Having /usr/lib in LD_LIBRARY_PATH *before*
               $SYBASE/lib will cause any CTlib app to fail on Solaris. 

            2. libtcl.{a,so} from the tcl language Sybase has a
     , and tcl has a libtcl.{a,so}, which very often
               gets installed in /usr/local/lib. Again, the same
               potential problem applies if you have a in
               two places, and the wrong one is found at run-time.  

% ldd /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Sybase/CTlib/

to see what is linked.  Adjust your LD_LIBRARY_PATH so that  Sybase's comes sooner.


On Thu, 13 Apr 2000, Davies, Andrew (Exchange) wrote:

> > -----Original Message-----
> > From:	Davies, Andrew (Exchange) 
> > Sent:	Thursday, April 13, 2000 2:16 PM
> > To:	''
> > Subject:	RE: How to implement Statement handle in CTlib?
> > 
> > Anyone ideas whats wrong with my environment  ????
> > thx
> > Andy
> > 
> > 
> > 	Can't load
> > '/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Sybase/CTlib/CTlib
> > .so' for module Sybase::CTlib: /usr/local/bin/perl: fatal:
> > relocation error: file /usr/sybase/lib/ symbol comn_free:
> > referenced symbol not found at
> > /usr/local/lib/perl5/5.00503/sun4-solaris/ line 169.
> > 	 at line 3
> > 	BEGIN failed--compilation aborted at line 3
> > 
> ***********************************************************************
> Bear Stearns is not responsible for any recommendation, solicitation, 
> offer or agreement or any information about any transaction, customer 
> account or account activity contained in this communication.
> ***********************************************************************

Jason Stajich
Center for Human Genetics
Duke University Medical Center