Summary:ASTERISK-03664: [patch] Compilation problem with cdr_sqlite
Reporter:jalsot (jalsot)Labels:
Date Opened:2005-03-10 10:12:01.000-0600Date Closed:2008-01-15 15:27:15.000-0600
Versions:Frequency of
Environment:Attachments:( 0) patch.txt
Description:I'm getting when cdr_sqlite is enabled:
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i686   -DZAPTEL_OPTIMIZATIONS  -DASTERISK_VERSION=\"CVS-HEAD-03/10/05-16:56:24\" -DASTERISK_VERSION_NUM=999999 -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run/asterisk\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN     -fomit-frame-pointer  -fPIC        -c -o cdr_sqlite.o cdr_sqlite.c
In file included from ../include/asterisk/cdr.h:20,
                from cdr_sqlite.c:17:
../include/asterisk/channel.h:290: error: field `varshead' has incomplete type
make[1]: *** [cdr_sqlite.o] Error 1
make[1]: Leaving directory `/DEVEL/asterisk/asterisk/cdr'
make: *** [subdirs] Error 1


sqlite-2.8.15-3, gcc version 3.3.5
The patch was made according to Derrick D. Daugherty's suggestion ( http://www.mail-archive.com/asterisk-dev@lists.digium.com/msg09471.html )
Comments:By: Clod Patry (junky) 2005-03-10 10:35:56.000-0600

i know it's really small for the patch, but do you have any disclaimer on file?

By: jalsot (jalsot) 2005-03-10 10:43:52.000-0600

Yes, I have (2003 August:)
While it wasn't my idea - I just posted the report - I thought maybe disclaimer should be asked from Derrick D. Daugherty. I don't know what are the rules in such case...

By: Matt O'Gorman (mogorman) 2005-03-10 10:44:47.000-0600

Junky, look at his karma.  I mean i know we need to include it for simplicity. but seriously

By: Russell Bryant (russell) 2005-03-11 00:23:09.000-0600

Well, channel.h includes cdr.h, so i just changed the include of cdr.h to channel.h.  Feel free to re-open if that didn't fix the problem.

By: Digium Subversion (svnbot) 2008-01-15 15:27:15.000-0600

Repository: asterisk
Revision: 5161

U   trunk/cdr/cdr_sqlite.c

r5161 | russell | 2008-01-15 15:27:14 -0600 (Tue, 15 Jan 2008) | 2 lines

fix compilation issue (bug ASTERISK-3664)