Ticket #156 (new defect)
_XOPEN_SOURCE causes compiler warnings on OS X
| Reported by: | dmacks | Owned by: | lennart |
|---|---|---|---|
| Milestone: | Component: | build-system | |
| Keywords: | Cc: |
Description
configure.ac has:
# Solaris stuff [...] AC_CHECK_DECL([CMSG_SPACE]CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -DEXTENSIONS")
The AC_CHECK_DECL result on my OS X 10.3 (gcc3.3) and apparently also on 10.4 (gcc4.0) machines cause compiler warnings from system headers. Removing the _XOPEN_SOURCE token from that configure action solves it. I'm not a Solaris machine, so the explanation of the check is out of sync with the check itself, and the test gives an inappropriate result on my platform.
What's the actual intent here? Should the whole thing be conditionalized on a platform/host test?
Change History
Note: See
TracTickets for help on using
tickets.
