Building c-ares 1.24.0 fails to build on OpenBSD.
Our current port is at 1.19.1.
I can build 1.20.1, 1.21.0, 1.22.1, and 1.23.0 just fine.
/usr/bin/libtool --tag=CXX --mode=link c++ -std=c++14 -I/usr/local/include -DGTEST_HAS_PTHREAD=1 -O2 -pipe -pthread -Wall -pthread -o arestest arestest-ares-test-main.o arestest-ares-test-init.o arestest-ares-test.o arestest-ares-test-ns.o arestest-ares-test-parse.o arestest-ares-test-parse-a.o arestest-ares-test-parse-aaaa.o arestest-ares-test-parse-caa.o arestest-ares-test-parse-mx.o arestest-ares-test-parse-naptr.o arestest-ares-test-parse-ns.o arestest-ares-test-parse-ptr.o arestest-ares-test-parse-soa.o arestest-ares-test-parse-soa-any.o arestest-ares-test-parse-srv.o arestest-ares-test-parse-txt.o arestest-ares-test-parse-uri.o arestest-ares-test-misc.o arestest-ares-test-live.o arestest-ares-test-mock.o arestest-ares-test-mock-ai.o arestest-ares-test-internal.o arestest-dns-proto.o arestest-dns-proto-test.o -L/usr/local/lib -lgmock -lgtest -lpthread ./../src/lib/libcares.la -lpthread -lpthread
libtool: link: c++ -o .libs/arestest -pthread -std=c++14 -I/usr/local/include -DGTEST_HAS_PTHREAD=1 -O2 -pipe -Wall arestest-ares-test-main.o arestest-ares-test-init.o arestest-ares-test.o arestest-ares-test-ns.o arestest-ares-test-parse.o arestest-ares-test-parse-a.o arestest-ares-test-parse-aaaa.o arestest-ares-test-parse-caa.o arestest-ares-test-parse-mx.o arestest-ares-test-parse-naptr.o arestest-ares-test-parse-ns.o arestest-ares-test-parse-ptr.o arestest-ares-test-parse-soa.o arestest-ares-test-parse-soa-any.o arestest-ares-test-parse-srv.o arestest-ares-test-parse-txt.o arestest-ares-test-parse-uri.o arestest-ares-test-misc.o arestest-ares-test-live.o arestest-ares-test-mock.o arestest-ares-test-mock-ai.o arestest-ares-test-internal.o arestest-dns-proto.o arestest-dns-proto-test.o -L.libs -lgmock -lgtest -lpthread -lc++ -lc++abi -lm -lcares -Wl,-rpath-link,/usr/local/lib
ares-test.cc(arestest-ares-test.o:(ares::test::TempNam(char const*, char const*))): warning: tempnam() possibly used unsafely; consider using mkstemp()
ld: error: undefined symbol: ares__tvnow
>>> referenced by ares-test.cc
>>> arestest-ares-test.o:(ares::test::ProcessWork(ares_channeldata*, std::__1::function<std::__1::set<int, std::__1::less<int>, std::__1::allocator<int>> ()>, std::__1::function<void (int)>, unsigned int))
>>> referenced by ares-test.cc
>>> arestest-ares-test.o:(ares::test::ProcessWork(ares_channeldata*, std::__1::function<std::__1::set<int, std::__1::less<int>, std::__1::allocator<int>> ()>, std::__1::function<void (int)>, unsigned int))
>>> referenced by ares-test.cc
>>> arestest-ares-test.o:(ares::test::ProcessWork(ares_channeldata*, std::__1::function<std::__1::set<int, std::__1::less<int>, std::__1::allocator<int>> ()>, std::__1::function<void (int)>, unsigned int))
ld: error: undefined symbol: ares__timeval_remaining
>>> referenced by ares-test.cc
>>> arestest-ares-test.o:(ares::test::ProcessWork(ares_channeldata*, std::__1::function<std::__1::set<int, std::__1::less<int>, std::__1::allocator<int>> ()>, std::__1::function<void (int)>, unsigned int))
c++: error: linker command failed with exit code 1 (use -v to see invocation)
Building c-ares 1.24.0 fails to build on OpenBSD.
Our current port is at 1.19.1.
I can build 1.20.1, 1.21.0, 1.22.1, and 1.23.0 just fine.