[Asterisk-Users] sqlite + stable asterisk

marek cervenka cervajs at fpf.slu.cz
Mon Aug 29 08:43:39 MST 2005


hi,

i have problem with compiling cdr_sqlite 
rhel4(gcc3.4.3) + sqlite3 (from fc4 - rebuilded)

any ideas?

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-v1-0-08/11/05-19:35:03\" -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
cdr_sqlite.c:38: error: syntax error before '*' token
cdr_sqlite.c:38: warning: type defaults to `int' in declaration of `db'
cdr_sqlite.c:38: warning: data definition has no type or storage class
cdr_sqlite.c: In function `sqlite_log':
cdr_sqlite.c:92: warning: implicit declaration of function 
`sqlite_exec_printf'
cdr_sqlite.c: In function `unload_module':
cdr_sqlite.c:153: warning: implicit declaration of function `sqlite_close'
cdr_sqlite.c: In function `load_module':
cdr_sqlite.c:166: warning: implicit declaration of function `sqlite_open'
cdr_sqlite.c:166: warning: assignment makes pointer from integer without a 
cast
cdr_sqlite.c:174: warning: implicit declaration of function `sqlite_exec'
make[1]: *** [cdr_sqlite.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk/cdr'
make: *** [subdirs] Error 1


---------------------------------------
Marek Cervenka
=======================================




More information about the asterisk-users mailing list