ERROR: Group 'mysql-connection' may not contain field 'mysql-username'

"Mike Harris" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
I have just downloaded the latest stable release and have some issues
compiling it.

./configure --prefix=/usr/local \
--disable-wap \
--enable-start-stop-daemon \
--disable-ssl \
--with-mysql \
--with-mysql-dir=/usr/local/mysql \
--with-dlr=mysql

When I run ./configure I get;

Configuring DB support ...
checking whether to compile with MySQL support... searching
checking for mysql_config... /usr/local/sbin/mysql_config
checking mysql version... 5.0.13-rc
checking mysql reentrant libs...  -L/usr/local/mysql/lib -lmysqlclient_r -lz
-lpthread -lcrypt -lnsl -lm -lpthread
checking for mysql_init in -lmysqlclient_r... yes
checking mysql includes... -I/usr/local/mysql/include
checking for mysql/mysql.h... no
checking for mysql/mysql_version.h... no
checking whether to compile with MySQL support... yes

So it appears to not find mysql/mysql.h - not surprising its in
/usr/local/Mysql/include..
So make depend fails with;

# make depend
for dir in gw gw/smsc gwlib test utils wmlscript checks wap radius; do \
        gcc -D_REENTRANT=1 -I. -Igw  -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-I/usr/include/libxml2 -I/usr/local/mysql/include -MM $dir/*.c | sed "s:^[^
]:$dir/&:"; done > .depend
gw/dlr_mysql.c:74:25: mysql/mysql.h: No such file or directory

If I hardcode all of the $loc to /usr/local/Mysql - make then does this;

make
gcc -D_REENTRANT=1 -I. -Igw  -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-I/usr/include/libxml2 -I/usr/local/mysql/include -o gw/dlr_mysql.o -c
gw/dlr_mysql.c
In file included from /usr/local/mysql/include/mysql.h:62,
                 from gw/dlr_mysql.c:74:
/usr/local/mysql/include/my_list.h:32: error: conflicting types for
'list_delete'
./gwlib/list.h:179: error: previous declaration of 'list_delete' was here
/usr/local/mysql/include/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 then find this;

"This issue has been fixed a while ago by renaming all list_* functions
in gwlib to gwlist_*. Please use CVS HEAD. It's fairly stable"

So I download CVS HEAD, same problem with mysql/mysql.h so hardcode paths
and it builds!!
But when I try to run it;

/usr/local/sbin/bearerbox -- /etc/kannel/kannel.conf.cvs
2005-10-20 17:47:42 [3936] [0] INFO: Debug_lvl = -1, log_file = <none>,
log_lvl = 0
2005-10-20 17:47:42 [3936] [0] DEBUG: Loading include file
`/etc/kannel/modems.conf' (on line 17 of file /etc/kannel/kannel.conf.cvs).
2005-10-20 17:47:42 [3936] [0] ERROR: Group 'mysql-connection' may not
contain field 'mysql-username'.
2005-10-20 17:47:42 [3936] [0] ERROR: Error found on line 164 of file
`/etc/kannel/kannel.conf.cvs'.
2005-10-20 17:47:42 [3936] [0] PANIC: Couldn't read configuration from
`/etc/kannel/kannel.conf.cvs'.
2005-10-20 17:47:42 [3936] [0] PANIC:
/usr/local/sbin/bearerbox(gw_panic+0x174) [0x80cee60]
2005-10-20 17:47:42 [3936] [0] PANIC: /usr/local/sbin/bearerbox(main+0x17d)
[0x8058b78]
2005-10-20 17:47:42 [3936] [0] PANIC:
/lib/tls/libc.so.6(__libc_start_main+0xd3) [0x4ade23]
2005-10-20 17:47:42 [3936] [0] PANIC: /usr/local/sbin/bearerbox [0x8057e59]

#
 
# MySQL connection
group = mysql-connection
id = mydlr
host = localhost
mysql-username = xxx
mysql-password = xxx
database = xxx
max-connections = 1
 
# MySQL config
group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-source = source
field-boxc-id = boxc

What am I doing wrong here? Help!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.