Hi/2.
Bruno Haible wrote:
> Testing reveals that getaddrinfo does not support AI_NUMERICSERV on mingw.
> This patch adds the support for it.
>
>
> 2025-02-12 Bruno Haible <[email protected]>
>
> getaddrinfo: Support the AI_NUMERICSERV flag.
> * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require AC_CANONICAL_HOST. Test
> whether getaddrinfo supports AI_NUMERICSERV.
> * lib/getaddrinfo.c (getaddrinfo): Accept and implement the
> AI_NUMERICSERV flag.
> * tests/test-getaddrinfo.c (simple): In pass 4, pass the AI_NUMERICSERV
> flag.
> (main): Test numeric services in pass 1. Add pass 4.
> * doc/posix-functions/getaddrinfo.texi: Mention the native Windows bug.
>
I've pulled the latest gnulib. And I've got the following error when
testing getaddrinfo module:
-----
g++ -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1
-DIN_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gllib -I./../gllib
-Wno-error -g -O2 -MT test-netinet_in-h-c++.o -MD -MP -MF
.deps/test-netinet_in-h-c++.Tpo -c -o test-netinet_in-h-c++.o
test-netinet_in-h-c++.cc
In file included from ./../gllib/netdb.h:47,
from ../gllib/netdb.h:33,
from test-netdb-h-c++.cc:22:
./../gllib/netdb.h:745:1: error: 'getaddrinfo' was not declared in this
scope; did you mean 'gnulib::getaddrinfo'?
745 | _GL_CXXALIASWARN (getaddrinfo);
| ^~~~~~~~~~~~~~~~
./../gllib/netdb.h:725:1: note: 'gnulib::getaddrinfo' declared here
725 | _GL_CXXALIAS_RPL (getaddrinfo, int,
| ^~~~~~~~~~~~~~~~
./../gllib/netdb.h:765:1: error: 'freeaddrinfo' was not declared in this
scope; did you mean 'gnulib::freeaddrinfo'?
765 | _GL_CXXALIASWARN (freeaddrinfo);
| ^~~~~~~~~~~~~~~~
./../gllib/netdb.h:757:1: note: 'gnulib::freeaddrinfo' declared here
757 | _GL_CXXALIAS_RPL (freeaddrinfo, void, (struct addrinfo *ai));
| ^~~~~~~~~~~~~~~~
make[4]: *** [Makefile:3189: test-netdb-h-c++.o] Error 1
-----
--
KO Myung-Hun
Korean OS/2 User Community : https://www.os2.kr/