|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: Sybase Open Client 12.5 and Sybperl
Date: Sep 13 2001 8:41PM
Ruth S. McNay writes:
> The SA said that he build perl and sybperl fine. I am running a script that
> calls the following packages:
> We get the following error:
>
> ld.so.1: /usr/bin/perl: fatal: relocation error: file
> /usr/local/lib/perl5/site_perl/5.7.2/sun4-solaris/auto/Sybase/CTlib/CTlib.so:
> symbol cs_ctx_alloc: referenced symbol not found
> Killed
This would mean that the Sybase libraries aren't found, or that they
get incorrectly loaded.
What is the value of your LD_LIBRARY_PATH?
Also - cd to
/usr/local/lib/perl5/site_perl/5.7.2/sun4-solaris/auto/Sybase/CTlib
and run "ldd CTlib.so".
You should get something like this:
kiruna (1:39PM):6 > ldd CTlib.so
libct.so => /opt/sybase-12.0/OCS-12_0/lib/libct.so
libcs.so => /opt/sybase-12.0/OCS-12_0/lib/libcs.so
libtcl.so => /opt/sybase-12.0/OCS-12_0/lib/libtcl.so
libcomn.so => /opt/sybase-12.0/OCS-12_0/lib/libcomn.so
libintl.so => /opt/sybase-12.0/OCS-12_0/lib/libintl.so
libtli.so => /opt/sybase-12.0/OCS-12_0/lib/libtli.so
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
ok - so that's OC 12.0 on Solaris... here's what OC 12.5 on linux
gives me:
troll (1:40PM):3 > ldd /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Sybase/CTlib/CTlib.so
libct.so => /opt/sybase-12.5/OCS/lib/libct.so (0x4001e000)
libcs.so => /opt/sybase-12.5/OCS/lib/libcs.so (0x4008b000)
libsybtcl.so => /opt/sybase-12.5/OCS/lib/libsybtcl.so (0x40098000)
libcomn.so => /opt/sybase-12.5/OCS/lib/libcomn.so (0x400dd000)
libintl.so => /opt/sybase-12.5/OCS/lib/libintl.so (0x4013a000)
libm.so.6 => /lib/i686/libm.so.6 (0x40143000)
libc.so.6 => /lib/i686/libc.so.6 (0x40168000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Michael
--
Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
mpeppler@peppler.org - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com
|