Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--QTprm0S8XgL7H0Dt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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:
> > > =3D=3D=3D> 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'
> > >=20
> > 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
>=20
> What does getopt.h have to do with a regex API issue??
>=20
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:
>=20
> 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,
--=20
Ruslan Ermilov
FreeBSD committer
ru@FreeBSD.org

--QTprm0S8XgL7H0Dt
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAVVhIUkv4P6juNwoRAkFyAJ40cD2I6GF+gZkVGyYG2PDP3kqguACeJsqm
gavqxm9S2h4G0jp7Zi2zy2E=
=haht
-----END PGP SIGNATURE-----

--QTprm0S8XgL7H0Dt--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040315071624.GB43263>