[Asterisk-Dev] Compilation problem - cdr_sqlite

Tamas J thomasj at eworld.hu
Thu Mar 3 02:38:23 MST 2005


Hello!

I have a compilation problem of Asterisk CVS-HEAD:
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/03/05-10:33:56\" -DASTERISK_VERSION_NUM=999999 -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -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      -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:214: 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

When I compile without cdr_sqlite it compiles well, so I guess there
is something wrong around cdr_sqlite.c.

On Debian Sarge and also on Ubuntu Warty Warthog.
gcc version 3.3.5, Linux-2.4.28

Could anybody take a look for that?

Thanks in advance,
        Tamas




More information about the asterisk-dev mailing list