<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
On 1/10/23 4:46 PM, Mun Johl via c-ares wrote:<br>
<blockquote type="cite"
cite="mid:SJ0PR04MB8289A6A6AF24AC656CEE060A9CFF9@SJ0PR04MB8289.namprd04.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@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;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}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]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Courier
New"">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">I’m trying to compile c-ares on a RHEL7 server
with gcc/g++ v4.8.5 . My compilation is failing with many
errors, the first of which is as follows:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">In file included from ares-test.h:12:0,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""> from ares-test-main.cc:4:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">./gmock-1.11.0/gtest/gtest.h: In static member
function 'static constexpr bool
testing::internal::MatcherBase<T>::IsInlined()':<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">./gmock-1.11.0/gtest/gtest.h:6495:12: error:
'is_trivially_copy_constructible' is not a member of 'std'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">Based on a Google search, I infer that my gcc
version is too old. What are the minimum requirements to
compile c-ares?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""><o:p> </o:p></span></p>
</div>
</blockquote>
<br>
You just need to disable the test cases. The test cases require a
C++11 or higher compiler. c-ares itself will build fine with any
c89 compiler.<br>
<br>
If you're using the autotools configure script, just pass
--disable-tests if you're using CMake, you would pass
-DCARES_BUILD_TESTS=OFF<br>
<br>
-Brad<br>
</body>
</html>