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: Re: Problem with DBD::Sybase
Date: Feb 2 2000 4:01PM

McCallum, Duncan writes:
 >  
 > Where would this symbol 'comn_free' be ?

 > 
 > install_driver(Sybase) failed: Can't load
 > '/opt/PERLperl/lib/site_perl/5.005/sun4-solaris/auto/DBD/Sybase/Sybase.so'
 > for module DBD::Sybase: ld.so.1: /opt/PERLperl/bin/perl: fatal: relocation
 > error: file /opt/sybase/ase1192/lib/libtcl.so: symbol comn_free: referenced
 > symbol not found at /opt/PERLperl/lib/5.00502/sun4-solaris/DynaLoader.pm
 > line 168.

Your problem is that you have LD_LIBRARY_PATH set, and that /usr/lib
comes *before* $SYBASE/lib in LD_LIBRARY_PATH.

Both Sybase and Solaris have a library called libintl.so, and if you
have LD_LIBRARY_PATH set the wrong way then the Solaris version is
loaded instead of the Sybase version, with the above result.

It is in general totally unnecessary to have /lib and/or /usr/lib in
LD_LIBRARY_PATH as these directories get searched by default.

Michael