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: Re: DBlib to CTlib migration question
Date: Apr 21 2005 3:48PM

On Thu, 2005-04-21 at 09:58, Debkumar Chakraverty wrote:
> I have written a module "DbWrapper" which uses CTlib. I did my testing
> using perl 5.8.0 and it worked fine. I now realise that I have to get
> my 
> module working with perl 5.004 and sybperl version 2.10. 
> But when I try to run my code I get the following error:
> [EMAIL PROTECTED]<17> /opt/PRperl5.004/bin/perl
> Can't load
> '/opt/perl/5.8.0/lib/sun4-solaris/auto/Sybase/CTlib/' 
> for module Sybase::CTlib: /opt/PRperl5.004/bin/perl: fatal: 
> relocation error: file 
> /opt/perl/5.8.0/lib/sun4-solaris/auto/Sybase/CTlib/ symbol 
> PL_Xpv: referenced symbol not found at 
> /opt/lib/perl5.004/sun4-solaris/5.00404/ line 166.

Your PERL5LIB variable and/or LD_LIBRARY_PATH variable points at the
wrong place. You can't use the 5.8.x version of Sybase::CTlib with the
5.4 version of perl - they aren't binary compatible.

That being said I would *strongly* urge you to upgrade your perl binary
from 5.00404 to something more recent!

Michael Peppler  -  -
Sybase DBA/Developer
Sybase on Linux FAQ: