[Bug libmudflap/12310] [tree-ssa] libmudflap fails to build on mips-sgi-IRIX6.5

ro at techfak dot uni-bielefeld dot de gcc-bugzilla@gcc.gnu.org
Mon Jun 7 22:26:00 GMT 2004


------- Additional Comments From ro at techfak dot uni-bielefeld dot de  2004-06-07 22:26 -------
Subject: Re:  [tree-ssa] libmudflap fails to build on mips-sgi-IRIX6.5

fche at redhat dot com writes:

> Can you check whether the last commit (adding _LARGEFILE64_SOURCE) made it work?

It breaks in a different way now:

/.vol/gcc/src/gcc-dist/libmudflap/mf-hooks2.c: At top level:
/.vol/gcc/src/gcc-dist/libmudflap/mf-hooks2.c:1563: warning: 'union semun' declared inside parameter list
/.vol/gcc/src/gcc-dist/libmudflap/mf-hooks2.c:1563: error: parameter 4 ('arg') has incomplete type

HAVE_UNION_SEMUN is defined to 1, but <sys/sem.h> only defines union semun
if _NO_XOPEN4 (i.e.

#define _NO_XOPEN4	(!defined(_XOPEN_SOURCE) || \
				(defined(_XOPEN_SOURCE) && \
				(_XOPEN_SOURCE+0 >= 500)))
)

So again defining the _XOPEN_SOURCE feature test macro breaks compilation,
especially since the autoconf tests differ from the actual uses.  What I
said in another PR about feature test macros being harmful applies here as
well.

	Rainer


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12310



More information about the Gcc-bugs mailing list