Subject: kern/25804: natm support doesn't work on -current and on 2.0beta
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <///@///.//>
List: netbsd-bugs
Date: 06/03/2004 18:17:49
>Number: 25804
>Category: kern
>Synopsis: natm support doesn't work on -current and on 2.0beta
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 03 18:18:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: John
>Release: 2.0 beta
>Organization:
>Environment:
NetBSD 2.0_BETA NetBSD 2.0_BETA (GENERIC) #0: Sat May 29 03:59:08 UTC 2004 autobuild@tgm.netbsd.org:/autobuild/netbsd-2-0/i386/OBJ/autobuild/netbsd-2-0/src/sys/arch/i386/compile/GENERIC i386
>Description:
I'm not able to compile a kernel with NATM support (options NATM). When i give "make" i get this error:
[...]
../../../../netnatm/natm_proto.c:71: warning:
initialization from incompatible pointer type
../../../../netnatm/natm_proto.c:79: warning:
initialization from incompatible pointer type
../../../../netnatm/natm_proto.c:87: warning:
initialization from incompatible pointer type
*** Error code 1
Stop.
make: stopped in
/sys/arch/i386/compile/MYKERNEL"
Same problem under -current
>How-To-Repeat:
# cd /sys/arch/i386/conf && cp GENERIC MYKERNEL
# vi MYKERNEL
now add "options NATM" and save
# config MYKERNEL && cd ../compile/MYKERNEL
# make depend
# make
>Fix:
Open your /usr/src/sys/netnatm/natm_proto.c file and replace "natm5_sysctl", "natm5_sysctl" and "natm0_sysctl" with "NULL" at lines 69,77 and 85.
This is the output of diff:
# diff natm_proto.c.old natm_proto.c
69c69
< natm5_sysctl
---
> NULL
77c77
< natm5_sysctl
---
> NULL
85c85
< natm5ì0_sysctl
---
> NULL
#
>Release-Note:
>Audit-Trail:
>Unformatted: