DBD::Sybase installation troubles

Vincent Prosper vince at assurdiscount.com
Thu Oct 14 15:46:02 EDT 1999

On Thu, 14 Oct 1999, Michael Peppler wrote:

#You should use DBD::Sybase with the freetds libraries. DBD::FreeTDS
#implements its own protocol handling directly.

Thank you.
OK, I followed your suggestion (despite the fact I have no idea about how
querying a MS SQL server from a Sybase driver :-( ), in particular what are
the right specification for the port number on a NT machine?

So here are the commands I typed as root, followed by their results:

bash-2.02# cd freetds
bash-2.02# ./configure --with-tdsver=4.2

<everything OK here>

bash-2.02# make
Making all in src
make[1]: Entering directory `/users/vince/tmp/FREETDS/freetds/src'
Making all in tds
make[2]: Entering directory `/users/vince/tmp/FREETDS/freetds/src/tds'
/bin/sh ../../libtool --mode=compile gcc -DPACKAGE=\"freetds\"
-DHAVE_STRFTIME=1 -DHAVE_SOCKET=1  -I. -I.  -I../../include    -g -O2

<everything OK here also>

bash-2.02# SYBASE=/usr/local/freetds
bash-2.02# export SYBASE LD_LIBRARY_PATH
bash-2.02# cd ../DBD-Sybase-0.21
bash-2.02# vi CONFIG                     <editing CONFIG file>
          SYBASE=/usr/local/freetds      <changing this for linux>
          EXTRA_LIBS=-linsck             <and this>
bash-2.02# perl Makefile.PL 
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lcs
Note (probably harmless): No library found for -lsybtcl
Note (probably harmless): No library found for -lcomn
Note (probably harmless): No library found for -lintl
Using DBI 1.06 installed in /usr/lib/perl5/site_perl/5.005/i586-linux/auto/DBI
Writing Makefile for DBD::Sybase
bash-2.02# make test
mkdir blib
mkdir blib/lib
mkdir blib/lib/DBD
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/DBD
mkdir blib/arch/auto/DBD/Sybase
mkdir blib/lib/auto
mkdir blib/lib/auto/DBD
mkdir blib/lib/auto/DBD/Sybase
mkdir blib/man3
cp Sybase.pm blib/lib/DBD/Sybase.pm
cp dbd-sybase.pod blib/lib/DBD/dbd-sybase.pod
/usr/bin/perl -p -e "s/~DRIVER~/Sybase/g" <
/usr/lib/perl5/site_perl/5.005/i586-linux/auto/DBI/Driver.xst > Sybase.xsi
/usr/bin/perl -I/usr/lib/perl5/5.00502/i586-linux -I/usr/lib/perl5/5.00502
/usr/lib/perl5/5.00502/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.00502/ExtUtils/typemap Sybase.xs >Sybase.tc && mv Sybase.tc
cc -c -I/usr/local/freetds/include
-I/usr/lib/perl5/site_perl/5.005/i586-linux/auto/DBI -Dbool=char -DHAS_BOOL
-I/usr/local/include -O2 -pipe    -DVERSION=\"0.21\" -DXS_VERSION=\"0.21\"
-fpic -I/usr/lib/perl5/5.00502/i586-linux/CORE  Sybase.c
cc -c -I/usr/local/freetds/include
-I/usr/lib/perl5/site_perl/5.005/i586-linux/auto/DBI -Dbool=char -DHAS_BOOL
-I/usr/local/include -O2 -pipe    -DVERSION=\"0.21\" -DXS_VERSION=\"0.21\"
-fpic -I/usr/lib/perl5/5.00502/i586-linux/CORE  dbdimp.c
dbdimp.c: In function `syb_init':
dbdimp.c:455: `CS_VER_STRING' undeclared (first use in this function)
dbdimp.c:455: (Each undeclared identifier is reported only once
dbdimp.c:455: for each function it appears in.)
dbdimp.c: In function `syb_db_connect':
dbdimp.c:811: `CS_OPT_QUOTED_IDENT' undeclared (first use in this function)
dbdimp.c: In function `syb_db_STORE_attrib':
dbdimp.c:1197: `CS_OPT_QUOTED_IDENT' undeclared (first use in this function)
make: *** [dbdimp.o] Error 1

Have you any idea about that error?
What must I do next?

Thanks a lot in advance for your reply.


More information about the FreeTDS mailing list