[asterisk-dev] help with cdr_tds not compiling

Edward Eastman ed at dm3.co.uk
Tue Feb 7 08:29:05 MST 2006

I've been doing some work on getting cdr_tds to use the new custom cdr
variables and I think I probably came across this problem - I'm not sure
that this is the way it _should_ be done, but if you add the line:

#define FREETDS_0_63

somewhere near the top of cdr_tds.c it should work.  There are various
ifdef's throughout cdr_tds to make it compatible with both newer versions
and versions < 0.62, and the logic seems to be a bit funny in places.  I'm
not sure whether that define should be done elsewhere (by freetds headers?)
or if it's always been designed to work manually.

Anyway I hope that works for you :)


-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Federico Alves
Sent: 07 February 2006 08:36
To: asterisk-dev at lists.digium.com
Subject: [asterisk-dev] help with cdr_tds not compiling

I am using the SVN HEAD or 1.2 version and no matter what version of freetds
I install (I tried them all from 0.61 to 0.63, and in-between), I always get
this error. I need some help understanding how make cdr_tds work. My unixOBC
and my freetds are working perfectly. I can connect and run queries using
either isql or tsql. Is there a patch for this problem? 
Sorry if this is a very, very simple problem.

cdr_tds.c: In function `mssql_connect':
cdr_tds.c:326: error: `TDSCONNECTINFO' undeclared (first use in this
cdr_tds.c:326: error: (Each undeclared identifier is reported only once
cdr_tds.c:326: error: for each function it appears in.)
cdr_tds.c:326: error: `connection' undeclared (first use in this function)
cdr_tds.c:349: error: too few arguments to function `tds_alloc_context'
cdr_tds.c:375: warning: implicit declaration of function `tds_free_connect'
make[1]: *** [cdr_tds.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk/cdr'
make: *** [subdirs] Error 1

--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:

More information about the asterisk-dev mailing list