[asterisk-dev] help with cdr_tds not compiling

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue Feb 7 10:46:31 MST 2006


On Tuesday 07 February 2006 09:29, Edward Eastman wrote:
> 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.

It's actually in cdr/Makefile and it's attempting to detect the version
number in /usr/include/tdsver.h, specified as TDS_VERSION_NO.
Unfortunately, it's a string, rather than a number, which means we
have to translate it to something else in the Makefile.  Given the
somewhat strange versioning, we attempted to make it work with
later bugfix releases of 0.63.  Note that cdr_tds shouldn't attempt
to build at all, if we aren't able to detect a compatible version.

-- 
Tilghman



More information about the asterisk-dev mailing list