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: Michael Peppler <mpeppler AT peppler.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] DBD::Sybase make errors
  • Date: Fri, 23 Jul 2004 07:59:06 +0200

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 <DBIXS.h> /* installed by the DBI module */

#include <ctpublic.h>
#include <bkpublic.h>

...

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






Archive powered by MHonArc 2.6.24.

Top of Page