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: mpeppler at itf dot ch (Michael Peppler)
Subject: Re: CTlib tests all failing for sybperl-2.04 on Solaris 2.4
Date: Mar 11 1996 9:29AM

> From: wpm@morgan.com (Phillip Moore)
> 
> When attempting to run the tests for CTlib:
> 
> Can't load '../blib/arch/auto/Sybase/CTlib/CTlib.so' for module Sybase::CTlib: ld.so.1: /ms/dist/aurora/PROJ/perl/5.002/bin/perl: fatal: relocation error: symbol not found: intlgetenv: referenced in /ms/dist/syb/lib/libct.so at /ms/dist/aurora/PROJ/perl/5.002/common/lib/perl5/DynaLoader.pm line 140.
> 
> I assume that intlgetenv comes from /usr/lib/libintl.so, which
> CTlib.so seems to ask for:
> 
> (wpm/wpm/wpm) ldd ../blib/arch/auto/Sybase/CTlib/CTlib.so
>         libct.so =>      /ms/dist/syb/lib/libct.so
>         libcs.so =>      /ms/dist/syb/lib/libcs.so
>         libtcl.so =>     /ms/dist/syb/lib/libtcl.so
>         libcomn.so =>    /ms/dist/syb/lib/libcomn.so
>         libintl.so =>    /usr/lib/libintl.so      <<<<******
>         libm.so.1 =>     /usr/lib/libm.so.1
>         libw.so.1 =>     /usr/lib/libw.so.1
>         libc.so.1 =>     /usr/lib/libc.so.1
>         libdl.so.1 =>    /usr/lib/libdl.so.1
> 

The libintl.so is wrong. ldd should show libintl.so =>
/ms/dist/syb/lib/libintl.so. I suspect that either the LD_LIBRARY_PATH
or the -L flags given during the compilation are incorrect (or
incomplete) and cause the ld phase to pick-up the libinl.so in /usr/lib
instead of Sybase's version.

You will also need to add -ltli to the EXTRA_LIBS line in CONFIG.

Michael