Re: Maybe a BUG: make: *** [gw/dlr_mysql.o] Error 1 // conflict with MYSQL 4.1.7 ?
Stipe Tolj <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | The Kannel Group |
| Message-ID | <[email protected]> |
ding dingding wrote:
> ?
> ?V naually gateway-1.4.0]# ./configure --disable-docs --disable-ssl
> --with-mysql
> loading cache ./config.cache
>
> Configuring for Kannel gateway version 1.4.0 ...
>
> Running system checks ...
> checking host system type... i686-pc-linux-gnu
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -rdynamic) works... yes
> checking whether the C compiler (gcc -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -rdynamic) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking for ranlib... (cached) ranlib
> checking for bison... (cached) bison -y
> checking for flex... (cached) flex
> checking for yywrap in -lfl... (cached) yes
> checking for convert... no
> checking for perl... (cached) /usr/bin/perl
> checking size of short... (cached) 2
> checking size of int... (cached) 4
> checking size of long... (cached) 4
> checking size of long long... (cached) 8
> checking for log in -lm... (cached) yes
> checking for accept in -lsocket... (cached) no
> checking for inet_ntoa in -lnsl... (cached) yes
> checking for inet_ntop in -lresolv... (cached) yes
> checking for inet_ntop in -lbind... (cached) no
> checking for pthread_exit in -lpthread... (cached) yes
> checking for libiconv in -liconv... (cached) no
> checking how to run the C preprocessor... (cached) gcc -E
> checking for ANSI C header files... (cached) yes
> checking for sys/ioctl.h... (cached) yes
> checking for sys/time.h... (cached) yes
> checking for sys/types.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for sys/poll.h... (cached) yes
> checking for pthread.h... (cached) yes
> checking for getopt.h... (cached) yes
> checking for syslog.h... (cached) yes
> checking for iconv.h... (cached) yes
> checking for zlib.h... (cached) yes
> checking for execinfo.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for sys/socket.h... (cached) yes
> checking for sys/sockio.h... (cached) no
> checking for net/if.h... (cached) yes
> checking for netinet/in.h... (cached) yes
> checking for gettimeofday... (cached) yes
> checking for select... (cached) yes
> checking for socket... (cached) yes
> checking for strdup... (cached) yes
> checking for getopt_long... (cached) yes
> checking for localtime_r... (cached) yes
> checking for gmtime_r... (cached) yes
> checking for backtrace... (cached) yes
> checking for srandom... (cached) yes
> checking for getopt... (cached) yes
> checking for gethostbyname_r... (cached) yes
> checking for which type of gethostbyname_r... (cached) 6
> checking for socklen_t in <sys/socket.h>... (cached) yes
> checking for getopt in <stdio.h>... (cached) no
> checking for getopt in <unistd.h>... (cached) yes
> checking for regex.h... (cached) yes
> checking for regcomp... (cached) yes
>
> Checking for POSIX threads support ...
> checking for working pthreads... yes
> checking for pthread_spinlock support... yes
> checking for pthread_rwlock support... yes
> checking for sem_init in -lrt... (cached) yes
> checking for semaphore support... yes
>
> Checking for libxml2 support ...
> checking for xml2-config... (cached) /usr/local/bin/xml2-config
> checking libxml version... 2.6.16
>
> Configuring for PCRE support ...
> checking whether to compile with PCRE support... disabled
>
> Configuring DocBook support ...
> checking for jade... (cached) jade
> checking for jadetex... (cached) no
> checking for pdfjadetex... (cached) no
> checking for dvips... (cached) dvips
> checking for fig2dev... (cached) no
> checking for convert... (cached) no
> checking for
> /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl...
> (cached) no
> checking for
> /usr/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl... (cached) no
> checking for
> /usr/share/sgml/docbook/dsssl-stylesheets-1.59/html/docbook.dsl...
> (cached) no
> checking for
> /usr/share/sgml/docbook/dsssl-stylesheets-1.77/html/docbook.dsl...
> (cached) no
> checking for
> /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl... (cached) yes
> checking for
> /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl...
> (cached) no
> checking for
> /usr/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl... (cached) no
> checking for
> /usr/share/sgml/docbook/dsssl-stylesheets-1.59/print/docbook.dsl...
> (cached) no
> checking for
> /usr/share/sgml/docbook/dsssl-stylesheets-1.77/print/docbook.dsl...
> (cached) no
> checking for
> /usr/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl... (cached) yes
> Not building documentation.
>
> Configuring parameters ...
> checking which malloc to use... native malloc
> enabling local time
> enabling cookies
>
> Configuring OpenSSL support ...
> checking whether to compile with SSL support... disabled
>
> Configuring DB support ...
> checking whether to compile with MySQL support... searching
> checking for mysql_config... (cached) /usr/bin/mysql_config
> checking mysql version... 4.1.7
> checking mysql reentrant libs... -L/usr/lib/mysql -lmysqlclient_r
> -lpthread -lcrypt -lnsl -lm -lpthread -lc -lnss_files -lnss_dns -lresolv
> -lc -lnss_files -lnss_dns -lresolv
> checking for mysql_init in -lmysqlclient_r... (cached) yes
> checking mysql includes... -I/usr/include/mysql
> checking for mysql/mysql.h... (cached) yes
> checking for mysql/mysql_version.h... (cached) yes
> checking whether to compile with MySQL support... yes
> checking whether to compile with LibSDB support... disabled
> checking whether to compile with SQLite support... disabled
> checking whether to compile with Oracle support... disabled
> checking whether to compile with PostgresSQL support... disabled
>
> Generating output files ...
> creating ./config.status
> creating gwlib/gw_uuid_types.h
> creating Makefile
> creating gw-config.h
>
> License information ...
> +--------------------------------------------------------------------+
> | License: |
> | This software is subject to the Kannel Software License, available |
> | in this distribution in the file LICENSE. By continuing this |
> | installation process, you are bound by the terms of this license |
> | agreement. If you do not agree with the terms of this license, you |
> | must abort the installation process at this point. |
> | |
> | The Kannel Group <http://www.kannel.org/> |
> +--------------------------------------------------------------------+
>
>
> Thank you for using Kannel.
> [root@manaually gateway-1.4.0]# make
> 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/local/include/libxml2 -I/usr/include/mysql -MM $dir/*.c | sed
> "s:^[^ ]:$dir/&:"; done > .depend
> gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -I/usr/local/include/libxml2 -I/usr/include/mysql -o gw/bb_alog.o -c
> gw/bb_alog.c
> gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -I/usr/local/include/libxml2 -I/usr/include/mysql -o gw/bb_boxc.o -c
> gw/bb_boxc.c
> gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -I/usr/local/include/libxml2 -I/usr/include/mysql -o gw/bb_http.o -c
> gw/bb_http.c
> gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -I/usr/local/include/libxml2 -I/usr/include/mysql -o gw/bb_smscconn.o -c
> gw/bb_smscconn.c
> gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -I/usr/local/include/libxml2 -I/usr/include/mysql -o gw/bb_store.o -c
> gw/bb_store.c
> gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -I/usr/local/include/libxml2 -I/usr/include/mysql -o gw/bb_udp.o -c
> gw/bb_udp.c
> gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -I/usr/local/include/libxml2 -I/usr/include/mysql -o gw/bearerbox.o -c
> gw/bearerbox.c
> gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -I/usr/local/include/libxml2 -I/usr/include/mysql -o gw/dlr.o -c gw/dlr.c
> gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -I/usr/local/include/libxml2 -I/usr/include/mysql -o gw/dlr_mem.o -c
> gw/dlr_mem.c
> gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -I/usr/local/include/libxml2 -I/usr/include/mysql -o gw/dlr_mysql.o -c
> gw/dlr_mysql.c
> In file included from /usr/include/mysql/mysql.h:62,
> from gw/dlr_mysql.c:74:
> /usr/include/mysql/my_list.h:32: conflicting types for `list_delete'
> gwlib/list.h:179: previous declaration of `list_delete'
> make: *** [gw/dlr_mysql.o] Error 1
> [root@manaually gateway-1.4.0]#
ok, checked this. Yes, confirmed at least in terms of presence of the
list_delete() declaration in include/my_liust.h from 4.0.17 (and up).
But why does this not break for the rest of us who build mysql support?!
AND!!! do not cross-post! It's enough to mail to the mailing list, when you are
subscribed.
Stipe
mailto:stolj_{at}_wapme.de
-------------------------------------------------------------------
Wapme Systems AG
Vogelsanger Weg 80
40470 Düsseldorf, NRW, Germany
phone: +49.211.74845.0
fax: +49.211.74845.299
mailto:info_{at}_wapme-systems.de
http://www.wapme-systems.de/
-------------------------------------------------------------------