From Mun.Johl at wdc.com Tue Jan 10 22:46:29 2023 From: Mun.Johl at wdc.com (Mun Johl) Date: Tue, 10 Jan 2023 21:46:29 +0000 Subject: Minimum requirements for gcc in order to compile c-ares? Message-ID: Hello, 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: In file included from ares-test.h:12:0, from ares-test-main.cc:4: ./gmock-1.11.0/gtest/gtest.h: In static member function 'static constexpr bool testing::internal::MatcherBase::IsInlined()': ./gmock-1.11.0/gtest/gtest.h:6495:12: error: 'is_trivially_copy_constructible' is not a member of 'std' Based on a Google search, I infer that my gcc version is too old. What are the minimum requirements to compile c-ares? Thank you and regards, -- Mun -------------- next part -------------- An HTML attachment was scrubbed... URL: From brad at brad-house.com Tue Jan 10 23:15:17 2023 From: brad at brad-house.com (Brad House) Date: Tue, 10 Jan 2023 17:15:17 -0500 Subject: Minimum requirements for gcc in order to compile c-ares? In-Reply-To: References: Message-ID: <7a98b5fd-22b8-bf96-d8a0-1220c9f0ac44@brad-house.com> On 1/10/23 4:46 PM, Mun Johl via c-ares wrote: > > Hello, > > 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: > > In file included from ares-test.h:12:0, > > ???????????????? from ares-test-main.cc:4: > > ./gmock-1.11.0/gtest/gtest.h: In static member function 'static > constexpr bool testing::internal::MatcherBase::IsInlined()': > > ./gmock-1.11.0/gtest/gtest.h:6495:12: error: > 'is_trivially_copy_constructible' is not a member of 'std' > > Based on a Google search, I infer that my gcc version is too old.? > What are the minimum requirements to compile c-ares? > 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. If you're using the autotools configure script, just pass --disable-tests? if you're using CMake, you would pass -DCARES_BUILD_TESTS=OFF -Brad -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mun.Johl at wdc.com Wed Jan 11 01:10:14 2023 From: Mun.Johl at wdc.com (Mun Johl) Date: Wed, 11 Jan 2023 00:10:14 +0000 Subject: Minimum requirements for gcc in order to compile c-ares? In-Reply-To: <7a98b5fd-22b8-bf96-d8a0-1220c9f0ac44@brad-house.com> References: <7a98b5fd-22b8-bf96-d8a0-1220c9f0ac44@brad-house.com> Message-ID: Hi Brad, On 1/10/23 4:46 PM, Mun Johl via c-ares wrote: Hello, 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: In file included from ares-test.h:12:0, from ares-test-main.cc:4: ./gmock-1.11.0/gtest/gtest.h: In static member function 'static constexpr bool testing::internal::MatcherBase::IsInlined()': ./gmock-1.11.0/gtest/gtest.h:6495:12: error: 'is_trivially_copy_constructible' is not a member of 'std' Based on a Google search, I infer that my gcc version is too old. What are the minimum requirements to compile c-ares? 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. If you're using the autotools configure script, just pass --disable-tests if you're using CMake, you would pass -DCARES_BUILD_TESTS=OFF -Brad [Mun] Thank you very much for your quick and informative response! The use of --disable-tests did the trick. Best regards, -- Mun -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel at haxx.se Sat Jan 28 23:04:40 2023 From: daniel at haxx.se (Daniel Stenberg) Date: Sat, 28 Jan 2023 23:04:40 +0100 (CET) Subject: [RELEASE] c-ares 1.19.0 Message-ID: <70s580n7-ss4-3os7-8rpo-57pq742117rr@unkk.fr> Hi friends. c-ares 1.19.0 was just packaged and uploaded. Available as always from: https://c-ares.org/ c-ares version 1.19.0 This is a feature and bugfix release. It addresses a couple of new feature requests as well as a couple of bug fixes. Security: o Low. Stack overflow in ares_set_sortlist() which is used during c-ares initialization and typically provided by an administrator and not an end user. [24] Changes: o Windows: Drop support for XP and derivatives which greatly cleans up initialization code. [3] o Add ARES_OPT_HOSTS_FILE similar to ARES_OPT_RESOLVCONF for specifying a custom hosts file location. [10] o Add vcpkg installation instructions [13] Bug fixes: o Fix cross-compilation from Windows to Linux due to CPACK logic. [1] o Fix memory leak in reading /etc/hosts when using localhost fallback. [2] o Fix chain building c-ares when libresolv is already included by another project [4] o File lookup should not immediately abort as there may be other tries due to search criteria. o Asterisks should be allowed in host validation as CNAMEs may reference wildcard domains [5] o AutoTools build system referenced bad STDC_HEADERS macro [6] o Even if one address class returns a failure for ares_getaddrinfo() we should still return the results we have o CMake Windows: DLLs did not include resource file to include versions [7] [8] o CMake: Guard target creation in exported config [9] o Fix ares_getaddrinfo() numerical address resolution with AF_UNSPEC [11] o Apple: fix libresolv configured query times. [12] o Fix tools and help information [14] [15] o Various documentation fixes and cleanups [16] [22] [25] o Add include guards to ares_data.h [17] o c-ares could try to exceed maximum number of iovec entries supported by system [18] o CMake package config generation allow for absolute install paths [19] o Intel compiler fixes [20] o ares_strsplit bugs [21] [23] o The RFC6761 6.3 states localhost subdomains must be offline too. [26] Thanks go to these friendly people for their efforts and contributions: Boby Reynolds (@reynoldsbd) Brad House (@bradh352) Brad Spencer (@b-spencer) @bsergean Daniel Stenberg (@bagder) Dmitry Karpov @FrankXie05 @hopper-vul Jonathan Ringer (@jonringer) Kai Pastor (@dg0yt) @lifenjoiner Manish Mehra (@mmehra) @marc-groundctl Nikolaos Chatzikonstantinou (@createyourpersonalaccount) Ridge Kennedy (@ridgek) Sam James (@thesamesam) Stephen Sachs (@stephenmsachs) Thomas Dreibholz (@dreibh) (18 contributors) References to bug reports and discussions on issues: [1] = https://github.com/c-ares/c-ares/pull/436 [2] = https://github.com/c-ares/c-ares/issues/439 [3] = https://github.com/c-ares/c-ares/pull/445 [4] = https://github.com/c-ares/c-ares/pull/451 [5] = https://github.com/c-ares/c-ares/issues/457 [6] = https://github.com/c-ares/c-ares/pull/459 [7] = https://github.com/c-ares/c-ares/issues/460 [8] = https://github.com/c-ares/c-ares/pull/468 [9] = https://github.com/c-ares/c-ares/pull/464 [10] = https://github.com/c-ares/c-ares/pull/465 [11] = https://github.com/c-ares/c-ares/pull/469 [12] = https://github.com/c-ares/c-ares/pull/467 [13] = https://github.com/c-ares/c-ares/pull/478 [14] = https://github.com/c-ares/c-ares/pull/479 [15] = https://github.com/c-ares/c-ares/pull/481 [16] = https://github.com/c-ares/c-ares/pull/490 [17] = https://github.com/c-ares/c-ares/pull/491 [18] = https://github.com/c-ares/c-ares/pull/489 [19] = https://github.com/c-ares/c-ares/pull/486 [20] = https://github.com/c-ares/c-ares/pull/485 [21] = https://github.com/c-ares/c-ares/pull/492 [22] = https://github.com/c-ares/c-ares/pull/494 [23] = https://github.com/c-ares/c-ares/pull/495 [24] = https://github.com/c-ares/c-ares/pull/497 [25] = https://github.com/c-ares/c-ares/issues/487 [26] = https://github.com/c-ares/c-ares/issues/477 -- / daniel.haxx.se