Re: Issues compiling latest -CURRENT (warning error flags + optimization level => no go)

From: Garrett Cooper <yanefbsd_at_gmail.com>
Date: Sat, 7 Jun 2008 20:21:11 -0700
On Sat, Jun 7, 2008 at 8:06 PM, Garrett Cooper <yanefbsd_at_gmail.com> 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
Received on Sun Jun 08 2008 - 01:21:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:31 UTC