Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Byington, Allen" <allen dot byington at dexmedia dot com>
Subject: RE: DBD::Sybase compile error when compiling for 64 bit perl unde r HP -UX.
Date: Oct 28 2003 12:44PM

I'll make the changes to the make file to add the 64 to the -l options and
see what I get.  In the meantime, here is a listing of my OCS libs

libintl_r.a             libsrv64.a    
libblk_r.a              libcs_r.a                    libtcl_r.a
libcobct.a                      libsrv_r.a    
libcobct_r.a            libct.a                    libxadtm.a
libcomn.a                         libsrv_r64.a                libct_r.a     
libsmapp.a              libsybdb.a                libintl.a
libcs.a                      libtcl.a

I did uncomment the 64 bit option in the CONFIG file as well.  It just seems
to me that ASE 12 on HP-UX wasn't a full 64 bit build of Sybase.  Thanks for
the quick response!  I've been fighting this battle for several days now and
not making any headway.


Allen Byington

-----Original Message-----
From: Michael Peppler [] 
Sent: Monday, October 27, 2003 4:18 PM
To: Byington, Allen
Cc: ''
Subject: Re: DBD::Sybase compile error when compiling for 64 bit perl under

On Mon, 2003-10-27 at 12:50, Byington, Allen wrote:
> Hello
> I've been trying to get a reasonably complete perl compiled under 64 
> bit and I've run into a bit of a roadblock.  The machine I am 
> compiling on is an HP-UX 11.00/64bit os with Sybase ASE 12.0 EBF 9919 
> installed.  From the compile errors I've seen, I don't seem to have 
> everything in the OCS to run pure 64 bit.  There are files missing 
> that I believe the compiler is looking for.

> Compile Errors:
>         rm -f blib/arch/auto/DBD/Sybase/
>         LD_RUN_PATH="/opt/syb12/OCS-12_0/lib:/lib/pa20_64"
> /usr/bin/ld  -L/opt/syb12/OCS-12_0/lib -b +vnocompatwarnings 
> -L/usr/local/lib -L/lib/pa20_64 Sybase.o  dbdimp.o  -o
> blib/arch/auto/DBD/Sybase/   -L/opt/syb12/OCS-12_0/lib -lct
> -lcs -ltcl -lcomn -lintl -linsck64 -ldl -lm
> ld: Mismatched ABI (not an ELF file) for -lct

If you are building in 64 bit mode then you would normally use the -lct64
library (and -lcs64, etc).

Did you set the BUILD_TYPE=64 entry in the CONFIG file?

Do you have the lib??? files in your OCS lib directory?

Michael Peppler                              Data Migrations, Inc.       
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or 
long term contract positions -