Skip to Content.
Sympa Menu

freetds - Re: Using DBD::Sybase and Sybperl to access MS SQL

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Bob Kline <bkline AT rksystems.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Using DBD::Sybase and Sybperl to access MS SQL
  • Date: Tue, 14 Sep 1999 14:26:34 -0400 (EDT)


On Tue, 14 Sep 1999, Adriano Nagelschmidt Rodrigues wrote:

> Hello list,
>
> I have to access a MS SQL 6.5 server from my Linux Redhat 5.2 machine (using
> Perl).
>
> I installed FreeTDS 4.6 and am trying to make either DBD::Sybase or Sybperl
> work, but without any success.
>
> DBD::Sybase 0.19 compiles ok (I removed all references to libtcl from
> Makefile.PL), but make test fails:
>
> [snoopy2:~/src/DBD-Sybase-0.19] $ make test
> PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
> -I/usr/lib/perl5/i386-linux/5.00405 -I/usr/lib/perl5 -e 'use Test::Harness
> qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/autocommit........Unknown property 7
> Unknown property 13
>
> DBD::Sybase 0.20 fails to compile:
>
> [snoopy2:~/src/DBD-Sybase-0.20] $ make
> cc -c -I/usr/local/freetds/include
> -I/usr/lib/perl5/site_perl/i386-linux/auto/DBI -Dbool=char -DHAS_BOOL -O2
> -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" -fpic
> -I/usr/lib/perl5/i386-linux/5.00405/CORE dbdimp.c
> dbdimp.c: In function `syb_init':
> dbdimp.c:436: `CS_VER_STRING' undeclared (first use this function)
>
> With sybperl 2.10, make test generates
>
> PERL_DL_NONLAZY=1 /usr/bin/perl -I.././blib/arch -I.././blib/lib
> -I/usr/lib/perl5/i386-linux/5.00405 -I/usr/lib/perl5 -e 'use Test::Harness
> qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/bcp...............Can't call method "sql" on an undefined value at t/bcp.t
> line 47.
> dubious
> Test returned status 22 (wstat 5632, 0x1600)
> DIED. FAILED tests 2-9
> Failed 8/9 tests, 11.11% okay
>
> Any ideas? Maybe something I missed in the CONFIG file?
>

I hit the same conditions you did. I gave up on 0.20 and ignored the
make test failures with 0.19 and installed anyway. Seems to work so
far, but I haven't done a lot to shake it down. I'm even talking to SQL
Server 7.0. I get "Unknown property ..." messages at startup every
time, but then it ploughs ahead and runs queries and stored procedures.

--
Bob Kline
mailto:bkline AT rksystems.com
http://www.rksystems.com





Archive powered by MHonArc 2.6.24.

Top of Page