https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98821
Bug ID: 98821
Summary: modules : c++tools configures with CC but code
fragments assume CXX.
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: iains at gcc dot gnu.org
Target Milestone: ---
On at least Darwin, c++tools misconfigures because of things like:
configure:4019: x86_64-apple-darwin16-gcc -c -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:30:1: error: unknown type name 'sockaddr_un'; use 'struct' keyword
to refer to the type
30 | sockaddr_un un;
Which leads to the server missing support for networking on Darwin.
Patching the configure fragments to be C-friendly fixes the problem, but
perhaps you intend that the configure should be run with C++?