Re: Sybperl-2.18 installation issues

Michael Peppler <[email protected]> Wed, 20 May 2009 20:59:16 +0200
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <[email protected]>
--Apple-Mail-11-398267922
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

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
[email protected]         -                     http://www.peppler.org
Sybase DBA/Developer         -      TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ          -      http://www.peppler.org/FAQ/linux.html




--Apple-Mail-11-398267922
Content-Type: text/html;
	charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; "><div><div>On May 20, 2009, at =
8:24 AM, Raljith Sudesan wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><br><font =
size=3D"2" face=3D"sans-serif">Hi,</font> <br> <br><font size=3D"2" =
face=3D"sans-serif">I got the contact details from "README" &nbsp;and =
"FAQ" documents shipped with sybperl. </font> <br> <br><font size=3D"2" =
face=3D"sans-serif">I am trying to install Sybperl-2.18 in Sunsolaris 10 =
&nbsp;machine with </font> <br><font size=3D"2" face=3D"sans-serif">&nbsp;=
 &nbsp; &nbsp; &nbsp; 1) Sybase 15 open client installation. </font> =
<br><font size=3D"2" face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; 2) =
Perl5 version 5.8.4 installation.</font> <br><font size=3D"2" =
face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; 3) Sun Studio 12 =
installation.</font> <br><font size=3D"2" face=3D"sans-serif">&nbsp; =
&nbsp; &nbsp; &nbsp; 4) Configuration parameters $SYBASE =
&nbsp;$SYBASE_OCS, $PATH and $LD_LIBRARY_PATH</font><font size=3D"2" =
face=3D"Courier New"> </font><font size=3D"2" face=3D"sans-serif">setup =
properly</font> <br> <br><font size=3D"2" face=3D"sans-serif">"Make =
test" fails and getting below error messages. </font> <br><font size=3D"2"=
 face=3D"sans-serif">Please help me to sort this out.</font> <br><font =
size=3D"2" face=3D"sans-serif"><br> <br> ROOT@fxbobd2 [DEV Build] =
/home/fxbdev/Raljith/sybperl-2.18# make</font> <br><font size=3D"2" =
face=3D"sans-serif">cc -c =
&nbsp;-I/data/sybase/ocs/15.0.0/OCS-15_0/include =
&nbsp;-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_TS_ERRNO -xO3 =
-xspace -xildoff &nbsp; &nbsp;-DVERSION=3D\"2.18\" =
&nbsp;-DXS_VERSION=3D\"2.18\" -KPIC =
"-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" &nbsp;-DCTLIBVS=3D100 =
-DSYBPLVER=3D'"2.18"' -DDO_TIE CTlib.c</font> <br><font size=3D"2" =
face=3D"sans-serif">Running Mkbootstrap for Sybase::CTlib ()</font> =
<br><font size=3D"2" face=3D"sans-serif">chmod 644 CTlib.bs</font> =
<br><font size=3D"2" face=3D"sans-serif">rm -f =
../blib/arch/auto/Sybase/CTlib/CTlib.so</font> <br><font size=3D"2" =
face=3D"sans-serif">LD_RUN_PATH=3D"/data/sybase/ocs/15.0.0/OCS-15_0/lib" =
cc &nbsp;-L/data/sybase/ocs/15.0.0/OCS-15_0/lib -G CTlib.o &nbsp;-o =
../blib/arch/auto/Sybase/CTlib/CTlib.so &nbsp; =
-L/data/sybase/ocs/15.0.0/OCS-15_0/lib -lsybct -lsybcs -lsybtcl =
-lsybcomn -lsybintl -lsybblk -lm</font> <br><font size=3D"2" =
face=3D"sans-serif"></font></blockquote><div><br></div><br><blockquote =
type=3D"cite"><font size=3D"2" face=3D"sans-serif">ROOT@fxbobd2 [DEV =
Build] /home/fxbdev/Raljith/sybperl-2.18# make test</font> <br><font =
size=3D"2" face=3D"sans-serif">PERL_DL_NONLAZY=3D1 /usr/bin/perl =
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', =
'blib/arch')" t/*.t</font> <br><font size=3D"2" =
face=3D"sans-serif">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.&nbsp;</font>&nbsp;<br></blockquote><br></div><div>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.</div><div><br></div><div>Michael</div><div>--</div><div =
apple-content-edited=3D"true"> <span class=3D"Apple-style-span" =
style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; =
white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: =
0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0; "><div style=3D"word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space; "><div><div>Michael Peppler &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp;- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp;Peppler Consulting =
SaRL</div><div>[email protected] &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a =
href=3D"http://www.peppler.org">http://www.peppler.org</a></div><div>Sybas=
e DBA/Developer &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; =
&nbsp;TeamSybase: <a =
href=3D"http://www.teamsybase.com">http://www.teamsybase.com</a></div><div=
>Sybase on Linux FAQ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- &nbsp; &nbsp; =
&nbsp;<a =
href=3D"http://www.peppler.org/FAQ/linux.html">http://www.peppler.org/FAQ/=
linux.html</a></div><div><br></div></div></div></span><br =
class=3D"Apple-interchange-newline"> </div><br></body></html>=

--Apple-Mail-11-398267922--