<div dir="ltr">Need to install mysql-devel<div><a href="https://github.com/kamailio/kamailio/blob/master/pkg/kamailio/obs/kamailio.spec#L554">https://github.com/kamailio/kamailio/blob/master/pkg/kamailio/obs/kamailio.spec#L554</a><br><br>And then apply Daniel recommendations.</div></div><br><div class="gmail_quote"><div dir="ltr">ср, 9 мая 2018 г. в 14:42, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>can you go to src/modules/db_mysql and run:</p>
<p>make clean</p>
<p>make Q=0</p>
<p>and send the output here?</p>
<p>Cheers,<br>
Daniel<br>
</p></div><div text="#000000" bgcolor="#FFFFFF">
<br>
<div class="m_4864339614222017733moz-cite-prefix">On 09.05.18 10:46, Ye, Charlie (NSB -
CN/Qingdao) wrote:<br>
</div>
<blockquote type="cite">
<div class="m_4864339614222017733WordSection1">
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Hi
Daniel,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Please
find my answer as below:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">The
operating system: Red Hat Enterprise Linux Server release
7.4 (Maipo).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">I
didn’t modify the Makefile, only include db_mysql module
when made cfg.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Thanks
and Best Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Charlie<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="text-align:left" align="left"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext" lang="EN-US"> Daniel-Constantin Mierla
[<a class="m_4864339614222017733moz-txt-link-freetext" href="mailto:miconda@gmail.com" target="_blank">mailto:miconda@gmail.com</a>] <br>
<b>Sent:</b> 2018</span><span style="font-size:11.0pt;font-family:"\005fae\008f6f\0096c5\009ed1",sans-serif;color:windowtext">年</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext" lang="EN-US">5</span><span style="font-size:11.0pt;font-family:"\005fae\008f6f\0096c5\009ed1",sans-serif;color:windowtext">月</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext" lang="EN-US">9</span><span style="font-size:11.0pt;font-family:"\005fae\008f6f\0096c5\009ed1",sans-serif;color:windowtext">日</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext" lang="EN-US"> 16:27<br>
<b>To:</b> Kamailio (SER) - Users Mailing List
<a class="m_4864339614222017733moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org" target="_blank"><sr-users@lists.kamailio.org></a>; Ye, Charlie (NSB -
CN/Qingdao) <a class="m_4864339614222017733moz-txt-link-rfc2396E" href="mailto:charlie.ye@nokia-sbell.com" target="_blank"><charlie.ye@nokia-sbell.com></a><br>
<b>Subject:</b> Re: [SR-Users] Build Kamailio with
MariaDB failed.<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal" style="text-align:left" align="left"><span lang="EN-US"><u></u> <u></u></span></p>
<p><span lang="EN-US">Hello,</span><span style="font-size:12.0pt" lang="EN-US"><u></u><u></u></span></p>
<p><span lang="EN-US">what operating system are you using?<u></u><u></u></span></p>
<p><span lang="EN-US">Have you done any changes to the
Makefiles, or is just stock Kamailio?<u></u><u></u></span></p>
<p><span lang="EN-US">Cheers,<br>
Daniel<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On 09.05.18 10:23, Ye,
Charlie (NSB - CN/Qingdao) wrote:<u></u><u></u></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Hi all,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Does everyone use
MariaDB in Kamailio? When I built Kamailio with MariaDB,
the below error happened. Would anyone give a help? Thanks
in advance!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal"><i><span lang="EN-US">[root@clcmos
/usr/local/src/kamailio-devel/kamailio]$ # make all</span></i><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span lang="EN-US">make -C src/ all</span></i><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span lang="EN-US">make[1]: Entering
directory `/usr/local/src/kamailio-devel/kamailio/src'</span></i><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span lang="EN-US">make[3]:
`libsrdb2.so.1.0' is up to date.</span></i><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span lang="EN-US">make[3]:
`libsrdb1.so.1.0' is up to date.</span></i><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span lang="EN-US">LD (gcc) [M
db_mysql.so] db_mysql.so</span></i><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span style="background:yellow" lang="EN-US">/usr/bin/ld: cannot find -lmariadb</span></i><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span lang="EN-US">collect2: error: ld
returned 1 exit status</span></i><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span lang="EN-US">make[2]: ***
[db_mysql.so] Error 1</span></i><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span lang="EN-US">make[1]: ***
[modules] Error 1</span></i><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span lang="EN-US">make[1]: Leaving
directory `/usr/local/src/kamailio-devel/kamailio/src'</span></i><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span lang="EN-US">make: *** [all]
Error 2</span></i><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks and Best
Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Charlie<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left" align="left"><span lang="EN-US"><br>
<br>
<br>
<u></u><u></u></span></p>
<pre><span lang="EN-US">_______________________________________________<u></u><u></u></span></pre>
<pre><span lang="EN-US">Kamailio (SER) - Users Mailing List<u></u><u></u></span></pre>
<pre><span lang="EN-US"><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><u></u><u></u></span></pre>
<pre><span lang="EN-US"><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><u></u><u></u></span></pre>
</blockquote>
<p class="MsoNormal" style="text-align:left" align="left"><span lang="EN-US"><br>
<br>
<u></u><u></u></span></p>
<pre><span lang="EN-US">-- <u></u><u></u></span></pre>
<pre><span lang="EN-US">Daniel-Constantin Mierla<u></u><u></u></span></pre>
<pre><span lang="EN-US"><a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a><u></u><u></u></span></pre>
<pre><span lang="EN-US">Kamailio World Conference - May 14-16, 2018 - <a href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a><u></u><u></u></span></pre>
</div>
</blockquote>
<br>
<pre class="m_4864339614222017733moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_4864339614222017733moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_4864339614222017733moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_4864339614222017733moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>