Re: Sybperl-2.18 installation issues

Michael Peppler <[email protected]> Thu, 21 May 2009 16:51:57 +0200
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <[email protected]>
--Apple-Mail-12-469829372
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: quoted-printable

Here's some information from a friend at Sybase:

Yes, I think it is new with 15.0:

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

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

 =46rom 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 =20
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: =20
> 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 =FCbermittelt
>
>
> Michael Peppler <[email protected]>
> 05/20/2009 07:59 PM
>
> To
> Raljith Sudesan/ext/dbcom@DBEMEA
> cc
> [email protected]
> 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 =20=

> 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 =20
> $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  -=20
> D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_TS_ERRNO -xO3 -xspace -=20=

> xildoff    -DVERSION=3D\"2.18\"  -DXS_VERSION=3D\"2.18\" -KPIC =
"-I/usr/=20
> perl5/5.8.4/lib/i86pc-solaris-64int/CORE"  -DCTLIBVS=3D100 -=20
> DSYBPLVER=3D'"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=3D"/data/sybase/ocs/15.0.0/OCS-15_0/lib" cc  -L/data/=20
> sybase/ocs/15.0.0/OCS-15_0/lib -G CTlib.o  -o ../blib/arch/auto/=20
> Sybase/CTlib/CTlib.so   -L/data/sybase/ocs/15.0.0/OCS-15_0/lib -=20
> lsybct -lsybcs -lsybtcl -lsybcomn -lsybintl -lsybblk -lm
>
>
> ROOT@fxbobd2 [DEV Build] /home/fxbdev/Raljith/sybperl-2.18# make test
> PERL_DL_NONLAZY=3D1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" =20
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/1_db_dblib...........Can't load '/home/fxbdev/Raljith/sybperl-2.18/=20=

> blib/arch/auto/Sybase/DBlib/DBlib.so' for module Sybase::DBlib: =20
> ld.so.1: perl: fatal: relocation error: file /data/sybase/ocs/15.0.0/=20=

> OCS-15_0/lib/libsybdb.so: symbol uniconv_HandleGet: referenced =20
> symbol not found at /usr/perl5/5.8.4/lib//i86pc-solaris-64int/=20
> DynaLoader.pm line 230.
>
> A quick check of google shows that uniconv_HandleGet is in the =20
> Sybase unicode library. I don't know why this is being referenced in =20=

> your case, but I think the library is libsybunic.so. You should =20
> double check that LD_LIBRARY_PATH is set correctly, and maybe add -=20
> lsybunic to the link line to see if that solves the problem.
>
> Michael
> --=20
> Michael Peppler              -                    Peppler Consulting =20=

> 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
>
>
>
>
>
> ---
>
> This e-mail may contain confidential and/or privileged information. =20=

> If you are not the intended recipient (or have received this e-mail =20=

> in error) please notify the sender immediately and delete this e-=20
> mail. Any unauthorized copying, disclosure or distribution of the =20
> material in this e-mail is strictly forbidden.
>
> Please refer to http://www.db.com/en/content/eu_disclosures.htm for =20=

> additional EU corporate and regulatory disclosures.

Michael Peppler              -                    Peppler Consulting =20
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-12-469829372
Content-Type: text/html;
	charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; ">Here's some information from a =
