Date: Mon, 15 Mar 2004 09:16:24 +0200 From: Ruslan Ermilov <ru@FreeBSD.org> To: "David O'Brien" <obrien@FreeBSD.org>, current@FreeBSD.org Subject: Re: cross make buildworld failure Message-ID: <20040315071624.GB43263@ip.net.ua> In-Reply-To: <20040315003203.GA6007@dragon.nuxi.com> References: <E1AzDpu-000JF9-MA@cs.huji.ac.il> <20040305155113.GB31834@ip.net.ua> <20040315003203.GA6007@dragon.nuxi.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Sun, Mar 14, 2004 at 04:32:03PM -0800, David O'Brien wrote:
> On Fri, Mar 05, 2004 at 05:51:13PM +0200, Ruslan Ermilov wrote:
> > > ===> gnu/usr.bin/binutils/gasp
> ...
> > > /usr/include/regex.h:56: syntax error before `regoff_t'
> > > gasp+%FIXED.c: In function `chew_flonum':
> > > gasp+%FIXED.c:553: structure has no member named `rm_eo'
> > > gasp+%FIXED.c:553: structure has no member named `rm_so'
> > > gasp+%FIXED.c:554: structure has no member named `rm_eo'
> > > gasp+%FIXED.c:554: structure has no member named `rm_so'
> > > gasp+%FIXED.c:558: structure has no member named `rm_eo'
> > >
> > Thanks for the report, we're working on resolving this. The
> > workaround (if you need this quickly) is to remove
> > src/contrib/binutils/include/getopt.h, and revert the following
>
> What does getopt.h have to do with a regex API issue??
>
By not quoting all of my reply, you've lost some useful context:
On Fri, Mar 05, 2004 at 05:51:13PM +0200, Ruslan Ermilov wrote:
[...]
> Thanks for the report, we're working on resolving this. The
> workaround (if you need this quickly) is to remove
> src/contrib/binutils/include/getopt.h, and revert the following
> revisions:
>
> src/gnu/usr.bin/binutils/Makefile.inc0,v 1.34
> src/gnu/usr.bin/binutils/gasp/Makefile,v 1.16
The above two revisions were aimed at picking up the "correct"
version of getopt.h, and they have polluted the makefiles with
-I${DESTDIR}/usr/include/gnu. As gasp(1) is also a cross tool,
the side effect of this change was that it started using the
/usr/include/regex.h header instead of the proper bootstrappable
one from ${WORLDTMP}/legacy/usr/include. The former requires
including of <sys/types.h> in RELENG_4, as documented in the
regex(3) manpage, the latter handles this bootstrapping issue
(see src/tools/build/regex.h).
The solution was to back out those revisions, and remove the
version of getopt.h from contrib/bintutils. (Soon after I've
realized that it doesn't harm at all to use getopt.h and
friends from contrib/binutils.)
Cheers,
--
Ruslan Ermilov
FreeBSD committer
ru@FreeBSD.org
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAVVhIUkv4P6juNwoRAkFyAJ40cD2I6GF+gZkVGyYG2PDP3kqguACeJsqm
gavqxm9S2h4G0jp7Zi2zy2E=
=haht
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040315071624.GB43263>
