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: Tina Messmann <tina dot messmann at xinux dot de>
Subject: Re: problem bringing Sybase::DBlib to work
Date: Nov 22 2001 9:35AM

Michael Peppler wrote:

>Tina Messmann writes:
> > Hello All,
> > 
> > sorry if this is a stupid question, i am a beginner and just subscribed 
> > to this list.
> > I try to create a very simple script to connect to a Sybase Server.
> > When inserting the line 'use Sybase::DBlib;' and invoking the script, 
> > the following error occurs:
> > 
> > /usr/bin/perl: relocation error: 
> > /usr/local/lib/perl5/site_perl/5.6.1/i586-linux/auto/Sybase/DBlib/ 
> > undefined symbol: dbinit
> > 
> > I tried to use DBD::Sybase, but i get a similar error:
> > 
> > /usr/bin/perl: relocation error: 
> > /usr/local/lib/perl5/site_perl/5.6.1/i586-linux/auto/DBD/Sybase/ 
> > undefined symbol: cs_ctx_alloc
> > 
> > The installation of both modules worked fine.
>What this means is that neither, nor are linked
>into, respectively
>So I have a feeling that the installation actually did not work
>First, try to do this:
>ldd /usr/local/lib/perl5/site_perl/5.6.1/i586-linux/auto/Sybase/DBlib/
>This should display something like this:
>troll (8:11AM):92 > ldd /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Sybase/DBlib/ 
> => /opt/sybase-12.5/OCS/lib/ (0x40023000)
> => /lib/ (0x400d9000)
> => /lib/ (0x400fb000)
>	/lib/ => /lib/ (0x80000000)
>If isn't listed, then your build did not work, and you
>should try to reinstall.
Hello Michael,
i installed the freetds implementation of the CT-Lib and there i found 
Output from ldd is now:

sahadum:~# ldd 
/usr/local/lib/perl5/site_perl/5.6.1/i586-linux/auto/Sybase/DBlib/ => /usr/local/sybase/lib/ (0x40021000) => /lib/ (0x4003a000) => /lib/ (0x4005c000)
       /lib/ => /lib/ (0x80000000)

Looks good regarding your answer....but now i get the following 
relocation error, when invoking the script:

/usr/bin/perl: relocation error: 
undefined symbol: dbsetlname

Any idea, what is now missing?

Thanks in advance