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: "Dave Warchol" <Warchol at harthosp dot org>
Subject: Re: DBD::Sybase Problem, Make Ok, Make Test Fails, Solaris 9, Perl 5.8.5
Date: Jun 3 2005 1:56PM

All:
          DBD::Sybase-1.04 installs just fine.  I went through the archives with a little more gusto and found this:

> -----Original Message-----
> From: michael.peppler@bnpparibas.com 
> [mailto:michael.peppler@bnpparibas.com] 
> Sent: Wednesday, April 27, 2005 9:38 AM
> To: psinnottie@aol.com 
> Cc: Meeilei.Chen@kcc.com; sybperl-l@peppler.org 
> Subject: Re: Unresolved symbol:blk_bid from Sybase.sl
> 
> 
> The problem is the missing -lblk library. Perl's default behavior of
> listing this as probably harmless is incorrect -
> the -lblk library is necessary to building DBD::Sybase. Unfortunately
> this
> library isn't always included in the
> server version of the OCS package. You may need to install the full SDK.
> Alternatively you can download DBD::Sybase 1.04 which should build
> without
> the -lblk dependency.
> 
> I should probably detect this situation and make the BLK dependency
> optional.
> 
> Michael
> 
> 
> 
> 
> Internet
> psinnottie@aol.com@peppler.org - 27/04/2005 16:27


Thanks
Dave

>>> "Dave Warchol"  6/2/2005 3:35:01 PM >>>
Hello:

     I have installed different versions of the module manually in the past, this is the first time I've run into an issue.  DBI -- 1.48 is installed.  I'm installing using CPAN.

One comment from the make.

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lblk

I looked around the archives at similar problems and saw the comments about /usr/lib needing to appear after the $SYBASE/lib stuff, so 
the environment info looks like: 

hcuxsstest01# echo $LD_LIBRARY_PATH
/sybase/r12.5/lib:/sybase/r12.5/ASE-12_5/lib:/sybase/r12.5/OCS-12_5/lib:/usr/lib
hcuxsstest01# uname -a    
SunOS hcuxsstest01 5.9 Generic_118558-05 sun4u sparc SUNW,Ultra-4
hcuxsstest01# 

Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/autocommit....NOK 2#     Failed test (t/autocommit.t at line 18)           
#     Tried to use 'DBD::Sybase'.
#     Error:  Can't load 'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase: ld.so.1: /usr/local/bin/perl: fatal: relocation error: file blib/arch/auto/DBD/Sybase/Sybase.so: symbol blk_done: referenced symbol not found at /usr/local/lib/perl5/5.8.5/sun4-solaris/DynaLoader.pm line 230.
#  at (eval 2) line 2
# Compilation failed in require at (eval 2) line 2.
Had to create DBD::Sybase::dr::imp_data_size unexpectedly at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 1167.
Use of uninitialized value in subroutine entry at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 1167.
Had to create DBD::Sybase::db::imp_data_size unexpectedly at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 1167.
Use of uninitialized value in subroutine entry at /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm line 1167.
Undefined subroutine &DBD::Sybase::db::_login called at blib/lib/DBD/Sybase.pm line 94.

hcuxsstest01# pwd
/.cpan/build/DBD-Sybase-1.05
hcuxsstest01# ldd blib/arch/auto/DBD/Sybase/Sybase.so   
        libct.so =>      /sybase/r12.5/OCS-12_5/lib/libct.so
        libcs.so =>      /sybase/r12.5/OCS-12_5/lib/libcs.so
        libtcl.so =>     /sybase/r12.5/OCS-12_5/lib/libtcl.so
        libcomn.so =>    /sybase/r12.5/OCS-12_5/lib/libcomn.so
        libintl.so =>    /sybase/r12.5/OCS-12_5/lib/libintl.so
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
hcuxsstest01# 

Any help would be very much appreciated.

Thanks
Dave







Dave Warchol
Technical Consultant
Hartford Hospital
Infomation Services
80 Seymour Street
Hartford, CT 06102  USA

Voice:  860.545.4222
Cell:  860.250.7253
Fax:  860.545.3321
warchol@harthosp.org 




-----------------------------------------------
Confidentiality Notice

This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information which is legally privileged.  Any unauthorized review, use, disclosure, or distribution is prohibited.  If you are not the intended recipient, please promptly contact the sender by reply e-mail and destroy all copies of the original message.




-----------------------------------------------
Confidentiality Notice

This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information which is legally privileged.  Any unauthorized review, use, disclosure, or distribution is prohibited.  If you are not the intended recipient, please promptly contact the sender by reply e-mail and destroy all copies of the original message.