[sr #111402] Error in IPv6 testing code snippet (missing string.h)

<[email protected]> Sun, 12 Apr 2026 07:33:07 -0400 (EDT)
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
--8323329-1714636915-1775993587=:355236
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

URL:=0A  <https://savannah.gnu.org/support/?111402>=0A=0A                 S=
ummary: Error in IPv6 testing code snippet (missing=0Astring.h)=0A         =
          Group: Autoconf=0A               Submitter: joergent=0A          =
     Submitted: Sun 12 Apr 2026 11:33:01 AM UTC=0A                Priority:=
 5 - Unprioritized=0A                Severity: 4 - Important=0A            =
      Status: None=0A                 Privacy: Public=0A             Assign=
ed to: None=0A        Originator Email:=0A             Open/Closed: Open=0A=
         Discussion Lock: Unlocked=0A        Operating System: GNU/Linux=0A=
=0A=0A    _______________________________________________________=0A=0AFoll=
ow-up Comments:=0A=0A=0A---------------------------------------------------=
----=0ADate: Sun 12 Apr 2026 11:33:01 AM UTC By: Anonymous=0Aautoconf-2.72-=
7.fc43.src.rpm=0AMissing #include <string.h>=0A=0AIPv6 suppport is not dete=
cted probably because of a compilation error in the=0Atesting code due to a=
 missing line=0A#include <string.h>=0A=0ACode snippet in configure.ac and c=
onfigure:=0A=0A#include <sys/types.h>=0A#include <sys/socket.h>=0A#include =
<netdb.h>=0A#include <unistd.h>=0A                    =0Aint main(int argc,=
 char **argv)=0A{=0A  struct addrinfo *res, hints;=0A  int sd;=0A=0A  if((s=
d =3D socket(AF_INET6, SOCK_STREAM, 0)) < 0)=0A    return 1;=0A   close(sd)=
;=0A  /* also check if getaddrinfo() handles AF_UNSPEC -- bb#1196 */=0A   m=
emset(&hints, 0, sizeof(hints));=0A   hints.ai_family =3D AF_UNSPEC;=0A   i=
f(getaddrinfo("127.0.0.1", NULL, &hints, &res) < 0)=0A   return 1;=0A   fre=
eaddrinfo(res);=0A   return 0;=0A}=0A=0A=0A=0A=0A=0A=0A=0A=0A    __________=
_____________________________________________=0A=0AReply to this item at:=
=0A=0A  <https://savannah.gnu.org/support/?111402>=0A=0A___________________=
____________________________=0AMessage sent via Savannah=0Ahttps://savannah=
.gnu.org/=0A
--8323329-1714636915-1775993587=:355236
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaduC8wAKCRCqLAuaBUf3
TgCOAQDEZZMRGcsh4219YFWkFjUXyNUDjlD3vIYreJKGuxxlNwEAptiA9ij9ONUn
oZ6HhLPhkBImSLgf8CdF8uYY71ZSRQw=
=dgwP
-----END PGP SIGNATURE-----

--8323329-1714636915-1775993587=:355236--