Roberto, I've never compiled it with MySQL 4.x, always used 3.23.x with no problems.
I'm not sure, but you may need to add the mysql-compat packages to provide compatibility with the 3.23.x clients. Hope it helps, On 10/16/05, Roberto Carvajal <[EMAIL PROTECTED]> wrote: > Hey guys, > > I got kannel working fine with my Sony Ericsson T637 connected via > Bluetooth and /dev/rfcomm0 as the serial link.. everything worked > fine after a few detect string and init strings tunning.. > > Right now I want to add mysql support but I can't, this is the output: > > In file included from /usr/include/mysql/mysql.h:62, > from gw/dlr_mysql.c:74: > /usr/include/mysql/my_list.h:32: error: conflicting types for > 'list_delete' > ./gwlib/list.h:179: error: previous declaration of 'list_delete' was > here > make: *** [gw/dlr_mysql.o] Error 1 > > I'm using MySQL 4.1.14 I'm guessing I need another version of mysql.. > > So I googled a little and found out that this was fixed in CVS, but I > wanted this fixed in stable and basically I followed this advice: > > http://www.mail-archive.com/[email protected]/msg04502.html > > So, > > [EMAIL PROTECTED] gateway-1.4.0]$ grep -Frn "list_delete(" * > checks/check_list.c:158: list_delete(list, 0, 1); > gw/smsc/smsc_soap.c:1958: list_delete(privdata- > >soap_client, index, 1); > gw/bb_smscconn.c:634: list_delete(smsc_list, i, 1); > gw/dlr_mem.c:105: list_delete(dlr_waiting_list, i, 1); > gw/dlr_mem.c:174: list_delete(dlr_waiting_list, i, 1); > gwlib/dbpool.c:314: list_delete(p->pool, i, 1); > gwlib/http.c:2710: list_delete(headers, i, 1); > gwlib/http.c:2725: list_delete(headers, j, 1); > gwlib/http.c:2836: list_delete(headers, i, 1); > gwlib/http.c:3090: list_delete(result, i, 1); > gwlib/list.c:229:void list_delete(List *list, long pos, long count) > gwlib/list.h:179:void list_delete(List *list, long pos, long count); > wap/cookies.c:396: list_delete(cookies, pos, 1); > wap/cookies.c:448: list_delete > (cookies, pos, 1); > wap/wsp_headers.c:2044: list_delete(parms, i, 1); > wap/wsp_session.c:819: list_delete(caps, i, 1); > wap/wsp_session.c:967: list_delete(caps, i, 1); > > I renamed all the entries in the source code to gw_list_delete and > compiled fine. > > My logic says this will work, I just wanted the advice from a > developer, patch can be founded here: > > http://roberto.entodaspartes.org/kannel-mysql4.1.patch > > May I just move to kannel cvs or it is safe to use kannel stable with > mysql 4.1.14? > > > Thanks for the software, this is really good stuff! > > r. > > -- > Roberto Carvajal > LOKO IT Services > [EMAIL PROTECTED] > http://roberto.entodaspartes.org/blog > > > > -- Alejandro Guerrieri Magicom http://www.magicom-bcn.net/
