Found in the faq :
Fastest way would be to change the name of list_delete() in Kannel
from list_delete() to gw_list_delete().

A quick glance through the source:
  gateway/gwlib/dbpool.c:314
  gateway/gwlib/http.c:2711
  gateway/gwlib/http.c:2726
  gateway/gwlib/http.c:2837
  gateway/gwlib/http.c:3091
  gateway/gwlib/list.c:229
  gateway/gwlib/list.h:179
  gateway/gwlib/list.h:183  <--- This one is inside a comment
  gateway/gw/bb_smscconn.c:634 (543 in 1.3.2)
  gateway/gw/dlr_mem.c:105
  gateway/gw/dlr_mem.c:174
  gateway/gw/smsc/smsc_soap.c:1958




Marco


-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la
part de David E. Meier
Envoy� : mardi 29 mars 2005 18:52
� : [email protected]
Objet : error: conflicting types for `list_delete'


Hi list,

I am getting the error below when trying to build Kannel with MySQL
4.1.10 support on a FreeBSD 5.3 machine. As I can see from the archives
it is a known problem. Davy Chan also promised a patch earlier this
year. Has it been submitted? What's the status on this issue? Dave.


# ./configure CFLAGS='-Wall -O2 -g' --with-cflags='-pthread'
--enable-docs=no --with-mysql
:
Configuring DB support ...
checking whether to compile with MySQL support... searching checking for
mysql_config... /usr/local/bin/mysql_config checking mysql version...
4.1.10a checking mysql reentrant libs...  -L/usr/local/lib/mysql
-lmysqlclient_r -lz -pthread -lcrypt -lm  -pthread checking for
mysql_init in -lmysqlclient_r... -L/usr/local/lib/mysql -lmysqlclient_r
-lz -pthread -lcrypt -lm  -pthread yes checking mysql includes...
-I/usr/local/include/mysql -I/usr/local/include/mysql checking for
mysql/mysql.h... no checking for mysql/mysql_version.h... no checking
whether to compile with MySQL support... yes

# gmake
gcc -D_REENTRANT=1 -I. -Igw  -pthread -I/usr/local/include/libxml2
-I/usr/local/ include -I/usr/include/openssl -I/usr/local/include/mysql
-o gw/dlr.o -c gw/dlr.c
gw/dlr.c: In function `dlr_find':
gw/dlr.c:406: warning: passing arg 1 of `time' from incompatible pointer
type
gw/dlr.c: In function `create_dlr_from_msg':
gw/dlr.c:471: warning: passing arg 1 of `time' from incompatible pointer
type gcc -D_REENTRANT=1 -I. -Igw  -pthread -I/usr/local/include/libxml2
-I/usr/local/include -I/usr/include/openssl -I/usr/local/include/mysql
-o gw/dlr_mem.o -c gw/dlr_mem.c gcc -D_REENTRANT=1 -I. -Igw  -pthread
-I/usr/local/include/libxml2 -I/usr/local/include -I/usr/include/openssl
-I/usr/local/include/mysql -o gw/dlr_mysql.o -c gw/dlr_mysql.c In file
included from /usr/local/include/mysql/mysql.h:62,
                 from gw/dlr_mysql.c:74:
/usr/local/include/mysql/my_list.h:32: error: conflicting types for
'list_delete'
./gwlib/list.h:179: error: previous declaration of 'list_delete' was
here
/usr/local/include/mysql/my_list.h:32: error: conflicting types for
'list_delete'
./gwlib/list.h:179: error: previous declaration of 'list_delete' was
here
gmake: *** [gw/dlr_mysql.o] Error 1









Reply via email to