Subject: kern/22385: compilation problem when using LARGE_NAT
To: None <gnats-bugs@gnats.netbsd.org>
From: None <syn@sceen.net>
List: netbsd-bugs
Date: 08/06/2003 23:51:36
>Number: 22385
>Category: kern
>Synopsis: compilation problem when using LARGE_NAT and solution
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 06 21:52:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: R. Braun
>Release: NetBSD 1.6.1
>Organization:
>Environment:
System: NetBSD yoda.sceen 1.6.1 NetBSD 1.6.1 (YODA) #0: Wed Aug 6 01:31:31 CEST 2003 syn@yoda.sceen:/usr/src/sys/arch/i386/compile/YODA i386
Architecture: i386
Machine: i386
>Description:
Due to preprocessor directives in sys/netinet/ip_nat.c in the nat_log() function
removing some parts of the code, two variables are thus unused which are np and
rulen. As the compilation stops whenever a warning is generated, the compilation
will fail if the LARGE_NAT macro is defined in sys/netinet/ip_nat.h.
>How-To-Repeat:
To reproduce the problem, just define LARGE_NAT in sys/netinet/ip_nat.h and
recompile (tested only on NetBSD 1.6.1).
>Fix:
I used preprocessor directives to make these variables undeclared when using
LARGE_NAT and it seems to do the job :-).
>Release-Note:
>Audit-Trail:
>Unformatted: