Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2001 09:07:50 -0800
From:      Kris Kennaway <kris@FreeBSD.org>
To:        Luigi Rizzo <luigi@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/bin/rm rm.c src/usr.sbin/chown chown.c src/usr.sbin/dev_mkdb dev_mkdb.c
Message-ID:  <20011215090750.A91194@citusc17.usc.edu>
In-Reply-To: <200112141622.fBEGMg705939@freefall.freebsd.org>; from luigi@FreeBSD.org on Fri, Dec 14, 2001 at 08:22:42AM -0800
References:  <200112141622.fBEGMg705939@freefall.freebsd.org>

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

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

On Fri, Dec 14, 2001 at 08:22:42AM -0800, Luigi Rizzo wrote:
> luigi       2001/12/14 08:22:42 PST
>=20
>   Modified files:
>     bin/rm               rm.c=20
>     usr.sbin/chown       chown.c=20
>     usr.sbin/dev_mkdb    dev_mkdb.c=20
>   Log:
>   Add prototypes for main() so that these programs compile with -Werror
>   (which somehow now seems to be the default for compiling -current).
>   This error popped up while doing a PicoBSD cross-compile on a 4.3-ish s=
ystem,
>   it may well be that there are other apps which have similar problems,
>   but I did not spot them as they are not included in my picobsd config.

Nope, the problem is that your gcc is different than the one in
-current and emits different warnings.  You need to build FreeBSD with
NO_WERROR=3D1 if you're using a nonstandard gcc compiler, or bootstrap
the standard gcc compiler with NO_WERROR and then use it.  i.e. the
bug seems to be in your bootstrap/cross-build environment and should
be addressed there.

Adding prototypes for main() is the wrong thing to do, and our gcc was
fixed to not treat these as warnings for this reason.

Kris

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8G4NlWry0BWjoQKURAlmkAKDTAY/trfmLStPouFJdDD6YqBYKDQCg9cHg
PBrHOYuNMV1+D+UQ6zAHWyU=
=VbMb
-----END PGP SIGNATURE-----

--Dxnq1zWXvFF0Q93v--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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