Re: Installation of kannel and sqlbox in Ubuntu 22.04 to use as SMSbox

Robin C <[email protected]> Sat, 22 Apr 2023 19:20:12 +0400
Newsgroups gmane.comp.mobile.kannel.user
Message-ID <CAP+JBkZhx6vq6hnkt7Jf6Sk339wG9kXhgXww_kYO=T54XEFnEA@mail.gmail.com>
--0000000000000b62dc05f9ee502c
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Dear Spameden,
Thanks for your reply. I tried this fix. But then I got the following error=
.

In file included from gwlib/gwlib.h:83,
                 from gwlib/dbpool.c:70:
gwlib/dbpool_mysql.c: In function =E2=80=98mysql_select=E2=80=99:
gwlib/dbpool_mysql.c:248:48: error: =E2=80=98my_bool=E2=80=99 undeclared (f=
irst use in this
function); did you mean =E2=80=98xr_bool=E2=80=99?
  248 |             bind[i].is_null =3D gw_malloc(sizeof(my_bool));
      |                                                ^~~~~~~
gwlib/gwmem.h:122:43: note: in definition of macro =E2=80=98gw_malloc=E2=80=
=99
  122 | #define gw_malloc(size) (gw_native_malloc(size))
      |                                           ^~~~
gwlib/dbpool_mysql.c:248:48: note: each undeclared identifier is reported
only once for each function it appears in
  248 |             bind[i].is_null =3D gw_malloc(sizeof(my_bool));
      |                                                ^~~~~~~
gwlib/gwmem.h:122:43: note: in definition of macro =E2=80=98gw_malloc=E2=80=
=99
  122 | #define gw_malloc(size) (gw_native_malloc(size))
      |                                           ^~~~
make: *** [Makefile:225: gwlib/dbpool.o] Error 1

On Sun, Apr 16, 2023 at 7:00=E2=80=AFPM spameden <[email protected]> wrote=
:

> Ubuntu 22.04 uses bison 3.8.2 - https://packages.ubuntu.com/jammy/bison
> In order to fix the issue you need to either try to compile from SVN or
> apply this patch - https://redmine.kannel.org/issues/699#note-5
> Best to use SVN code actually as it contains recent bug fixes and in most
> cases very stable.
>
> Checkout SVN repo with: svn co https://svn.kannel.org/gateway/trunk and
> then proceed with usual compilation routing
>
>
> On Sun, 16 Apr 2023 at 16:11, Antony Stone <
> [email protected]> wrote:
>
>> On Sunday 16 April 2023 at 13:42:04, Robin C wrote:
>>
>> > Dear Antony ,
>> >
>> > Have you successfully installed Kannel 1.4.5 in Ubuntu 22.04 from sour=
ce
>> > code??
>>
>> No; I use 1.4.5 under Debian, installed from the binary package.
>>
>>
>> Antony.
>>
>> --
>> Python is executable pseudocode.
>> Perl is executable line noise.
>>
>>                                                    Please reply to the
>> list;
>>                                                          please *don't*
>> CC me.
>>
>>

--=20
 *Thanks & Regards,*



      Robin C

     Linux System Administrator

Web : www.refined.co.in

Address : TC 15/1945-3, Kamala Towers, Ganapathy Kovil Road,
Vazhuthacaud, Thiruvananthapuram,
Kerala - 695014






Disclaimer:  This message contains confidential information and is intended
only for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please notify the
sender immediately by e-mail if you have received this e-mail by mistake
and delete this e-mail from your system.  E-mail transmission cannot be
guaranteed to be secure or error-free as information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or contain
viruses.  The sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a result of
e-mail transmission.  If verification is required please request a
hard-copy version.

*7* Switch off as you go |*q *Recycle always | P Print only if absolutely
necessary

--0000000000000b62dc05f9ee502c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Dear Spameden,<div>Thanks for your reply. I tried this fix=
. But then I got the following error.</div><div><br></div><div>In file incl=
uded from gwlib/gwlib.h:83,<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0from gwlib/dbpool.c:70:<br>gwlib/dbpool_mysql.c: In fun=
ction =E2=80=98mysql_select=E2=80=99:<br>gwlib/dbpool_mysql.c:248:48: error=
: =E2=80=98my_bool=E2=80=99 undeclared (first use in this function); did yo=
u mean =E2=80=98xr_bool=E2=80=99?<br>=C2=A0 248 | =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 bind[i].is_null =3D gw_malloc(sizeof(my_bool));<br>=C2=A0=
 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~<br>gwlib/gwmem.h:122:43: note=
: in definition of macro =E2=80=98gw_malloc=E2=80=99<br>=C2=A0 122 | #defin=
e gw_malloc(size) (gw_native_malloc(size))<br>=C2=A0 =C2=A0 =C2=A0 | =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~<br>=
gwlib/dbpool_mysql.c:248:48: note: each undeclared identifier is reported o=
nly once for each function it appears in<br>=C2=A0 248 | =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 bind[i].is_null =3D gw_malloc(sizeof(my_bool));<br=
>=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~<br>gwlib/gwmem.h:122:4=
3: note: in definition of macro =E2=80=98gw_malloc=E2=80=99<br>=C2=A0 122 |=
 #define gw_malloc(size) (gw_native_malloc(size))<br>=C2=A0 =C2=A0 =C2=A0 |=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^=
