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: "jie li" <lijie27 at hotmail dot com>
Subject: (no subject)
Date: Dec 18 1997 10:36AM

Hi,

We've got problems when installing Sybperl 2.08.
The platform is IRIX6.4, with 
Sybase SQL Server 11.02, 
Sybase Open Client for IRIX5.3 10.02, 
C 7.1, and 
perl 5.004_04 built for IP27-irix.
The default compiler option is "cc -n32".

We have these file under $SYBASE:
*********************
libblk.a     libcs.a      libct.so     libintl.a    libsybdb.so
libcomn.a    libcs.so     libinsck.a   libintl.so   libtcl.a
libcomn.so   libct.a      libinsck.so  libsybdb.a   libtcl.so
*********************

And I have link then under /usr/lib32.

The problems are:
1, When compiling programs in C, we must use "cc -32", else it will 
output:
######### Begin of Output #################
# make example1
        cc   -cckr   -I. -I/usr/sybase/include example1.c 
/usr/sybase/lib/libsybdb.a -lm -o example1
ld32: FATAL 112: cannot link old 32-bit object with -n32 link: 
/usr/sybase/lib/l
ibsybdb.a(dbsqlexec.o).
*** Error code 2 (bu21) 

2, "perl Makefile.PL" is ok, only got "No library found for -ltli".
Then we "make". If we use "cc -32" for default, we couln't succeed. 
We must use "cc -n32" for "make".

3, After "make", we got errors again when "make test":
#make test
        PERL_DL_NONLAZY=1 /bin/perl -I.././blib/arch -I.././blib/lib 
-I/usr/loca
l/lib/perl5/IP27-irix/5.00404 -I/usr/local/lib/perl5 -e 'use 
Test::Harness qw(&r
untests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/bcp...............Can't load 
'.././blib/arch/auto/Sybase/DBlib/DBlib.so' for m
odule Sybase::DBlib:  1910:/bin/perl: rld: Fatal Error: cannot 
successfully map
soname 'libsybdb.so' under any of the filenames 
/usr/lib32/libsybdb.so:/lib32/li
bsybdb.so:/usr/libn32/libsybdb.so:/libn32/libsybdb.so:  at 
/usr/local/lib/perl5/
IP27-irix/5.00404/DynaLoader.pm line 166.

 at .././blib/lib/Sybase/BCP.pm line 277
BEGIN failed--compilation aborted at .././blib/lib/Sybase/BCP.pm line 
277.
BEGIN failed--compilation aborted at t/bcp.t line 12.
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-9
        Failed 9/9 tests, 0.00% okay
Failed Test  Status Wstat Total Fail  Failed  List of failed
-------------------------------------------------------------------------------
t/bcp.t           2   512     9    9 100.00%  1-9
Failed 1/1 test scripts, 0.00% okay. 9/9 subtests failed, 0.00% okay.
*** Error code 2 (bu21)
*** Error code 1 (bu21)

############ End of Output #######################

4, After "make install", I tried a program, the output is :

############# Begin of Output ####################
#./lijiebro.pl
Can't load 
'/usr/local/lib/perl5/site_perl/IP27-irix/auto/Sybase/DBlib/DBlib.so'
 for module Sybase::DBlib:  1912:/usr/local/bin/perl: rld: Fatal 
Error: cannot successfully map soname 'libsybdb.so' under any of the 
filenames 
/usr/lib32/libsybdb.so:/lib32/libsybdb.so:/usr/libn32/libsybdb.so:
/libn32/libsybdb.so:  at 
/usr/local/lib/perl5/IP27-irix/5.00404/DynaLoader.pm line 166.

 at /usr/local/lib/perl5/site_perl/Sybase/Sybperl.pm line 43
BEGIN failed--compilation aborted at 
/usr/local/lib/perl5/site_perl/Sybase/Sybperl.pm line 43.
BEGIN failed--compilation aborted at 
/usr/local/lib/perl5/site_perl/sybperl.pl line 16.

######### End of Output ########################

I have first linked and then copied the file "libsybdb.so" under
"/usr/lib32".

Please help me.
Thanks.

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com