public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98821] New: modules : c++tools configures with CC but code fragments assume CXX.
@ 2021-01-25 13:18 iains at gcc dot gnu.org
  2021-07-21 12:41 ` [Bug c++/98821] " cvs-commit at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: iains at gcc dot gnu.org @ 2021-01-25 13:18 UTC (permalink / raw)
  To: gcc-bugs

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++?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-18 15:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 13:18 [Bug c++/98821] New: modules : c++tools configures with CC but code fragments assume CXX iains at gcc dot gnu.org
2021-07-21 12:41 ` [Bug c++/98821] " cvs-commit at gcc dot gnu.org
2021-10-24 15:37 ` iains at gcc dot gnu.org
2022-04-21  7:48 ` rguenth at gcc dot gnu.org
2023-05-18 15:39 ` cvs-commit at gcc dot gnu.org
2023-05-18 15:40 ` iains at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).