From owner-freebsd-questions@FreeBSD.ORG Tue Jun 22 23:29:32 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FE2A16A4D1 for ; Tue, 22 Jun 2004 23:29:32 +0000 (GMT) Received: from ylpvm43.prodigy.net (ylpvm43-ext.prodigy.net [207.115.57.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id C701D43D58 for ; Tue, 22 Jun 2004 23:29:31 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (adsl-63-207-60-35.dsl.lsan03.pacbell.net [63.207.60.35])i5MNTRDf027811; Tue, 22 Jun 2004 19:29:27 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 6AEB452911; Tue, 22 Jun 2004 16:29:26 -0700 (PDT) Date: Tue, 22 Jun 2004 16:29:26 -0700 From: Kris Kennaway To: Karim Forsthofer Message-ID: <20040622232926.GB25077@xor.obsecurity.org> References: <1087934482.40d890120e50c@www.xmail.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7iMSBzlTiPOCCT2k" Content-Disposition: inline In-Reply-To: <1087934482.40d890120e50c@www.xmail.net> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: Kernel compiling. gcc stops at warnings X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jun 2004 23:29:32 -0000 --7iMSBzlTiPOCCT2k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 22, 2004 at 01:01:22PM -0800, Karim Forsthofer wrote: > Good evening >=20 > I tried to compile a new kernel from my 5.1 bsd cd. > "Config" and "make depend" worked well, but "make" has put > out some warnings about unused functions in npx.c (or something else). > I searched in the newsgroup and found some similar postings to this > subject > It seems to me, that the problem appears when the RealTek pci NIC > device is included in the config file. Someone wrote in the newsgroup, > that gcc works with the wrong compiler flags, that means that the > compiler stops at warnings, but he didn`t mention how the solve this > problem or how to change the flags. > Any suggestions? Warnings aren't fatal unless you ask them to be (with -Werror). If you're seeing compiler *errors*, it's usually because you have an incomplete kernel config file. Compare it to the sample config files (pay careful attention to the comments that tell you what options are required by the drivers and systems you add or remove), and post it here together with the errors you receive from the build, if you require further help. Kris --7iMSBzlTiPOCCT2k Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA2MDVWry0BWjoQKURAjbrAKDqlILHPyjD5L9Lyei8RSNnBV9t8ACfW3Ju VYh3PU4cXO1hyQYDfzSeqf8= =Lwfo -----END PGP SIGNATURE----- --7iMSBzlTiPOCCT2k--