Operating System - HP-UX
1849807 Members
2421 Online
104044 Solutions
New Discussion

Problem compiling DBD::Sybase under HPUX 11

 

Problem compiling DBD::Sybase under HPUX 11

I have been trying to get both the DBD::Oracle and DBD::Sybase into the new perl distribution on my system and I have had some measure of success with the oracle driver. Sybase, however, has stymied me. Her is the error I see when trying to compile the sybase driver either with sybase 11.9.2 or sybase 12 on a 64 bit system:

LD_RUN_PATH="/opt/sybase/lib" /usr/bin/ld -L/opt/sybase/lib -b -L/usr/local/pa20_64/lib -L/lib/pa20_64 Sybase.o dbdimp.o -o blib/arch/auto/DBD/Sybase/Sybase.sl -L/opt/sybase/lib -lct -lcs -ltcl -lcomn -lintl -ldl -lm
ld: Mismatched ABI (not an ELF file) for -lct
Fatal error.
*** Error exit code 1

Stop.

I'll attach the log from the compile as well as the environment variables that are set. Any thoughts would be appreciated.
The possibilities for disaaster boggle the mind!
5 REPLIES 5
Amin Jaffer_1
Occasional Advisor

Re: Problem compiling DBD::Sybase under HPUX 11


it is something to do with compile flags, it could be the library are of the same, i.e. libct.a is built with 32 bit and the other objects are built with 64 bit.

using file or may be odump command might tell information regarding the library
ranganath ramachandra
Esteemed Contributor

Re: Problem compiling DBD::Sybase under HPUX 11

perhaps the PA64 libraries are in /opt/sybase/lib/pa20_64 so you have to change -L/opt/sybase/lib to
-L/opt/sybase/lib/pa20_64 ?
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

ranganath ramachandra
Esteemed Contributor

Re: Problem compiling DBD::Sybase under HPUX 11

if you're building /opt/sybase/lib/libct.sl add +DD64 to CCOPTS
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

Donny Jekels
Respected Contributor

Re: Problem compiling DBD::Sybase under HPUX 11

Allen,

rebuild -lct at 64bits, you should be set.

or search your system for a 64 bit library for lct.
then add that directory to your LDFLAGS

export LDFLAGS="-L/soemdir -L/anotherdir etc"

also put that dir in your PATH

recompile.
"Vision, is the art of seeing the invisible"

Re: Problem compiling DBD::Sybase under HPUX 11

As it turns out, Sybase doesn't have a complete build of the open client for 64 bit HP-UX. Therefore, the ctlibs and a few others are still at 32 bit and not compatible with this build. Sybase has the media for the 12_5 open client at 64 bit in the mail to me and I'll post again if I still can't get it to build. Thanks a bunch everybody for the advice, all of which I will probably need to do with the new open client.
The possibilities for disaaster boggle the mind!