[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-dev
Subject:    [sr-dev] Kamailio build errors on RHEL7
From:       CUMHUR KARAHAN <cumhur.karahan () consultant ! turkcell ! com ! tr>
Date:       2020-01-31 12:08:44
Message-ID: caf6b620a6254b53bda9dd6abb467829 () consultant ! turkcell ! com ! tr
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi all,

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.

The build error is:
*******************************************************************
CC (gcc) [M app_sqlang.so]              app_sqlang_api.o
CC (gcc) [M app_sqlang.so]              app_sqlang_kemi_export.o
CC (gcc) [M app_sqlang.so]              app_sqlang_mod.o
make --no-print-directory -C ./squirrel/squirrel SQMARCH64="-m64" \
CC_EXTRA_FLAGS="-fPIC" \  OUT="../../libsquirrel.a" sq64
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 In file included from sqpcheader.h:14:0,
                 from sqapi.cpp:4:
/usr/include/c++/4.8.2/new:39:28: fatal error: bits/c++config.h: No such file or \
directory #include <bits/c++config.h>
                            ^
compilation terminated.
...
******************************************************************
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:

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

Then Kamailio build is finished properly.

Uname output is here:
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

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?

Thanks...

S. Cumhur Karahan



[http://s.turkcell.com.tr/SiteAssets/Genel/mail-imza.jpg] <https://tvplus.com.tr/>

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.

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

Bu e-posta bilinen butun bilgisayar viruslerine karsi taranmistir.

________________________________

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.

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.

This e-mail has been scanned for all known computer viruses.


[Attachment #5 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Microsoft Theme 2.00" content="Arctic 011">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<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;}
h1
	{mso-style-priority:9;
	mso-style-link:"Heading 1 Char";
	margin-top:12.0pt;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:0cm;
	margin-bottom:.0001pt;
	page-break-after:avoid;
	font-size:16.0pt;
	font-family:"Verdana",sans-serif;
	color:black;}
h2
	{mso-style-priority:9;
	mso-style-link:"Heading 2 Char";
	margin-top:2.0pt;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:0cm;
	margin-bottom:.0001pt;
	page-break-after:avoid;
	font-size:14.0pt;
	font-family:"Verdana",sans-serif;
	color:black;
	font-weight:normal;}
h3
	{mso-style-priority:9;
	mso-style-link:"Heading 3 Char";
	margin-top:2.0pt;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:0cm;
	margin-bottom:.0001pt;
	page-break-after:avoid;
	font-size:13.0pt;
	font-family:"Verdana",sans-serif;
	color:black;
	font-weight:normal;}
h4
	{mso-style-priority:9;
	mso-style-link:"Heading 4 Char";
	margin-top:2.0pt;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:0cm;
	margin-bottom:.0001pt;
	page-break-after:avoid;
	font-size:14.0pt;
	font-family:"Verdana",sans-serif;
	color:black;
	font-weight:normal;}
h5
	{mso-style-priority:9;
	mso-style-link:"Heading 5 Char";
	margin-top:2.0pt;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:0cm;
	margin-bottom:.0001pt;
	page-break-after:avoid;
	font-size:13.0pt;
	font-family:"Verdana",sans-serif;
	color:black;
	font-weight:normal;}
h6
	{mso-style-priority:9;
	mso-style-link:"Heading 6 Char";
	margin-top:2.0pt;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:0cm;
	margin-bottom:.0001pt;
	page-break-after:avoid;
	font-size:11.0pt;
	font-family:"Verdana",sans-serif;
	color:black;
	font-weight:normal;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#9D454F;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#814E95;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Century Gothic",sans-serif;
	color:windowtext;}
span.Heading1Char
	{mso-style-name:"Heading 1 Char";
	mso-style-priority:9;
	mso-style-link:"Heading 1";
	font-family:"Verdana",sans-serif;
	color:black;
	font-weight:bold;}
span.Heading2Char
	{mso-style-name:"Heading 2 Char";
	mso-style-priority:9;
	mso-style-link:"Heading 2";
	font-family:"Verdana",sans-serif;
	color:black;}
span.Heading3Char
	{mso-style-name:"Heading 3 Char";
	mso-style-priority:9;
	mso-style-link:"Heading 3";
	font-family:"Verdana",sans-serif;
	color:black;}
span.Heading4Char
	{mso-style-name:"Heading 4 Char";
	mso-style-priority:9;
	mso-style-link:"Heading 4";
	font-family:"Verdana",sans-serif;
	color:black;}
span.Heading5Char
	{mso-style-name:"Heading 5 Char";
	mso-style-priority:9;
	mso-style-link:"Heading 5";
	font-family:"Verdana",sans-serif;
	color:black;}
span.Heading6Char
	{mso-style-name:"Heading 6 Char";
	mso-style-priority:9;
	mso-style-link:"Heading 6";
	font-family:"Verdana",sans-serif;
	color:black;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@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:image001.gif@01D5D843.516C2CF0" lang="EN-US" \
link="#9D454F" vlink="#814E95"> <img src="cid:image001.gif@01D5D843.516C2CF0" \
v:src="cid:image001.gif@01D5D843.516C2CF0" 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:image001.gif@01D5D843.516C2CF0" \
o:title="background_arctic" type="frame" /> </v:background></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">Hi all,<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">I hope this is the right group for my \
question. It&#8217;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"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">The build error is:<o:p></o:p></span></p> \
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">*******************************************************************<o:p></o:p></span></p>
 <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">CC (gcc) [M \
app_sqlang.so]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
app_sqlang_api.o<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">CC (gcc) [M \
app_sqlang.so]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
app_sqlang_kemi_export.o<o:p></o:p></span></p> <p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">CC (gcc) [M \
app_sqlang.so]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
app_sqlang_mod.o<o:p></o:p></span></b></p> <p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">make --no-print-directory -C \
./squirrel/squirrel SQMARCH64=&quot;-m64&quot; CC_EXTRA_FLAGS=&quot;-fPIC&quot; \
\<o:p></o:p></span></b></p> <p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
OUT=&quot;../../libsquirrel.a&quot; sq64<o:p></o:p></span></b></p> <p \
class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,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"><b><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">In file included from \
sqpcheader.h:14:0,<o:p></o:p></span></b></p> <p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
from sqapi.cpp:4:<o:p></o:p></span></b></p> <p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">/usr/include/c&#43;&#43;/4.8.2/new:39:28: \
fatal error: bits/c&#43;&#43;config.h: No such file or \
directory<o:p></o:p></span></b></p> <p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">#include \
&lt;bits/c&#43;&#43;config.h&gt;<o:p></o:p></span></b></p> <p \
class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n \
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^<o:p></o:p></span></b></p> <p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">compilation \
terminated.<o:p></o:p></span></b></p> <p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">&#8230;<o:p></o:p></span></b></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">******************************************************************<o:p></o:p></span></p>
 <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,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&#8217;m familiar \
with it and fixed it easily:<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">I just appended \
&#8220;-I/usr/include/c&#43;&#43;/4.8.2/i686-redhat-linux/&#8221; in &#8220;INCZ?= \
-I$(SQUIRREL)/include -I.&#8221; 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"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">Then Kamailio build is finished properly. \
<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">Uname output is here: \
<o:p></o:p></span></p> <p class="MsoNormal"><b><i><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,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"><span \
style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">My question is that if it&#8217;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"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">Thanks&#8230;<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Century \
Gothic&quot;,sans-serif;color:windowtext">S. Cumhur Karahan<o:p></o:p></span></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> </div>
<div style="font-size:8pt;  font-family: 'Calibri',sans-serif;"><br>
<br>
<a href="https://tvplus.com.tr/" https:tvplus.com.tr=""><img border="0" \
src="http://s.turkcell.com.tr/SiteAssets/Genel/mail-imza.jpg"> </a>
<p><font face="Times New Roman" size="2"></p>
<p>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.</p> <p>TURKCELL bu mesajin icerdigi \
bilgilerin do&#287;rulu&#287;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</p> <p>Bu e-posta bilinen butun bilgisayar viruslerine karsi \
taranmistir.</p> <hr>
<p>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.</p> <p>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.</p> <p>This e-mail has been scanned for all known computer \
viruses.</p> </div>
</font>
</body>
</html>


["image001.gif" (image/gif)]
[Attachment #7 (unknown)]

_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic