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: 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  - 
> 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
> rm -f ../blib/arch/auto/Sybase/CTlib/
> 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/   -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/' for module Sybase::DBlib:  
> perl: fatal: relocation error: file /data/sybase/ocs/15.0.0/ 
> OCS-15_0/lib/ symbol uniconv_HandleGet: referenced  
> symbol not found at /usr/perl5/5.8.4/lib//i86pc-solaris-64int/ 
> 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 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 Peppler              -                    Peppler Consulting  
SaRL         -           
Sybase DBA/Developer         -      TeamSybase:
Sybase on Linux FAQ          -