Skip to Content.
Sympa Menu

freetds - Can't compile DBD::Sybase under Solaris 2.6

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Sam Denton <denton AT wantec.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Can't compile DBD::Sybase under Solaris 2.6
  • Date: Wed, 23 Jan 2002 17:57:08 -0600


I need to talk to SQL Server 2000 from Perl on a Solaris 2.6 box. After a
bit of investigation, I downloaded freetds 0.52 and installed it with no
apparent problems. Then, I set my SYBASE variable and invoked CPAN.
Everything worked OK up to the compile of dbdimp.c, which apparently
couldn't find some things that it expected to have #defined (see listing
below). Checking the mailing list archives didn't turn up anything, so
before I start digging I thought I'd see if any of you have any ideas.
Thanks.

# ./configure --with-tdver=4.2
[[ ...much text omitted... ]]
# make
[[ ...ditto... ]]
# make install
[[ ...ditto... ]]
# export SYBASE=/usr/local/freetds
# cpan

cpan shell -- CPAN exploration and modules installation (v1.59)
ReadLine support enabled

cpan> install DBD::Sybase
CPAN: Storable loaded ok
Going to read /.cpan/Metadata
Running install for module DBD::Sybase
Running make for M/ME/MEWP/DBD-Sybase-0.94.tar.gz
[[ ...much text omitted... ]]
gcc -c -I/usr/local/freetds/include
-I/opt/perl/lib/site_perl/5.6.0/sun4-solaris/auto/DBI -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3
-DVERSION=\"0.94\" -DXS_VERSION=\"0.94\" -fPIC
-I/opt/perl/lib/5.6.0/sun4-solaris/CORE dbdimp.c
dbdimp.c: In function `syb_ct_prepare_send':
dbdimp.c:2763: `CS_SEND_DATA_CMD' undeclared (first use in this function)
dbdimp.c:2763: (Each undeclared identifier is reported only once
dbdimp.c:2763: for each function it appears in.)
dbdimp.c:2763: `CS_COLUMN_DATA' undeclared (first use in this function)
dbdimp.c: In function `syb_ct_finish_send':
dbdimp.c:2797: structure has no member named `timestamp'
dbdimp.c:2800: structure has no member named `timestamp'
dbdimp.c:2801: structure has no member named `timestamplen'
dbdimp.c: In function `_dbd_rebind_ph':
dbdimp.c:3348: `CS_NO_RECOMPILE' undeclared (first use in this function)
make: *** [dbdimp.o] Error 1
/usr/local/bin/make -- NOT OK


Sam Denton
WAN Technologies, INC.
(314) 428-0888 / (800) 926-7771
www.wantec.com
Data & Telecommunications Solutions provider
www.wancare.com
Network Management Solutions






Archive powered by MHonArc 2.6.24.

Top of Page