From owner-freebsd-questions@FreeBSD.ORG Thu May 12 00:14:27 2005 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 69AFE16A50C for ; Thu, 12 May 2005 00:14:27 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23E7B43D86 for ; Thu, 12 May 2005 00:14:27 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id D8576530E3; Wed, 11 May 2005 17:14:25 -0700 (PDT) Date: Wed, 11 May 2005 17:14:25 -0700 From: Kris Kennaway To: Idar Tollefsen Message-ID: <20050512001425.GA70095@xor.obsecurity.org> References: <4281CA42.6010600@performancedesign.no> <20050511091645.GA25843@xor.obsecurity.org> <4281CF7B.1040501@performancedesign.no> <20050511182745.GA82089@xor.obsecurity.org> <4282939F.6010504@performancedesign.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4282939F.6010504@performancedesign.no> User-Agent: Mutt/1.4.2.1i cc: Alexander Soldatov cc: freebsd-questions@freebsd.org cc: Kris Kennaway Subject: Re: [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: a problem withcompiling kernel 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: Thu, 12 May 2005 00:14:27 -0000 On Thu, May 12, 2005 at 01:22:07AM +0200, Idar Tollefsen wrote: > Kris Kennaway wrote: > >On Wed, May 11, 2005 at 11:25:15AM +0200, Idar Tollefsen wrote: > > > >>Kris Kennaway wrote: > >> > >>>>>-boundary=2 -ffreestanding -Werror ../../../net/if_gif.c > >>>> > >>>>..and -Werror is in effect: > >>>>"-Werror > >>>>Treat warnings as errors; abort compilation after any warning." > >>>> > >>>>As I said, try setting > >>>>NO_WERROR= yes > >>>>in make.conf. > >>> > >>>That's the brainless and probably wrong approach :) More intelligent > >>>is to wonder why he's seeing this warning when no-one else is: see my > >>>previous response. > >> > >>Agreed :) > >> > >>However, I seem to recall having had the exact same problem somewhere in > >>the gif code on a 4.x version (some time ago), where simply disabling > >>-Werror was the solution. And yes, I did have INET support in there ;) > > > > > >-Werror is not enabled on 4.x, so it must have again been something else. > > Yes and no. It was 4.x, but not the gif code. It was OpenSSL. > And, as a matter of fact, it was you who closed it: > http://www.freebsd.org/cgi/query-pr.cgi?pr=54684 > > I hadn't changed any settings prior to that, and it was that > particular problem that made me dig up NO_WERROR. Right, that fell under my other category of "you did something to the source yourself to break it", namely: -Wstrict-prototypes is not enabled on that code by default, so when you turned it on and found that it didn't compile, you should not have been surprised :-) Kris