friend at Sybase:<div><br></div><div><span class=3D"Apple-style-span" =
style=3D"font-family: -webkit-monospace; ">Yes, I think it is new with =
15.0:<br><br>=46rom the New Features Guide:<br>&nbsp;&nbsp;<a =
href=3D"http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc20=
155.1500/html/newfesd/CEGFIJIH.htm">http://infocenter.sybase.com/help/topi=
c/com.sybase.infocenter.dc20155.1500/html/newfesd/CEGFIJIH.htm</a><br><br>=
=46rom the Programmer's Supplement, Building a DB-Library =
executable:<br>&nbsp;&nbsp;<a =
href=3D"http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc35=
456.1500/html/ocspsunx/ocspsunx52.htm">http://infocenter.sybase.com/help/t=
opic/com.sybase.infocenter.dc35456.1500/html/ocspsunx/ocspsunx52.htm</a><b=
r><br>=46rom the Programmer's Supplement, Building a CT-Library =
executable:<br>&nbsp;&nbsp;<a =
href=3D"http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc35=
456.1500/html/ocspsunx/X61680.htm">http://infocenter.sybase.com/help/topic=
/com.sybase.infocenter.dc35456.1500/html/ocspsunx/X61680.htm</a><br>&nbsp;=
&nbsp;<a =
href=3D"http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc35=
456.1500/html/ocspsunx/ocspsunx7.htm">http://infocenter.sybase.com/help/to=
pic/com.sybase.infocenter.dc35456.1500/html/ocspsunx/ocspsunx7.htm</a><br>=
<br>All of the samples also illustrate the proper =
linking.<br><br></span></div><div><font class=3D"Apple-style-span" =
face=3D"-webkit-monospace">You should be able to add the library to the =
EXTRA_LIBS line in the CONFIG file, and then =
rebuild.</font></div><div><font class=3D"Apple-style-span" =
face=3D"-webkit-monospace"><br></font></div><div><font =
class=3D"Apple-style-span" =
face=3D"-webkit-monospace">Michael</font></div><div><font =
class=3D"Apple-style-span" =
face=3D"-webkit-monospace"><br></font></div><div><font =
class=3D"Apple-style-span" =
face=3D"-webkit-monospace"><br></font><div><div>On May 21, 2009, at 8:15 =
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 Michael,</font> <br> <br><font =
size=3D"2" face=3D"sans-serif">Thanks a lot for helping on this =
issue.</font> <br> <br><font size=3D"2" face=3D"sans-serif">I have =
verified LD_LIBRARY_PATH, &nbsp;contains sybase library path.</font> =
<br> <br><font size=3D"2" face=3D"sans-serif">Please guide me to =
</font><font size=3D"3">add -lsybunic to the link line</font><font =
size=3D"2" face=3D"sans-serif">.</font> <br> <br> <br><font size=3D"2" =
face=3D"sans-serif">$ echo $LD_LIBRARY_PATH</font> <br><font size=3D"2" =
face=3D"sans-serif">/export/data/sybase/ocs/15.0.0/OCS-15_0/lib</font> =
<br><font size=3D"2" face=3D"sans-serif"><br> <br> <br> <br> Thanks =
&amp; Regards, <br> Raljith Sudesan, <br> HCL Technologies Ltd, Vertex, =
Tech Park No. 564, <br> Whitefield Road, Behind ITPL, &nbsp;Banglore- =
560066 <br> Work - +91-80-4187 3044 <br> <a =
href=3D"http://www.hcl.in">www.hcl.in</a> <br> <br> LASER Service Desk =
<br> Tel:UK 71004: Europe: (8854) 71004 ; US: (250) 2121: Canada: =
4166828480 ; APAC: +81351564400: Tokyo: 0351564400 <br> Email : LASER =
Support <br> <br> This mail is transmitted to you on behalf of HCL =
Technologies. <br> Diese Post wird Ihnen im Namen der HCL Technologies =
=FCbermittelt </font> <br> <br> <br> <table width=3D"100%"> <tbody><tr =
valign=3D"top"> <td width=3D"40%"><font size=3D"1" =
face=3D"sans-serif"><b>Michael Peppler &lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>></b> =
</font><p><font size=3D"1" face=3D"sans-serif">05/20/2009 07:59 =
PM</font> </p></td><td width=3D"59%"> <table width=3D"100%"> <tbody><tr =
valign=3D"top"> <td> <div align=3D"right"><font size=3D"1" =
face=3D"sans-serif">To</font></div> </td><td><font size=3D"1" =
face=3D"sans-serif">Raljith Sudesan/ext/dbcom@DBEMEA</font> =
</td></tr><tr valign=3D"top"> <td> <div align=3D"right"><font size=3D"1" =
face=3D"sans-serif">cc</font></div> </td><td><font size=3D"1" =
face=3D"sans-serif"><a =
href=3D"mailto:[email protected]">[email protected]</a></font> =
</td></tr><tr valign=3D"top"> <td> <div align=3D"right"><font size=3D"1" =
face=3D"sans-serif">Subject</font></div> </td><td><font size=3D"1" =
face=3D"sans-serif">Re: Sybperl-2.18 installation =
issues</font></td></tr></tbody></table> <br> <table> <tbody><tr =
valign=3D"top"> <td> </td><td></td></tr></tbody></table> =
<br></td></tr></tbody></table> <br> <br> <br><font size=3D"3">On May 20, =
2009, at 8:24 AM, Raljith Sudesan wrote:</font> <br> <br><font size=3D"2" =
face=3D"sans-serif"><br> Hi,</font><font size=3D"3"> <br> </font><font =
size=3D"2" face=3D"sans-serif"><br> I got the contact details from =
"README" &nbsp;and "FAQ" documents shipped with sybperl. </font><font =
size=3D"3"><br> </font><font size=3D"2" face=3D"sans-serif"><br> I am =
trying to install Sybperl-2.18 in Sunsolaris 10 &nbsp;machine with <br> =
&nbsp; &nbsp; &nbsp; &nbsp;1) Sybase 15 open client installation. <br> =
&nbsp; &nbsp; &nbsp; &nbsp;2) Perl5 version 5.8.4 =
installation.</font><font size=3D"3"> </font><font size=3D"2" =
face=3D"sans-serif"><br> &nbsp; &nbsp; &nbsp; &nbsp;3) Sun Studio 12 =
installation.</font><font size=3D"3"> </font><font size=3D"2" =
face=3D"sans-serif"><br> &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><font =
size=3D"3"> <br> </font><font size=3D"2" face=3D"sans-serif"><br> "Make =
test" fails and getting below error messages. <br> Please help me to =
sort this out.</font><font size=3D"3"> </font><font size=3D"2" =
face=3D"sans-serif"><br> <br> <br> ROOT@fxbobd2 [DEV Build] =
/home/fxbdev/Raljith/sybperl-2.18# make</font><font size=3D"3"> =
</font><font size=3D"2" face=3D"sans-serif"><br> 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><font size=3D"3"> =
</font><font size=3D"2" face=3D"sans-serif"><br> Running Mkbootstrap for =
Sybase::CTlib ()</font><font size=3D"3"> </font><font size=3D"2" =
face=3D"sans-serif"><br> chmod 644 CTlib.bs</font><font size=3D"3"> =
</font><font size=3D"2" face=3D"sans-serif"><br> rm -f =
../blib/arch/auto/Sybase/CTlib/CTlib.so</font><font size=3D"3"> =
</font><font size=3D"2" face=3D"sans-serif"><br> =
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><font size=3D"3"> </font> <br> =
<br> <br><font size=3D"2" face=3D"sans-serif">ROOT@fxbobd2 [DEV Build] =
/home/fxbdev/Raljith/sybperl-2.18# make test</font><font size=3D"3"> =
</font><font size=3D"2" face=3D"sans-serif"><br> PERL_DL_NONLAZY=3D1 =
/usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, =
'blib/lib', 'blib/arch')" t/*.t</font><font size=3D"3"> </font><font =
size=3D"2" face=3D"sans-serif"><br> 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. =
</font><font size=3D"3">&nbsp;</font> <br> <br><font size=3D"3">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.</font> <br> <br><font =
size=3D"3">Michael</font> <br><font size=3D"3">--</font> <br><font =
size=3D"1">Michael Peppler &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;Peppler Consulting SaRL</font> <br><font size=3D"1"><a =
href=3D"mailto:[email protected]">[email protected]</a> &nbsp; =
&nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; </font><a href=3D"http://www.peppler.org/"><font =
size=3D"1" color=3D"blue"><u>http://www.peppler.org</u></font></a> =
<br><font size=3D"1">Sybase DBA/Developer &nbsp; &nbsp; &nbsp; &nbsp; - =
&nbsp; &nbsp; &nbsp;TeamSybase: </font><a =
href=3D"http://www.teamsybase.com/"><font size=3D"1" =
color=3D"blue"><u>http://www.teamsybase.com</u></font></a> <br><font =
size=3D"1">Sybase on Linux FAQ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- =
&nbsp; &nbsp; &nbsp;</font><a =
href=3D"http://www.peppler.org/FAQ/linux.html"><font size=3D"1" =
color=3D"blue"><u>http://www.peppler.org/FAQ/linux.html</u></font></a> =
<br> <br> <br> <br> <br> <br> <span =
style=3D"font-family:sans-serif,helvetica; font-size:10pt; =
color:#000000">---<br> <br> 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.<br> <br> Please =
refer to <a =
href=3D"http://www.db.com/en/content/eu_disclosures.htm">http://www.db.com=
/en/content/eu_disclosures.htm</a> for additional EU corporate and =
regulatory disclosures.</span><br></blockquote></div><br><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></div></body></html>=

--Apple-Mail-12-469829372--