Skip to Content.
Sympa Menu

freetds - [freetds] Problems Installing DBD::Sybase 1.07 on HPUX 11

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: <declan.watts AT bt.com>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: [freetds] Problems Installing DBD::Sybase 1.07 on HPUX 11
  • Date: Mon, 23 Oct 2006 18:01:23 +0100

Calling all DBD::Sybase experts...

I am trying to install DBD::Sybase on a HPUX 11 server, but cannot get
it to work.
I don't mind if it is not version 1.07, i just need it to work!

I have Freetds installed and can connect to various servers using it's
tsql command.

I have set SYBASE=/usr/local/freetds
I have set SHLIB_PATH=/usr/local/freetds/lib

The Perl version is 5.8.8

Calling make, I get this:
# make
cp dbd-sybase.pod blib/lib/DBD/dbd-sybase.pod
cp Sybase.pm blib/lib/DBD/Sybase.pm
/usr/bin/perl -p -e "s/~DRIVER~/Sybase/g"
/opt/perl_32/lib/site_perl/5.8.8/PA-RISC1.1-thread-multi/auto/DBI//Drive
r.xst > Sybase.xsi
/usr/bin/perl /opt/perl_32/lib/5.8.8/ExtUtils/xsubpp -typemap
/opt/perl_32/lib/5.8.8/ExtUtils/typemap Sybase.xs > Sybase.xsc && mv
Sybase.xsc Sybase.c
gcc -c -I/usr/local/freetds/include -DNO_THREADS
-I/opt/perl_32/lib/site_perl/5.8.8/PA-RISC1.1-thread-multi/auto/DBI
-D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC
-DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -pipe -DVERSION=\"1.07\"
-DXS_VERSION=\"1.07\" -fPIC
"-I/opt/perl_32/lib/5.8.8/PA-RISC1.1-thread-multi/CORE" Sybase.c
gcc -c -I/usr/local/freetds/include -DNO_THREADS
-I/opt/perl_32/lib/site_perl/5.8.8/PA-RISC1.1-thread-multi/auto/DBI
-D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC
-DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -pipe -DVERSION=\"1.07\"
-DXS_VERSION=\"1.07\" -fPIC
"-I/opt/perl_32/lib/5.8.8/PA-RISC1.1-thread-multi/CORE" dbdimp.c
dbdimp.c: In function '_dbd_rebind_ph':
dbdimp.c:4779: warning: passing argument 2 of 'to_binary' from
incompatible pointer type
Running Mkbootstrap for DBD::Sybase ()
chmod 644 Sybase.bs
rm -f blib/arch/auto/DBD/Sybase/Sybase.sl
LD_RUN_PATH="/usr/local/freetds/lib" gcc
-L/usr/local/freetds/lib -shared -static-libgcc -fPIC Sybase.o
dbdimp.o -o blib/arch/auto/DBD/Sybase/Sybase.sl \
-L/usr/local/freetds/lib -lct -ltds -lm \

chmod 755 blib/arch/auto/DBD/Sybase/Sybase.sl
cp Sybase.bs blib/arch/auto/DBD/Sybase/Sybase.bs
chmod 644 blib/arch/auto/DBD/Sybase/Sybase.bs
Manifying blib/man3/DBD::Sybase.3
#

Then make test fails everything with comments like:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/autocommit....ok 1/9/usr/lib/dld.sl: Bad magic number for shared
library: blib/arch/auto/DBD/Sybase/Sybase.sl
/usr/lib/dld.sl: Exec format error
and
install_driver(Sybase) failed: Can't load
'/tmp/DBD-Sybase-1.07/blib/arch/auto/DBD/Sybase/Sybase.sl' for module
DBD::Sybase: Exec format error at
/opt/perl_32/lib/5.8.8/PA-RISC1.1-thread-multi/DynaLoader.pm line 230.
at (eval 4) line 3
Compilation failed in require at (eval 4) line 3.
Perhaps a required shared library or dll isn't installed where expected

There are lots and lots of such comments.
This is a bit of a shock as I've never had a problem like this on
Solaris!.
Any advice greatly appreciated.

Declan Watts





  • [freetds] Problems Installing DBD::Sybase 1.07 on HPUX 11, declan.watts, 10/23/2006

Archive powered by MHonArc 2.6.24.

Top of Page