~~~<br>make: *** [Makefile:225: gwlib/dbpool.o] Error 1<br></div></div><br>=
<div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Ap=
r 16, 2023 at 7:00=E2=80=AFPM spameden &lt;<a href=3D"mailto:spameden@gmail=
.com">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail=
_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204=
,204);padding-left:1ex"><div dir=3D"ltr">Ubuntu 22.04 uses bison 3.8.2 - <a=
 href=3D"https://packages.ubuntu.com/jammy/bison" target=3D"_blank">https:/=
/packages.ubuntu.com/jammy/bison</a><div>In order to fix the issue you need=
 to either try to compile from SVN or apply this patch -=C2=A0<a href=3D"ht=
tps://redmine.kannel.org/issues/699#note-5" target=3D"_blank">https://redmi=
ne.kannel.org/issues/699#note-5</a></div><div>Best to use SVN code actually=
 as it contains recent bug fixes and in most cases very stable.</div><div><=
br></div><div>Checkout SVN repo with:=C2=A0<span style=3D"color:rgb(0,0,0)"=
>svn co </span><a href=3D"https://svn.kannel.org/gateway/trunk" target=3D"_=
blank">https://svn.kannel.org/gateway/trunk</a>=C2=A0and then proceed with =
usual compilation routing</div></div><br><br><div class=3D"gmail_quote"><di=
v dir=3D"ltr" class=3D"gmail_attr">On Sun, 16 Apr 2023 at 16:11, Antony Sto=
ne &lt;<a href=3D"mailto:[email protected]" target=3D"_bla=
nk">[email protected]</a>&gt; wrote:<br></div><blockquote =
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px sol=
id rgb(204,204,204);padding-left:1ex">On Sunday 16 April 2023 at 13:42:04, =
Robin C wrote:<br>
<br>
&gt; Dear Antony ,<br>
&gt; <br>
&gt; Have you successfully installed Kannel 1.4.5 in Ubuntu 22.04 from sour=
ce<br>
&gt; code??<br>
<br>
No; I use 1.4.5 under Debian, installed from the binary package.<br>
<br>
<br>
Antony.<br>
<br>
-- <br>
Python is executable pseudocode.<br>
Perl is executable line noise.<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Please reply to the list;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0please *don&#39;t* C=
C me.<br>
<br>
</blockquote></div>
</blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
iv dir=3D"ltr"><div><div dir=3D"ltr"><span style=3D"font-family:&quot;comic=
 sans ms&quot;,sans-serif"><b style=3D"font-size:13px"><span style=3D"font-=
family:georgia,serif">=C2=A0</span></b><span style=3D"font-family:georgia,s=
erif"><b style=3D"font-size:13px"><span style=3D"font-size:9pt;line-height:=
13px"><i>Thanks &amp; Regards,</i></span></b></span></span><p style=3D"font=
-size:13px;margin:0px"><font color=3D"#6600cc" face=3D"georgia, serif"><spa=
n style=3D"line-height:14px"><b>=C2=A0 =C2=A0 =C2=A0=C2=A0</b></span></font=
></p><p style=3D"font-size:13px;margin:0px"><span style=3D"font-weight:bold=
;font-family:Arial,sans-serif;font-size:9pt;line-height:13px">=C2=A0 =C2=A0=
 =C2=A0<font size=3D"4">=C2=A0</font><font size=3D"2"><font size=3D"2">Robi=
