https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104461
Bug ID: 104461 Summary: cody requires -fmodule-mapper hostname to have an IPv6 address Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: aoliva at gcc dot gnu.org CC: nathan at gcc dot gnu.org Blocks: 103524 Target Milestone: --- A host whose localhost maps to 127.0.0.1 but not ::1 fails bad-mapper-3.C because we get an error about name resolution rather than connection. This might be the reason for part of the errors in bug 99175. That's because mapper-client.cc calls netclient.cc OpenInet6, that insists on strict IPv6 addresses, rejecting even AI_V4MAPPED ones. Any reason to not go AF_UNSPEC instead, and use getaddrinfo's port-to-sockaddr conversion while at that? Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 [Bug 103524] [meta-bug] modules issue