Subject: kern/32676: Missing #ifdef INET6 cause compilation problems
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <yves-emmanuel.jutard@fr.thalesgroup.com>
List: netbsd-bugs
Date: 01/31/2006 16:40:00
>Number: 32676
>Category: kern
>Synopsis: Missing #ifdef INET6 cause compilation problems
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 31 16:40:00 +0000 2006
>Originator: Yves-Emmanuel JUTARD
>Release: 3.0.0
>Organization:
THALES Communication
>Environment:
custom environment : recompiled from /src, only some parts of NetBSD are used (TCP/IP stack and some parts of the kernel)
>Description:
in file "sys/net/if_faith.c v 1.30
the last function 'faithprefix' (l. 306) do not compile properly, because it use some IPv6 stuff and I do not have IPv6 activated (INET6 not defined).
This function looks like it's not used in IPv4. Maybe it should be commented out with "#ifdef INET6" ?
Beware, it works for me but I do not have recompiled the full kernel/stack, so give it a try. Or else, if the tree is broken you'll blame me again ;-)
>How-To-Repeat:
recompile NetBSD with IPv6 off (INET6 not defined)
>Fix:
suggest : comment out function 'faithprefix' between '#ifdef INET6'.