[freetds] DBD::Sybase make errors

Lowden, James K LowdenJK at bernstein.com
Thu Jul 22 15:39:06 EDT 2004

> 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?  


The information contained in this transmission may contain privileged and confidential information and is intended only for the use of the person(s) named above. If you are not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender immediately by reply e-mail and destroy all copies of the original message. Please note that we do not accept account orders and/or instructions by e-mail, and therefore will not be responsible for carrying out such orders and/or instructions.
If you, as the intended recipient of this message, the purpose of which is to inform and update our clients, prospects and consultants of developments relating to our services and products, would not like to receive further e-mail correspondence from the sender, please "reply" to the sender indicating your wishes.  In the U.S.: 1345 Avenue of the Americas, New York, NY 10105.

More information about the FreeTDS mailing list