<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<meta name="Microsoft Theme 2.00" content="Arctic 011">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Verdana",sans-serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#9D454F;
        text-decoration:underline;}
span.E-MailFormatvorlage38
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" background="cid:image002.gif@01D5DAAD.6B6CFDC0" lang="DE" link="#9D454F" vlink="#814E95">
<img src="cid:image002.gif@01D5DAAD.6B6CFDC0" v:src="cid:image002.gif@01D5DAAD.6B6CFDC0" v:shapes="_x0000_Mail" width="0" height="0" class="shape" style="display:none;width:0;height:0"><!--[if gte mso 9]><xml>
<v:background id="_x0000_s1025" o:bwmode="white" o:targetscreensize="1024,768">
<v:fill src="cid:image002.gif@01D5DAAD.6B6CFDC0" o:title="background_arctic" type="frame" />
</v:background></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US">Hello Cumhur,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US">I don’t use RHEL for development, maybe somebody else can comment here. The RPM packages build fine for RHEL7, maybe
 you can have a look to the pkg files for this distribution in the Kamailio git master to see if there is also a workaround present.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US">I did a quick google search; it could be to be related to a 32/64 include issue:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US"><a href="https://askubuntu.com/questions/709893/14-04-01-32-bit-missing-g-64-bit-include-files-when-cross-compiling">https://askubuntu.com/questions/709893/14-04-01-32-bit-missing-g-64-bit-include-files-when-cross-compiling</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US">If you are having a patch to solve this problem for RHEL7, just create a pull request.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US">Henning<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US">--
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US">Henning Westerholt –
</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US"><a href="https://skalatan.de/blog/"><span lang="EN-GB" style="color:#0563C1">https://skalatan.de/blog/</span></a></span><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US">Kamailio services –
</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US"><a href="https://gilawa.com/"><span lang="EN-GB" style="color:#0563C1">https://gilawa.com</span></a></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US">
<span lang="EN-GB"><o:p></o:p></span></span></p>
</div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"> sr-dev <sr-dev-bounces@lists.kamailio.org>
<b>On Behalf Of </b>CUMHUR KARAHAN<br>
<b>Sent:</b> Friday, January 31, 2020 1:09 PM<br>
<b>To:</b> sr-dev@lists.kamailio.org<br>
<b>Subject:</b> [sr-dev] Kamailio build errors on RHEL7<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">I hope this is the right group for my question. It’s related to a Kamailio build. I tried to build Kamailio
 in RHEL7 and I encountered some problems I could fix it locally. I tried to find any email in the user and the developer Kamailio groups by skimming the mails, however there is no clue about it. I need to know your opinion about it.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">The build error is:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">*******************************************************************<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">CC (gcc) [M app_sqlang.so]              app_sqlang_api.o<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">CC (gcc) [M app_sqlang.so]              app_sqlang_kemi_export.o<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">CC (gcc) [M app_sqlang.so]              app_sqlang_mod.o<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">make --no-print-directory -C ./squirrel/squirrel SQMARCH64="-m64" CC_EXTRA_FLAGS="-fPIC" \<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">        OUT="../../libsquirrel.a" sq64<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">gcc -O2 -m64 -D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c sqapi.cpp sqbaselib.cpp sqfuncstate.cpp
 sqdebug.cpp sqlexer.cpp sqobject.cpp sqcompiler.cpp sqstate.cpp sqtable.cpp sqmem.cpp sqvm.cpp sqclass.cpp -I../include -I. -Iinclude -fPIC<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">In file included from sqpcheader.h:14:0,<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">                 from sqapi.cpp:4:<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">/usr/include/c++/4.8.2/new:39:28: fatal error: bits/c++config.h: No such file or directory<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">#include <bits/c++config.h><o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">                            ^<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">compilation terminated.<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">…<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">******************************************************************<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">As you can see above, the make command stopped in app_sqlang.so stage due to an including error. These problems
 are classic for builds on RHEL7 for a lot of tools we need to compile. So, I’m familiar with it and fixed it easily:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">I just appended “-I/usr/include/c++/4.8.2/i686-redhat-linux/” in “INCZ?= -I$(SQUIRREL)/include -I.” row for
 both ./src/modules/app_sqlang/squirrel/sqstdlib/Makefile and ./src/modules/app_sqlang/squirrel/squirrel/Makefile<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">Then Kamailio build is finished properly.
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">Uname output is here:
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><i><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">Linux gearbox07 3.10.0-862.6.3.el7.x86_64 #1 SMP Fri Jun 15 17:57:37 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux<o:p></o:p></span></i></b></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">My question is that if it’s normal or not. Is there anybody who built Kamailio on RHEL7 environment here? Would
 you help me to understand the situation, please?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">Thanks…<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Century Gothic",sans-serif;color:windowtext">S. Cumhur Karahan<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:8.0pt;font-family:"Calibri",sans-serif;color:windowtext"><br>
<br>
<a href="https://tvplus.com.tr/"><span style="text-decoration:none"><img border="0" id="_x0000_i1025" src="http://s.turkcell.com.tr/SiteAssets/Genel/mail-imza.jpg"></span></a><o:p></o:p></span></p>
<p style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Times New Roman",serif">Bu elektronik posta ve onunla iletilen butun dosyalar sadece gondericisi tarafindan almasi amaclanan yetkili gercek ya da tuzel kisinin kullanimi icindir.
 Eger soz konusu yetkili alici degilseniz bu elektronik postanin icerigini aciklamaniz, kopyalamaniz, yonlendirmeniz ve kullanmaniz kesinlikle yasaktir ve bu elektronik postayi derhal silmeniz gerekmektedir.<o:p></o:p></span></p>
<p style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Times New Roman",serif">TURKCELL bu mesajin icerdigi bilgilerin doğruluğu veya eksiksiz oldugu konusunda herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne sekilde
 olursa olsun iceriginden, iletilmesinden, alinmasindan ve saklanmasindan sorumlu degildir. Bu mesajdaki gorusler yalnizca gonderen kisiye aittir ve TURKCELLin goruslerini yansitmayabilir<o:p></o:p></span></p>
<p style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Times New Roman",serif">Bu e-posta bilinen butun bilgisayar viruslerine karsi taranmistir.<o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="margin-left:35.4pt;text-align:center">
<span lang="EN-US" style="font-size:10.0pt;font-family:"Times New Roman",serif;color:windowtext">
<hr size="2" width="100%" align="center">
</span></div>
<p style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Times New Roman",serif">This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
 If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying or use of any of the information is strictly prohibited, and the e-mail should immediately be deleted.<o:p></o:p></span></p>
<p style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Times New Roman",serif">TURKCELL makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any
 kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. The opinions expressed in this message belong to sender alone and may not necessarily reflect the opinions of TURKCELL.<o:p></o:p></span></p>
<p style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Times New Roman",serif">This e-mail has been scanned for all known computer viruses.<o:p></o:p></span></p>
</div>
</div>
</body>
</html>