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: Problems building 64-bit sybperl against ASE-12.5.2 (Solaris 9) w ithout -DNOBLK
Date: Jul 22 2004 5:44AM

On Wed, 2004-07-21 at 21:10, Storie, Sam [EPM/RTC] wrote:
> > Could you send me a full trace of the make (starting with "perl
> > Makefile.PL")?
> > 
> 
> I did make some (small) changes to make the Makefiles since we use the
> SFWgcc33 package as our compiler suite. That is why you see a
> fix-makefile.sh
> file cat'd below.
> 
> Please let me know if there's anything else I can provide.
> 
> ---------------------------------------
> 
> [root@blackbirdnew: /usr/local/src/sybperl-2.17]# ls -al
> /db/sybase/OCS-12_5/lib
> total 58844
> drwxr-xr-x   3 sybase   sybase      1536 Jul 21 10:51 .
> drwxr-xr-x  12 sybase   sybase       512 Jul 14 08:47 ..
> -rw-r--r--   1 sybase   sybase    292864 Mar  9 21:52 libblk64.a
> -rw-r--r--   1 sybase   sybase    301584 Mar 10 01:04 libblk_r64.a
> -rwxr-xr-x   1 sybase   sybase    769108 Mar  9 20:32 libcomn.so



> [root@blackbirdnew: /usr/local/src/sybperl-2.17]# perl Makefile.PL
> Sybase OpenClient 12.5.1 found.
> The sybperl modules need access to a Sybase server to run the tests.
> To clear an entry please enter 'undef'
> Sybase server to use (default: SYBASE): alpha
> User ID to log in to Sybase (default: sa): 
> Password (default: undef): 
> Sybase database to use on alpha (default: undef): 
> 
> * Writing login information, including password, to file PWD.
> 
> Checking if your kit is complete...
> Looks good
> Sybase OpenClient 12.5.1 found.
> Writing Makefile for Sybase::BCP
> Writing Makefile for Sybase::BLK
> Note (probably harmless): No library found for -lblk
> Writing Makefile for Sybase::CTlib



> LD_RUN_PATH="/db/sybase/OCS-12_5/lib:/lib" gcc 
> -L/db/sybase/OCS-12_5/lib -G CTlib.o  -o ../blib/arch/a
> uto/Sybase/CTlib/CTlib.so   -L/db/sybase/OCS-12_5/lib -lct -lcs -ltcl
> -lcomn -lintl -lm  

Note the libraries that it is linking with (-lct, -lcs rather than
-lct64, -lcs64).

You are building in 32bit mode, which means that sybperl needs the
libblk.a file, which isn't included in your directory.

Two options:

1. Rebuild perl with the use64bitall flag turned on. This should then
cause the sybperl build to use the 64 bit libraries as well.

2. Contact Sybase to get the missing libblk.a file.

Michael
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org                       http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short
or long term contract positions - http://www.peppler.org/resume.html