I'm looking for some help in getting DBD::Sybase to work using FreeTDS.
We're not able to use the old Sybase OC/S ASE software due to compatibilty
with MSSQL Server 2000 (different TDS versions) and we have some experience
using TDS. We're targetting both legacy Sybase servers as well as new MS
Per the FreeTDS webpage, with respect to language bindings, the text
mentions that "... DBD::Sybase works very well using FreeTDS to access
Sybase or Microsoft SQL Servers." I've not been able to get this working as
of yet. The tests are failing. I've found references in various place to
the error shown below, but so far no solution found. Again, we're targeting
FreeTDS and not the Sybase ASE OC/S libs.
install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase: ld.so.1:
/.../usr/local/bin/perl: fatal: libgcc_s.so.1: open failed: No such file or
directory at /.../usr/local/lib/perl5/5.00503/sun4-solaris/DynaLoader.pm
(path info edited for brevity).
I have defined SYBASE to point to where I have FreeTDS installed per the
Perl 5 version info:
(NOTE! Per CPAN web page concerning building perl with gcc 3.0.3,
option -Wl,-E was added to get this to compile properly.
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
osname=solaris, osvers=2.7, archname=sun4-solaris
uname='sunos vntwb1da 5.7 generic_106541-19 sun4u sparc sunw,ultra-80 '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
cc='gcc -B/usr/ccs/bin/', optimize='-O', gccversion=3.0.3
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc -B/usr/ccs/bin/ -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
libc=, so=so, useshrplib=false, libperl=libperl.a
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-Wl,-E -G -L/usr/local/lib'
Characteristics of this binary (from libperl):
Built under solaris
Compiled at Oct 17 2002 18:01:40
I've compiled and tested FreeTDS using gcc 3.0.3 (gcc was already
installed). FreeTDS is under the /devel/user/local path.
I also compiled and tested DBI-1.30, and installed this in the
/devel/usr/local path as well.
The problem is that DBD-Sybase-0.94_02 tests are failing as shown above.
If anyone has any experience with integrating DBD-Sybase with FreeTDS on
Solaris using gcc it would be much appreciated if you could help out here.
I have more info on this process, but did not want to put all of that in
this message. This problem appears to have been around for a while, but
I've never seen any solutions for it.
Thanks in advanced.
j d wilson