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

From: Garrett Cooper <yanefbsd_at_gmail.com>
Date: Sat, 7 Jun 2008 20:06:10 -0700
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
Received on Sun Jun 08 2008 - 01:06:12 UTC

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