Subject: kern/13903: IPNOPRIVPORTS & IPv6 kernel options together don't compile with -Werror
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rss@cin.ufpe.br>
List: netbsd-bugs
Date: 09/08/2001 17:45:14
>Number:         13903
>Category:       kern
>Synopsis:       IPNOPRIVPORTS & IPv6 kernel options together don't compile with -Werror
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 08 17:46:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Rossam Souza Silva
>Release:        1.5.1
>Organization:
Centro de Informatica - UFPE
>Environment:
Sorry, for this bug it's irrelevant.
>Description:
When compiling a 1.5.1 kernel with IPv6 and IPNOPRIVPORTS
options set, there is a warning when compiling file:line
/sys/netinet6/in6_pcb.c:152, there is an "error" variable
not used in function "in6_pcbbind" if IPNOPRIVPORTS option
is set. In file:line /sys/netinet6/in6_src.c:336, function
"in6_pcbsetport", there is a "p" variable not used, for the
same reason.
>How-To-Repeat:
Compiling a kernel with IPv6 and IPNOPRIVPORTS options.
>Fix:
These lines must be guarded with #ifndef IPNOPRIVPORTS/#endif
to compile with -Werror. I made that and now all is ok.

I will not send a patch because the changes are very small. :-)

>Release-Note:
>Audit-Trail:
>Unformatted: