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 21 2009 2:51PM

Here's some information from a friend at Sybase:

Yes, I think it is new with 15.0:

 From the New Features Guide:
   http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc20155.1500/html/newfesd/CEGFIJIH.htm

 From the Programmer's Supplement, Building a DB-Library executable:
   http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc35456.1500/html/ocspsunx/ocspsunx52.htm

 From the Programmer's Supplement, Building a CT-Library executable:
   http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc35456.1500/html/ocspsunx/X61680.htm
   http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc35456.1500/html/ocspsunx/ocspsunx7.htm

All of the samples also illustrate the proper linking.

You should be able to add the library to the EXTRA_LIBS line in the  
CONFIG file, and then rebuild.

Michael


On May 21, 2009, at 8:15 AM, Raljith Sudesan wrote:

>
> Hi Michael,
>
> Thanks a lot for helping on this issue.
>
> I have verified LD_LIBRARY_PATH,  contains sybase library path.
>
> Please guide me to add -lsybunic to the link line.
>
>
> $ echo $LD_LIBRARY_PATH
> /export/data/sybase/ocs/15.0.0/OCS-15_0/lib
>
>
>
>
> Thanks & Regards,
> Raljith Sudesan,
> HCL Technologies Ltd, Vertex, Tech Park No. 564,
> Whitefield Road, Behind ITPL,  Banglore- 560066
> Work - +91-80-4187 3044
> www.hcl.in
>
> LASER Service Desk
> Tel:UK 71004: Europe: (8854) 71004 ; US: (250) 2121: Canada:  
> 4166828480 ; APAC: +81351564400: Tokyo: 0351564400
> Email : LASER Support
>
> This mail is transmitted to you on behalf of HCL Technologies.
> Diese Post wird Ihnen im Namen der HCL Technologies übermittelt
>
>
> Michael Peppler 
> 05/20/2009 07:59 PM
>
> To
> Raljith Sudesan/ext/dbcom@DBEMEA
> cc
> sybperl-l@peppler.org
> Subject
> Re: Sybperl-2.18 installation issues
>
>
>
>
>
> 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
>
>
>
>
>
> ---
>
> This e-mail may contain confidential and/or privileged information.  
> If you are not the intended recipient (or have received this e-mail  
> in error) please notify the sender immediately and delete this e- 
> mail. Any unauthorized copying, disclosure or distribution of the  
> material in this e-mail is strictly forbidden.
>
> Please refer to http://www.db.com/en/content/eu_disclosures.htm for  
> additional EU corporate and regulatory disclosures.

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