n C</font><br></font></span></p><font size=3D"2"></font><p style=3D"margin:=
0px"><span style=3D"font-weight:bold;font-family:Arial,sans-serif;line-heig=
ht:13px">=C2=A0 =C2=A0=C2=A0 Linux System Administrator</span></p><div dir=
=3D"ltr" style=3D"font-size:12.8px"><span style=3D"font-size:9pt;line-heigh=
t:13px"><font color=3D"#333333"><br></font></span></div><div dir=3D"ltr" st=
yle=3D"font-size:12.8px"><span style=3D"font-size:9pt;line-height:13px"><sp=
an style=3D"color:rgb(51,51,51)">Web :=C2=A0</span><a href=3D"http://www.re=
fined.co.in/" style=3D"color:rgb(17,85,204)" target=3D"_blank">www.refined.=
co.in</a></span></div><div dir=3D"ltr" style=3D"font-size:12.8px"><span sty=
le=3D"font-size:9pt;line-height:13px"><br></span></div><div dir=3D"ltr" sty=
le=3D"font-size:12.8px"><span style=3D"font-size:9pt;line-height:13px">Addr=
ess : TC 15/1945-3, Kamala Towers, Ganapathy Kovil Road,=C2=A0</span><span =
style=3D"font-size:9pt">Vazhuthacaud,=C2=A0</span><span style=3D"font-size:=
9pt">Thiruvananthapuram, Kerala - 695014</span></div><div dir=3D"ltr" style=
=3D"font-size:12.8px"><span style=3D"font-size:9pt;line-height:13px"><font =
color=3D"#333333"><br></font></span></div><div dir=3D"ltr" style=3D"font-si=
ze:12.8px"><span style=3D"font-size:9pt;line-height:13px"><font color=3D"#3=
33333"><br></font></span></div><p style=3D"margin:0px"><span style=3D"font-=
weight:bold;font-family:Arial,sans-serif;line-height:13px"></span></p><div =
dir=3D"ltr" style=3D"font-size:12.8px"><font color=3D"#333333"><span style=
=3D"font-size:9pt;line-height:13px"><i><img src=3D"https://docs.google.com/=
uc?export=3Ddownload&amp;id=3D0B9Ym4LB2FdGLRFJmellhYmtfNW8&amp;revid=3D0B9Y=
m4LB2FdGLVzQ0N3VNL204MldaM2luS0JtVDhRT2hQaGhzPQ"><br></i></span></font></di=
v><p style=3D"font-size:13px;margin:0px"><span style=3D"font-weight:bold;fo=
nt-family:Arial,sans-serif;font-size:9pt;line-height:13px"><br></span></p><=
p style=3D"font-size:13px;margin:0px"><br></p><div><font><div style=3D"font=
-family:georgia,serif;font-size:13px;font-weight:bold"><br></div><div><p st=
yle=3D"text-align:justify"><font face=3D"georgia, serif" size=3D"1">Disclai=
mer:=C2=A0=C2=A0This message contains confidential information and is inten=
ded only for the individual named.=C2=A0=C2=A0If you are not the named addr=
essee you should not disseminate, distribute or copy this e-mail.=C2=A0=C2=
=A0Please notify the sender immediately by e-mail if you have received this=
 e-mail by mistake and delete this e-mail from your system.=C2=A0=C2=A0E-ma=
il transmission cannot be guaranteed to be secure or error-free as informat=
ion could be intercepted, corrupted, lost, destroyed, arrive late or incomp=
lete, or contain viruses.=C2=A0=C2=A0The sender therefore does not accept l=
iability for any errors or omissions in the contents of this message, which=
 arise as a result of e-mail transmission.=C2=A0=C2=A0If verification is re=
quired please request a hard-copy version.</font></p><p style=3D"font-weigh=
t:bold;text-align:justify"><b style=3D"text-align:start;color:rgb(80,0,80)"=
><i><span style=3D"font-size:14pt;font-family:&quot;Wingdings 3&quot;;color=
:rgb(192,0,0)">7</span></i></b><span style=3D"font-weight:normal;text-align=
:start;color:rgb(192,0,0);font-size:14pt;font-family:Consolas">=C2=A0</span=
><span style=3D"font-weight:normal;text-align:start;color:rgb(80,0,80);font=
-size:9pt;font-family:&quot;Segoe UI&quot;,sans-serif">Switch off as you go=
</span><span style=3D"font-weight:normal;text-align:start;color:rgb(23,54,9=
3);font-size:11pt;font-family:Calibri,sans-serif">=C2=A0</span><span style=
=3D"font-weight:normal;text-align:start;color:rgb(23,54,93);font-size:11pt;=
font-family:TechnicLite,serif">|</span><b style=3D"text-align:start;color:r=
gb(80,0,80)"><span style=3D"font-size:14pt;font-family:Webdings;color:rgb(0=
,176,240)">q=C2=A0</span></b><span style=3D"font-weight:normal;text-align:s=
tart;color:rgb(80,0,80);font-size:9pt;font-family:&quot;Segoe UI&quot;,sans=
-serif">Recycle always</span><span style=3D"font-weight:normal;text-align:s=
tart;color:rgb(23,54,93);font-size:11pt;font-family:Calibri,sans-serif">=C2=
=A0</span><span style=3D"font-weight:normal;text-align:start;color:rgb(23,5=
4,93);font-size:11pt;font-family:TechnicLite,serif">|</span><span style=3D"=
font-weight:normal;text-align:start;color:rgb(23,54,93);font-size:11pt;font=
-family:Calibri,sans-serif">=C2=A0</span><span style=3D"font-weight:normal;=
text-align:start;color:rgb(0,176,80);font-size:14pt;font-family:Webdings">P=
</span><span style=3D"font-weight:normal;text-align:start;color:rgb(23,54,9=
3);font-size:11pt;font-family:Consolas">=C2=A0</span><span style=3D"font-we=
ight:normal;text-align:start;color:rgb(80,0,80);font-size:9pt;font-family:&=
quot;Segoe UI&quot;,sans-serif">Print only if absolutely necessary</span></=
p></div></font></div></div></div></div></div>

--0000000000000b62dc05f9ee502c--