From owner-freebsd-current@FreeBSD.ORG Sun Jun 8 03:21:13 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 021E3106567B for ; Sun, 8 Jun 2008 03:21:13 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id 6883B8FC13 for ; Sun, 8 Jun 2008 03:21:12 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1308741fgb.35 for ; Sat, 07 Jun 2008 20:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=uUbo7zT1oyOALPibeMuXoUeduWIGGj+nSWo8nW4xiL8=; b=xUU7tA/427ccNw9Js51i5imVecosK49f72c1As0XX8MhSJ39xpwmQc2QKIJr0gYFYN WPWNI53Jmmh5U2G9ZsQjguE1g68efVajAD5SRKLb/ZQ9zkxKqHFW2+kXQdTmkd5ZeZm/ r2YKjxORPpphK9tOeDEoyBHBp7thaIl7jPh6E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=IUAASgkHBCr66fvjR8I0z5+YC87OOb3ja+8CvN/XmB++naKuzCl8ZAlx61J6cDTr4H pZMeFv4t3o5rkD1+Q5oe0V2I5hxcW6xYMse1H2cxaCXwAYyct51qCpgaZI/9h0W6SIkj XVsJXIQ3MKWTi93H7e9SiFZA5XiIu+35lpd+g= Received: by 10.86.80.17 with SMTP id d17mr2512354fgb.47.1212895271339; Sat, 07 Jun 2008 20:21:11 -0700 (PDT) Received: by 10.86.26.8 with HTTP; Sat, 7 Jun 2008 20:21:11 -0700 (PDT) Message-ID: <7d6fde3d0806072021o22ad6234v2d922901f3cf6bc4@mail.gmail.com> Date: Sat, 7 Jun 2008 20:21:11 -0700 From: "Garrett Cooper" To: current@freebsd.org In-Reply-To: <7d6fde3d0806072006m5d360bfay41d6f2aeeed2f929@mail.gmail.com> MIME-Version: 1.0 References: <7d6fde3d0806072006m5d360bfay41d6f2aeeed2f929@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Issues compiling latest -CURRENT (warning error flags + optimization level => no go) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2008 03:21:13 -0000 On Sat, Jun 7, 2008 at 8:06 PM, Garrett Cooper wrote: > Hi all, > I'm encountering a series of issues with code quality in building the > latest world. I have 4 PR's filed already, but I can't seem to find a way > around this issue: > > cc -O3 -pipe -fno-strict-aliasing -march=prescott -DEDITLINE > -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized > -Wno-pointer-sign -c /usr/src/usr.sbin/ngctl/main.c > cc1: warnings being treated as errors > /usr/src/usr.sbin/ngctl/main.c: In function 'main': > /usr/src/usr.sbin/ngctl/main.c:325: warning: passing argument 1 of > 'DoParseCommand' discards qualifiers from pointer target type > *** Error code 1 > > Stop in /usr/src/usr.sbin/ngctl. > *** Error code 1 > > Stop in /usr/src/usr.sbin. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > I've tried the usual items: changing const to non-const, changing type > as fit, etc but the compile still keeps on failing. Also, I really don't > need netgraph... how do I officially skip over netgraph from the compile > stage? I think I can use NETGRAPH=no (not documented in the src.conf > manpage), but I want to know if there's a different means. > Thanks, > -Garrett > Nevermind. I think I discovered a viable functional reworking. -Garrett