Re: Mysql 8.x will not compile with latest Kannel

Alexander Malysh <[email protected]> Sat, 3 Aug 2019 21:54:07 +0200
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
--Apple-Mail=_08B8B7D3-97C5-4CBF-BC43-BB8E782AB089
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi,

yes, I already saw it. Fixed in SVN.

Alex


> Am 02.08.2019 um 17:18 schrieb Werner Coetzee =
<[email protected]>:
>=20
> Compare pre-8 documentation (e.g. 5.5 =
https://dev.mysql.com/doc/refman/5.5/en/c-api-data-structures.html =
<https://dev.mysql.com/doc/refman/5.5/en/c-api-data-structures.html> ) =
to mysql 8.0 =
documentationhttps://dev.mysql.com/doc/refman/8.0/en/c-api-data-structures=
.html =
<https://dev.mysql.com/doc/refman/8.0/en/c-api-data-structures.html>
> =20
> For 8 it says:
> my_bool: A boolean type, for values that are true (nonzero) or false =
(zero). The my_bool type was used before MySQL 8.0. As of MySQL 8.0, use =
the bool or int C type instead.
> NOTE: The change from my_bool to bool means that the mysql.h header =
file requires a C++ or C99 compiler to compile.
> =20
> So maybe dbpool_mysql.c can do with a #if MYSQL_VERSION_ID check? e.g.
> =20
> #if MYSQL_VERSION_ID >=3D 80000
> typedef int my_bool;
> #endif
> =20
> Werner
> =20
> =20
> Werner Coetzee=E2=80=8B
> C Developer
> <image286865.png>=09
> [email protected] <mailto:[email protected]>
> <image918509.png>=09
> +27 (21) 910 7700
> <image874095.png>
> From: devel <[email protected]> On Behalf Of Hillel Bilman
> Sent: 02 August 2019 16:30
> To: Alexander Malysh <[email protected]>
> Cc: Kannel Devel <[email protected]>
> Subject: Mysql 8.x will not compile with latest Kannel
>=20
> =20
> Hi Alex,
> =20
> The server I'm using has:
> Mysql 8.0.17
> Centos 7.x
> Kannel  svn-r5278M (latest version from svn)
> =20
> Latest Kannel SVN will not compile with Mysql 8.0.17.
> This error with Mysql 8.x was reported in redmine 08/18/2018  =
https://redmine.kannel.org/issues/782 =
<https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fredmi=
ne.kannel.org%2Fissues%2F782&data=3D02%7C01%7C%7C0d7a493199de4c4ae61408d71=
7560036%7Cf05b82000f184302889e9f6703297586%7C0%7C0%7C637003530455590653&sd=
ata=3DS%2FjJrklB%2BM%2FtVaIQ9bU51KrWit7baFk7LzyrnyLf5bA%3D&reserved=3D0>
> But there does not seem to be any reported solution.
> =20
> Any help is appreciated to be able to compile Kannel.
> =20
> Steps using to compile Kannel:
> svn co https://svn.kannel.org/gateway/trunk/ =
<https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fsvn.k=
annel.org%2Fgateway%2Ftrunk%2F&data=3D02%7C01%7C%7C0d7a493199de4c4ae61408d=
717560036%7Cf05b82000f184302889e9f6703297586%7C0%7C0%7C637003530455600647&=
sdata=3DjXRnV%2Blvm8ThzHynnpyo1PFsSzUcr8OdCCDphFmoOFc%3D&reserved=3D0>  =
gateway
> cd gateway
> ./bootstrap.sh
> ./configure --with-defaults=3Dspeed --with-mysql  =
--enable-start-stop-daemon --enable-ssl  --disable-localtime  =
--enable-cookies=20
> make;make install
> =20
> Configuring for Kannel gateway version svn-r5278M ...=20
>  ..
> Showing the database section with the two WARNINGs:
> Configuring DB support ...
> checking whether to compile with MySQL support... searching
> checking for mysql_config... /bin/mysql_config
> checking mysql version... 8.0.17
> checking mysql reentrant libs... -L/usr/lib64/mysql -lmysqlclient =
-lpthread -lm -lrt -lssl -lcrypto -ldl
> checking for mysql_init in -lmysqlclient_r... no
> checking mysql libs... -L/usr/lib64/mysql -lmysqlclient -lpthread -lm =
-lrt -lssl -lcrypto -ldl
> checking for mysql_init in -lmysqlclient... yes
> checking mysql includes... -I/usr/include/mysql
> checking mysql/mysql.h usability... yes
> checking mysql/mysql.h presence... no
> configure: WARNING: mysql/mysql.h: accepted by the compiler, rejected =
by the preprocessor!
> configure: WARNING: mysql/mysql.h: proceeding with the compiler's =
result
> checking for mysql/mysql.h... yes
> checking mysql/mysql_version.h usability... yes
> checking mysql/mysql_version.h presence... yes
> checking for mysql/mysql_version.h... yes
> checking for mysql_stmt_init in -lmysqlclient_r... no
> checking for mysql_stmt_init in -lmysqlclient... yes
> checking whether to compile with MySQL support... yes
> checking whether to compile with LibSDB support... disabled
> checking whether to compile with SQLite2 support... disabled
> checking whether to compile with SQLite3 support... disabled
> checking whether to compile with Oracle support... disabled
> checking whether to compile with PostgresSQL support... disabled
> checking whether to compile with Redis support... disabled
> checking whether to compile with FreeTDS Ct-Lib support... disabled
> checking whether to compile with Cassandra support... disabled
> =20
> root@eco007-truservcomm-jhb1-001 /home/kannel/gateway $ make
> make  all-recursive
> make[1]: Entering directory `/home/kannel/gateway'
> Making all in gwlib
> make[2]: Entering directory `/home/kannel/gateway/gwlib'
> /bin/sh ../libtool  --tag=3DCC   --mode=3Dcompile gcc -std=3Dgnu99 =
-DHAVE_CONFIG_H -I. -I..     -g -O2 -D_XOPEN_SOURCE=3D600 -D_BSD_SOURCE =
-D_DEFAULT_SOURCE -D_LARGE_FILES=3D -I/usr/include/libxml2 =
-I/usr/include/openssl -I/usr/include/mysql -MT dbpool.lo -MD -MP -MF =
.deps/dbpool.Tpo -c -o dbpool.lo dbpool.c
> libtool: compile:  gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I.. -g -O2 =
-D_XOPEN_SOURCE=3D600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES=3D =
-I/usr/include/libxml2 -I/usr/include/openssl -I/usr/include/mysql -MT =
dbpool.lo -MD -MP -MF .deps/dbpool.Tpo -c dbpool.c  -fPIC -DPIC -o =
.libs/dbpool.o
> In file included from gwlib.h:83:0,
>                  from dbpool.c:70:
> dbpool_mysql.c: In function 'mysql_select':
> dbpool_mysql.c:248:48: error: 'my_bool' undeclared (first use in this =
function)
>              bind[i].is_null =3D gw_malloc(sizeof(my_bool));
>                                                 ^
> gwmem.h:122:43: note: in definition of macro 'gw_malloc'
>  #define gw_malloc(size) (gw_native_malloc(size))
>                                            ^
> dbpool_mysql.c:248:48: note: each undeclared identifier is reported =
only once for each function it appears in
>              bind[i].is_null =3D gw_malloc(sizeof(my_bool));
>                                                 ^
> gwmem.h:122:43: note: in definition of macro 'gw_malloc'
>  #define gw_malloc(size) (gw_native_malloc(size))
>                                            ^
> make[2]: *** [dbpool.lo] Error 1
> make[2]: Leaving directory `/home/kannel/gateway/gwlib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/kannel/gateway'
> make: *** [all] Error 2
> =20
> root@eco007-truservcomm-jhb1-001 /home/kannel/gateway $ rpm -qa|grep =
mysql
> mysql-community-common-8.0.17-1.el7.x86_64
> mysql-community-server-8.0.17-1.el7.x86_64
> mysql-community-libs-8.0.17-1.el7.x86_64
> mysql-community-libs-compat-8.0.17-1.el7.x86_64
> mysql80-community-release-el7-3.noarch
> mysql-community-client-8.0.17-1.el7.x86_64
> mysql-community-devel-8.0.17-1.el7.x86_64
> =20


--Apple-Mail=_08B8B7D3-97C5-4CBF-BC43-BB8E782AB089
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" =
class=3D"">Hi,<div class=3D""><br class=3D""></div><div class=3D"">yes, =
I already saw it. Fixed in SVN.</div><div class=3D""><br =
class=3D""></div><div class=3D"">Alex</div><div class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">Am 02.08.2019 um 17:18 schrieb Werner Coetzee &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt;:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div =
class=3D"WordSection1" style=3D"page: WordSection1; caret-color: rgb(0, =
0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><div style=3D"margin: 0cm 0cm 0.0001pt; =
font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span =
class=3D"">Compare pre-8 documentation (e.g. 5.5<span =
class=3D"Apple-converted-space">&nbsp;</span><a =
href=3D"https://dev.mysql.com/doc/refman/5.5/en/c-api-data-structures.html=
" style=3D"color: purple; text-decoration: underline;" =
class=3D"">https://dev.mysql.com/doc/refman/5.5/en/c-api-data-structures.h=
tml</a><span class=3D"Apple-converted-space">&nbsp;</span>) to mysql 8.0 =
documentation<a =
href=3D"https://dev.mysql.com/doc/refman/8.0/en/c-api-data-structures.html=
" style=3D"color: purple; text-decoration: underline;" =
class=3D"">https://dev.mysql.com/doc/refman/8.0/en/c-api-data-structures.h=
tml</a><o:p class=3D""></o:p></span></div><div style=3D"margin: 0cm 0cm =
0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span class=3D""><o:p class=3D"">&nbsp;</o:p></span></div><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><span class=3D"">For 8 it says:<o:p =
class=3D""></o:p></span></div><div style=3D"margin: 0cm 0cm 0.0001pt; =
font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span =
class=3D"">my_bool: A boolean type, for values that are true (nonzero) =
or false (zero). The my_bool type was used before MySQL 8.0. As of MySQL =
8.0, use the bool or int C type instead.<o:p =
class=3D""></o:p></span></div><div style=3D"margin: 0cm 0cm 0.0001pt; =
font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span =
class=3D"">NOTE: The change from my_bool to bool means that the mysql.h =
header file requires a C++ or C99 compiler to compile.<o:p =
class=3D""></o:p></span></div><div style=3D"margin: 0cm 0cm 0.0001pt; =
font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span =
class=3D""><o:p class=3D"">&nbsp;</o:p></span></div><div style=3D"margin: =
0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span class=3D"">So maybe dbpool_mysql.c can do with a #if =
MYSQL_VERSION_ID check? e.g.<o:p class=3D""></o:p></span></div><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><span class=3D""><o:p =
class=3D"">&nbsp;</o:p></span></div><div style=3D"margin: 0cm 0cm =
0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span class=3D"">#if MYSQL_VERSION_ID &gt;=3D 80000<o:p =
class=3D""></o:p></span></div><div style=3D"margin: 0cm 0cm 0.0001pt; =
font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span =
class=3D"">typedef int my_bool;<o:p class=3D""></o:p></span></div><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><span class=3D"">#endif<o:p =
class=3D""></o:p></span></div><div style=3D"margin: 0cm 0cm 0.0001pt; =
font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span =
class=3D""><o:p class=3D"">&nbsp;</o:p></span></div><div style=3D"margin: =
0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span class=3D"">Werner<o:p class=3D""></o:p></span></div><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><span class=3D""><o:p =
class=3D"">&nbsp;</o:p></span></div><div style=3D"margin: 0cm 0cm =
0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span class=3D""><o:p class=3D"">&nbsp;</o:p></span></div><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><b class=3D""><span lang=3D"EN-US" =
class=3D""></span></b></div><div class=3D""><table cellpadding=3D"0" =
cellspacing=3D"0" border=3D"0" style=3D"width: 1083px;" class=3D""><tbody =
class=3D""><tr style=3D"font-size: 0px;" class=3D""><td align=3D"left" =
style=3D"vertical-align: top;" class=3D""><table cellpadding=3D"0" =
cellspacing=3D"0" border=3D"0" style=3D"font-size: 0px;" class=3D""><tbody=
 class=3D""><tr style=3D"font-size: 0px;" class=3D""><td align=3D"left" =
style=3D"padding: 0px 0px 8px; border-style: none none solid; =
border-bottom-width: 2px; border-bottom-color: rgb(44, 196, 236); =
vertical-align: top;" class=3D""><table cellpadding=3D"0" =
cellspacing=3D"0" border=3D"0" style=3D"width: 183.921875px; font-size: =
0px; color: rgb(44, 196, 236); font-style: normal; font-weight: 700; =
white-space: nowrap;" class=3D""><tbody class=3D""><tr style=3D"font-size:=
 20px;" class=3D""><td align=3D"left" style=3D"vertical-align: top; =
font-family: Arial;" class=3D"">Werner&nbsp;Coetzee<span =
style=3D"font-family: remialcxesans; font-size: 1px; color: rgb(255, =
255, 255); line-height: 1px;" class=3D"">=E2=80=8B</span></td></tr><tr =
style=3D"font-size: 14px; color: rgb(49, 53, 56); font-weight: 400;" =
class=3D""><td align=3D"left" style=3D"vertical-align: top; font-family: =
Arial;" class=3D"">C&nbsp;Developer</td></tr></tbody></table></td></tr><tr=
 style=3D"font-size: 0px;" class=3D""><td align=3D"left" style=3D"padding:=
 4px 0px 0px; vertical-align: top;" class=3D""><table cellpadding=3D"0" =
cellspacing=3D"0" border=3D"0" style=3D"font-size: 0px;" class=3D""><tbody=
 class=3D""><tr style=3D"font-size: 0px;" class=3D""><td align=3D"left" =
style=3D"padding: 8px 0px 0px; vertical-align: top;" class=3D""><table =
cellpadding=3D"0" cellspacing=3D"0" border=3D"0" style=3D"font-size: =
0px;" class=3D""><tbody class=3D""><tr style=3D"font-size: 0px;" =
class=3D""><td align=3D"left" style=3D"vertical-align: top;" =
class=3D""><table cellpadding=3D"0" cellspacing=3D"0" border=3D"0" =
style=3D"font-size: 0px;" class=3D""><tbody class=3D""><tr =
style=3D"font-size: 0px;" class=3D""><td align=3D"left" =
style=3D"vertical-align: top;" class=3D""><table cellpadding=3D"0" =
cellspacing=3D"0" border=3D"0" style=3D"font-size: 0px;" class=3D""><tbody=
 class=3D""><tr style=3D"font-size: 0px;" class=3D""><td align=3D"left" =
style=3D"padding: 0px 0px 4px; vertical-align: top;" class=3D""><table =
cellpadding=3D"0" cellspacing=3D"0" border=3D"0" style=3D"font-size: =
0px; line-height: normal;" class=3D""><tbody class=3D""><tr =
style=3D"font-size: 0px;" class=3D""><td align=3D"left" =
style=3D"vertical-align: top;" class=3D""><span =
id=3D"cid:[email protected]">&lt;image286865.png&gt;</span=
></td><td align=3D"left" style=3D"vertical-align: top;" class=3D""><table =
cellpadding=3D"0" cellspacing=3D"0" border=3D"0" style=3D"font-size: =
0px; color: rgb(0, 0, 1); font-style: normal; font-weight: 400; =
white-space: nowrap;" class=3D""><tbody class=3D""><tr style=3D"font-size:=
 12px;" class=3D""><td align=3D"left" style=3D"padding: 0px 0px 0px 4px; =
vertical-align: top; font-family: Arial;" class=3D""><a =
href=3D"mailto:[email protected]" target=3D"_blank" =
id=3D"LPlnk689713" style=3D"color: rgb(0, 0, 1); text-decoration: none;" =
class=3D""><strong style=3D"font-weight: 400;" =
class=3D"">[email protected]</strong></a></td></tr></tbody></t=
able></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr =
style=3D"font-size: 0px;" class=3D""><td align=3D"left" =
style=3D"vertical-align: top;" class=3D""><table cellpadding=3D"0" =
cellspacing=3D"0" border=3D"0" style=3D"font-size: 0px; line-height: =
normal;" class=3D""><tbody class=3D""><tr style=3D"font-size: 0px;" =
class=3D""><td align=3D"left" style=3D"vertical-align: top;" =
class=3D""><span =
id=3D"cid:[email protected]">&lt;image918509.png&gt;</span=
></td><td align=3D"left" style=3D"vertical-align: top;" class=3D""><table =
cellpadding=3D"0" cellspacing=3D"0" border=3D"0" style=3D"font-size: =
0px; color: rgb(49, 53, 56); font-style: normal; font-weight: 400; =
white-space: nowrap;" class=3D""><tbody class=3D""><tr style=3D"font-size:=
 12px;" class=3D""><td align=3D"left" style=3D"padding: 0px 0px 0px 4px; =
vertical-align: top; font-family: Arial;" =
class=3D"">+27&nbsp;(21)&nbsp;910&nbsp;7700<br =
class=3D""></td></tr></tbody></table></td></tr></tbody></table></td></tr><=
/tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></=
tr><tr style=3D"font-size: 0px; line-height: normal;" class=3D""><td =
align=3D"left" style=3D"padding: 15px 0px 0px; vertical-align: top;" =
class=3D""><span =
id=3D"cid:[email protected]">&lt;image874095.png&gt;</span=
></td></tr></tbody></table></td></tr></tbody></table></div><b =
class=3D"">From:</b><span lang=3D"EN-US" class=3D""><span =
class=3D"Apple-converted-space">&nbsp;</span>devel &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt;<span =
class=3D"Apple-converted-space">&nbsp;</span><b class=3D"">On Behalf =
Of<span class=3D"Apple-converted-space">&nbsp;</span></b>Hillel =
Bilman<br class=3D""><b class=3D"">Sent:</b><span =
class=3D"Apple-converted-space">&nbsp;</span>02 August 2019 16:30<br =
class=3D""><b class=3D"">To:</b><span =
class=3D"Apple-converted-space">&nbsp;</span>Alexander Malysh &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt;<br class=3D""><b =
class=3D"">Cc:</b><span =
class=3D"Apple-converted-space">&nbsp;</span>Kannel Devel &lt;<a =
href=3D"mailto:[email protected]" class=3D"">[email protected]</a>&gt;<br =
class=3D""><b class=3D"">Subject:</b><span =
class=3D"Apple-converted-space">&nbsp;</span>Mysql 8.x will not compile =
with latest Kannel<o:p class=3D""></o:p></span><div class=3D""><br =
class=3D"webkit-block-placeholder"></div><div style=3D"margin: 0cm 0cm =
0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><o:p class=3D"">&nbsp;</o:p></div><div class=3D""><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D"">Hi Alex,<o:p class=3D""></o:p></div><div =
class=3D""><div style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; =
font-family: Calibri, sans-serif;" class=3D""><o:p =
class=3D"">&nbsp;</o:p></div></div><div class=3D""><div style=3D"margin: =
0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D"">The server I'm using has:<o:p class=3D""></o:p></div></div><div=
 class=3D""><div style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; =
font-family: Calibri, sans-serif;" class=3D"">Mysql 8.0.17<o:p =
class=3D""></o:p></div></div><div class=3D""><div style=3D"margin: 0cm =
0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D"">Centos 7.x<o:p class=3D""></o:p></div></div><div =
class=3D""><div style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; =
font-family: Calibri, sans-serif;" class=3D"">Kannel&nbsp;&nbsp;svn-r5278M=
 (latest version from svn)<o:p class=3D""></o:p></div></div><div =
class=3D""><div style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; =
font-family: Calibri, sans-serif;" class=3D""><o:p =
class=3D"">&nbsp;</o:p></div></div><div class=3D""><div style=3D"margin: =
0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D"">Latest Kannel SVN will not compile with Mysql 8.0.17.<o:p =
class=3D""></o:p></div></div><div class=3D""><div style=3D"margin: 0cm =
0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D"">This error with Mysql 8.x was reported in =
redmine&nbsp;08/18/2018&nbsp;&nbsp;<a =
href=3D"https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%=
2Fredmine.kannel.org%2Fissues%2F782&amp;data=3D02%7C01%7C%7C0d7a493199de4c=
4ae61408d717560036%7Cf05b82000f184302889e9f6703297586%7C0%7C0%7C6370035304=
55590653&amp;sdata=3DS%2FjJrklB%2BM%2FtVaIQ9bU51KrWit7baFk7LzyrnyLf5bA%3D&=
amp;reserved=3D0" style=3D"color: purple; text-decoration: underline;" =
class=3D"">https://redmine.kannel.org/issues/782</a><o:p =
class=3D""></o:p></div></div><div class=3D""><div style=3D"margin: 0cm =
0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D"">But there does not seem to be any reported solution.<o:p =
class=3D""></o:p></div></div><div class=3D""><div style=3D"margin: 0cm =
0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><o:p class=3D"">&nbsp;</o:p></div></div><div class=3D""><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D"">Any help is appreciated to be able to =
compile Kannel.<o:p class=3D""></o:p></div></div><div class=3D""><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><o:p =
class=3D"">&nbsp;</o:p></div></div><div class=3D""><div style=3D"margin: =
0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D"">Steps using to compile Kannel:<o:p =
class=3D""></o:p></div></div><div class=3D""><div style=3D"margin: 0cm =
0cm 0.0001pt;" class=3D""><span style=3D"font-size: 12pt; font-family: =
&quot;Times New Roman&quot;, serif; color: rgb(58, 58, 58);" =
class=3D"">svn co<span class=3D"Apple-converted-space">&nbsp;</span><a =
href=3D"https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%=
2Fsvn.kannel.org%2Fgateway%2Ftrunk%2F&amp;data=3D02%7C01%7C%7C0d7a493199de=
4c4ae61408d717560036%7Cf05b82000f184302889e9f6703297586%7C0%7C0%7C63700353=
0455600647&amp;sdata=3DjXRnV%2Blvm8ThzHynnpyo1PFsSzUcr8OdCCDphFmoOFc%3D&am=
p;reserved=3D0" style=3D"color: purple; text-decoration: underline;" =
class=3D"">https://svn.kannel.org/gateway/trunk/</a>&nbsp; =
gateway</span><o:p class=3D""></o:p></div><div style=3D"margin: 0cm 0cm =
0.0001pt;" class=3D"">cd gateway<br class=3D"">./bootstrap.sh<br =
class=3D"">./configure --with-defaults=3Dspeed --with-mysql =
&nbsp;--enable-start-stop-daemon --enable-ssl &nbsp;--disable-localtime =
&nbsp;--enable-cookies<span =
class=3D"Apple-converted-space">&nbsp;</span><br class=3D"">make;make =
install<o:p class=3D""></o:p></div><div class=3D""><div style=3D"margin: =
0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><o:p class=3D"">&nbsp;</o:p></div></div><div class=3D""><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D"">Configuring for Kannel gateway version =
svn-r5278M ...&nbsp;<o:p class=3D""></o:p></div></div><div class=3D""><div=
 style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D"">&nbsp;..<o:p =
class=3D""></o:p></div></div><div class=3D""><div style=3D"margin: 0cm =
0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D"">Showing the database section with the two WARNINGs:<o:p =
class=3D""></o:p></div></div><div class=3D""><div style=3D"margin: 0cm =
0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D"">Configuring DB support ...<br class=3D"">checking whether to =
compile with MySQL support... searching<br class=3D"">checking for =
mysql_config... /bin/mysql_config<br class=3D"">checking mysql =
version... 8.0.17<br class=3D"">checking mysql reentrant libs... =
-L/usr/lib64/mysql -lmysqlclient -lpthread -lm -lrt -lssl -lcrypto =
-ldl<br class=3D"">checking for mysql_init in -lmysqlclient_r... no<br =
class=3D"">checking mysql libs... -L/usr/lib64/mysql -lmysqlclient =
-lpthread -lm -lrt -lssl -lcrypto -ldl<br class=3D"">checking for =
mysql_init in -lmysqlclient... yes<br class=3D"">checking mysql =
includes... -I/usr/include/mysql<br class=3D"">checking mysql/mysql.h =
usability... yes<br class=3D"">checking mysql/mysql.h presence... no<br =
class=3D"">configure: WARNING: mysql/mysql.h: accepted by the compiler, =
rejected by the preprocessor!<br class=3D"">configure: WARNING: =
mysql/mysql.h: proceeding with the compiler's result<br =
class=3D"">checking for mysql/mysql.h... yes<br class=3D"">checking =
mysql/mysql_version.h usability... yes<br class=3D"">checking =
mysql/mysql_version.h presence... yes<br class=3D"">checking for =
mysql/mysql_version.h... yes<br class=3D"">checking for mysql_stmt_init =
in -lmysqlclient_r... no<br class=3D"">checking for mysql_stmt_init in =
-lmysqlclient... yes<br class=3D"">checking whether to compile with =
MySQL support... yes<br class=3D"">checking whether to compile with =
LibSDB support... disabled<br class=3D"">checking whether to compile =
with SQLite2 support... disabled<br class=3D"">checking whether to =
compile with SQLite3 support... disabled<br class=3D"">checking whether =
to compile with Oracle support... disabled<br class=3D"">checking =
whether to compile with PostgresSQL support... disabled<br =
class=3D"">checking whether to compile with Redis support... disabled<br =
class=3D"">checking whether to compile with FreeTDS Ct-Lib support... =
disabled<br class=3D"">checking whether to compile with Cassandra =
support... disabled<o:p class=3D""></o:p></div></div><div class=3D""><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><o:p =
class=3D"">&nbsp;</o:p></div></div><div class=3D""><div style=3D"margin: =
0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D"">root@eco007-truservcomm-jhb1-001 /home/kannel/gateway $ =
make<br class=3D"">make &nbsp;all-recursive<br class=3D"">make[1]: =
Entering directory `/home/kannel/gateway'<br class=3D"">Making all in =
gwlib<br class=3D"">make[2]: Entering directory =
`/home/kannel/gateway/gwlib'<br class=3D"">/bin/sh ../libtool =
&nbsp;--tag=3DCC &nbsp; --mode=3Dcompile gcc -std=3Dgnu99 =
-DHAVE_CONFIG_H -I. -I.. &nbsp; &nbsp; -g -O2 -D_XOPEN_SOURCE=3D600 =
-D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES=3D -I/usr/include/libxml2 =
-I/usr/include/openssl -I/usr/include/mysql -MT dbpool.lo -MD -MP -MF =
.deps/dbpool.Tpo -c -o dbpool.lo dbpool.c<br class=3D"">libtool: =
compile: &nbsp;gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I.. -g -O2 =
-D_XOPEN_SOURCE=3D600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES=3D =
-I/usr/include/libxml2 -I/usr/include/openssl -I/usr/include/mysql -MT =
dbpool.lo -MD -MP -MF .deps/dbpool.Tpo -c dbpool.c &nbsp;-fPIC -DPIC -o =
.libs/dbpool.o<br class=3D"">In file included from gwlib.h:83:0,<br =
class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;from dbpool.c:70:<br class=3D"">dbpool_mysql.c: In function =
'mysql_select':<br class=3D"">dbpool_mysql.c:248:48: error: 'my_bool' =
undeclared (first use in this function)<br class=3D"">&nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bind[i].is_null =3D =
gw_malloc(sizeof(my_bool));<br class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
^<br class=3D"">gwmem.h:122:43: note: in definition of macro =
'gw_malloc'<br class=3D"">&nbsp;#define gw_malloc(size) =
(gw_native_malloc(size))<br class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^<br =
class=3D"">dbpool_mysql.c:248:48: note: each undeclared identifier is =
reported only once for each function it appears in<br class=3D"">&nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bind[i].is_null =3D =
gw_malloc(sizeof(my_bool));<br class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
^<br class=3D"">gwmem.h:122:43: note: in definition of macro =
'gw_malloc'<br class=3D"">&nbsp;#define gw_malloc(size) =
(gw_native_malloc(size))<br class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^<br =
class=3D"">make[2]: *** [dbpool.lo] Error 1<br class=3D"">make[2]: =
Leaving directory `/home/kannel/gateway/gwlib'<br class=3D"">make[1]: =
*** [all-recursive] Error 1<br class=3D"">make[1]: Leaving directory =
`/home/kannel/gateway'<br class=3D"">make: *** [all] Error 2<o:p =
class=3D""></o:p></div></div><div class=3D""><div style=3D"margin: 0cm =
0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><o:p class=3D"">&nbsp;</o:p></div></div><div class=3D""><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D"">root@eco007-truservcomm-jhb1-001 =
/home/kannel/gateway $ rpm -qa|grep mysql<br =
class=3D"">mysql-community-common-8.0.17-1.el7.x86_64<br =
class=3D"">mysql-community-server-8.0.17-1.el7.x86_64<br =
class=3D"">mysql-community-libs-8.0.17-1.el7.x86_64<br =
class=3D"">mysql-community-libs-compat-8.0.17-1.el7.x86_64<br =
class=3D"">mysql80-community-release-el7-3.noarch<br =
class=3D"">mysql-community-client-8.0.17-1.el7.x86_64<br =
class=3D"">mysql-community-devel-8.0.17-1.el7.x86_64<o:p =
class=3D""></o:p></div></div><div class=3D""><div style=3D"margin: 0cm =
0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><o:p =
class=3D"">&nbsp;</o:p></div></div></div></div></div><style =
class=3D"">ul[class*=3D'mb-extra__public-links'], =
ul[class*=3D'mb-note__public-links'], ul[class*=3D'mb-task__public-links']=
 { display: none !important; }</style></div></blockquote></div><br =
class=3D""></div></body></html>=

--Apple-Mail=_08B8B7D3-97C5-4CBF-BC43-BB8E782AB089--