Skip to Content.
Sympa Menu

freetds - RE: [freetds] DBD::Sybase make errors

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: <jonasb AT alum.rpi.edu>
  • To: <freetds AT lists.ibiblio.org>, <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] DBD::Sybase make errors
  • Date: Fri, 23 Jul 2004 09:45:50 -0700

Turns out I fixed it - I was running an old version of freeTDS so I
upgraded to the latest.

Thanks!

B

<-----Original Message----->

From: Michael Peppler
Sent: 7/23/2004 2:17:06 AM
To: freetds AT lists.ibiblio.org
Subject: RE: [freetds] DBD::Sybase make errors

On Thu, 2004-07-22 at 21:39, Lowden, James K wrote:
> > From: Michael Peppler
> > Sent: Thursday, July 22, 2004 2:25 PM
> >
> > > If I try to make the DBD::Sybase module directly, I get the
> > following
> > > error:
> > >
> > > gcc -c -I/usr/local/freetds/include -DNO_THREADS
> > > -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBI
> > > -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-D_LARGEFILE_SOURCE
> > > -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386
> > -mcpu=i686
> > > -DVERSION=\"1.04\" -DXS_VERSION=\"1.04\" -fpic
> > > "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" dbdimp.c
> > > dbdimp.c:3655: parse error before '*' token
> > > dbdimp.c: In function `to_binary':
> > > dbdimp.c:3659: `CS_BINARY' undeclared (first use in this function)
> >
> > Hmmm - don't know why that wouldn't be defined. That
> > particular bit of code isn't new, so FreeTDS should have it
> > defined somewhere.
>
> $ grep -n CS_BINARY include/cspublic.h
> 68:typedef unsigned char CS_BINARY;
> 606:#define CS_BINARY_TYPE 12
>
> It is, and cspublic.h is #included in ctpublic.h. Is dbdimp.c somehow
> not including ctpublic.h?

Sure it is:

dbdimp.c includes Sybase.h, which starts with:



#define NEED_DBIXS_VERSION 8

#include /* installed by the DBI module */

#include
#include

....

Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler AT peppler.org http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short
or long term contract positions - http://www.peppler.org/resume.html


_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
.





Archive powered by MHonArc 2.6.24.

Top of Page