[Home]

Summary:ASTERISK-02517: [External Module] res_sqlite for SQLite 3
Reporter:Anthony Minessale (anthm)Labels:
Date Opened:2004-10-02 19:13:44Date Closed:2004-11-02 07:54:35.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Here is NEW res_sqlite for SQLite3 if you want to
use the lastest and greatest verison of sqlite.

http://www.asterlink.com/asterisk/res_sqlite3.tgz



****** ADDITIONAL INFORMATION ******

<input type=cash paypal=anthmct@yahoo.com>
Comments:By: cypromis (cypromis) 2004-10-20 15:31:56

COmpile error ....

[root@maggie res_sqlite3_dist]# make
/usr/src/asterisk/contrib/scripts/astxs "-append=CFLAGS:-I sqlite -I sqlite/src" "-append=EXTOBJ:./sqlite/.libs/libsqlite3.a" res_sqlite.c
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-10/20/04-22:08:11\" -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\" -DDEBUG_THREADS     -DBUSYDETECT_MARTIN      -fPIC -I sqlite -I sqlite/src -c res_sqlite.c -o res_sqlite.o
In file included from res_sqlite.c:29:
sqlite/sqlite3.h:41: warning: function declaration isn't a prototype
res_sqlite.c:699: warning: initialization from incompatible pointer type
res_sqlite.c:700: warning: initialization from incompatible pointer type
res_sqlite.c:701: warning: initialization from incompatible pointer type
res_sqlite.c:702: warning: initialization from incompatible pointer type
res_sqlite.c: In function `load_module':
res_sqlite.c:1165: structure has no member named `func'

By: Anthony Minessale (anthm) 2004-10-20 16:58:28

inconsiderate CVS changes have ruined it
no time to fix it ..

-Tony

By: Ousmane Wilane (wilane) 2004-10-21 03:49:16

cypromis: In res_sqlite.c:1165 change func to static_func and it should cure the compile problem. I don't know if some other changes are needed for proper operations, but it seems to load fine with last cvs.

--
Ousmane

By: cypromis (cypromis) 2004-10-21 05:17:02

That fixed it.

By: Mark Spencer (markster) 2004-11-01 15:46:40.000-0600

Just put this in Asterisk addons in the mean time.