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: Sybperl-2.18 installation issues
Date: May 20 2009 6:59PM

On May 20, 2009, at 8:24 AM, Raljith Sudesan wrote:

>
> Hi,
>
> I got the contact details from "README"  and "FAQ" documents shipped  
> with sybperl.
>
> I am trying to install Sybperl-2.18 in Sunsolaris 10  machine with
>         1) Sybase 15 open client installation.
>         2) Perl5 version 5.8.4 installation.
>         3) Sun Studio 12 installation.
>         4) Configuration parameters $SYBASE  $SYBASE_OCS, $PATH and  
> $LD_LIBRARY_PATH setup properly
>
> "Make test" fails and getting below error messages.
> Please help me to sort this out.
>
>
> ROOT@fxbobd2 [DEV Build] /home/fxbdev/Raljith/sybperl-2.18# make
> cc -c  -I/data/sybase/ocs/15.0.0/OCS-15_0/include  - 
> D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace - 
> xildoff    -DVERSION=\"2.18\"  -DXS_VERSION=\"2.18\" -KPIC "-I/usr/ 
> perl5/5.8.4/lib/i86pc-solaris-64int/CORE"  -DCTLIBVS=100 - 
> DSYBPLVER='"2.18"' -DDO_TIE CTlib.c
> Running Mkbootstrap for Sybase::CTlib ()
> chmod 644 CTlib.bs
> rm -f ../blib/arch/auto/Sybase/CTlib/CTlib.so
> LD_RUN_PATH="/data/sybase/ocs/15.0.0/OCS-15_0/lib" cc  -L/data/ 
> sybase/ocs/15.0.0/OCS-15_0/lib -G CTlib.o  -o ../blib/arch/auto/ 
> Sybase/CTlib/CTlib.so   -L/data/sybase/ocs/15.0.0/OCS-15_0/lib - 
> lsybct -lsybcs -lsybtcl -lsybcomn -lsybintl -lsybblk -lm


> ROOT@fxbobd2 [DEV Build] /home/fxbdev/Raljith/sybperl-2.18# make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"  
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/1_db_dblib...........Can't load '/home/fxbdev/Raljith/sybperl-2.18/ 
> blib/arch/auto/Sybase/DBlib/DBlib.so' for module Sybase::DBlib:  
> ld.so.1: perl: fatal: relocation error: file /data/sybase/ocs/15.0.0/ 
> OCS-15_0/lib/libsybdb.so: symbol uniconv_HandleGet: referenced  
> symbol not found at /usr/perl5/5.8.4/lib//i86pc-solaris-64int/ 
> DynaLoader.pm line 230.

A quick check of google shows that uniconv_HandleGet is in the Sybase  
unicode library. I don't know why this is being referenced in your  
case, but I think the library is libsybunic.so. You should double  
check that LD_LIBRARY_PATH is set correctly, and maybe add -lsybunic  
to the link line to see if that solves the problem.

Michael
--
Michael Peppler              -                    Peppler Consulting  
SaRL
mpeppler@peppler.org         -                     http://www.peppler.org
Sybase DBA/Developer         -      TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ          -      http://www.peppler.org/FAQ/linux.html