[freetds] DBD::Sybase make errors

Michael Peppler mpeppler at peppler.org
Fri Jul 23 01:59:06 EDT 2004


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





More information about the FreeTDS mailing list