Subject: kern/14333: INET6 not selectable without INET
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reinoud@netbsd.org>
List: netbsd-bugs
Date: 10/23/2001 22:55:22
>Number: 14333
>Category: kern
>Synopsis: INET6 gives compilation errors on TCP subsystem
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Oct 23 13:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Reinoud Zandijk
>Release: +/- 22 oct 2001 <NetBSD-current source date>
>Organization:
NetBSD developer
>Environment:
MI config file problem.... trying to compile a small kernel without INET
>Description:
In my effords to create a small as possible kernel i tried to leave INET out
and only select INET6. This resulted in several compilation errors regarding
unresolved symbols while linking. This could indicate missing files that are
not compiled in.
I also noted the following : there is a function tpc_fasttimo referenced in
in6_proto.c that isnt called/defined in in_proto.c so i guess since it is never
tried without INET gives rise to a compilation error... the following patch
solves that (well ... the comment is not nessisary :) )....
Index: in6_proto.c
===================================================================
RCS file: /cvsroot/syssrc/sys/netinet6/in6_proto.c,v
retrieving revision 1.31
diff -u -r1.31 in6_proto.c
--- in6_proto.c 2001/10/16 04:57:38 1.31
+++ in6_proto.c 2001/10/23 20:43:45
@@ -152,7 +152,8 @@
#ifdef INET /* don't call initialization and timeout routines twice */
0, 0, 0, tcp_drain,
#else
- tcp_init, tcp_fasttimo, tcp_slowtimo, tcp_drain,
+ /* tcp_fasttimo doesn't seem to exist in NetBSD */
+ tcp_init, 0, tcp_slowtimo, tcp_drain,
#endif
tcp_sysctl,
},
==================
>How-To-Repeat:
Compile a kernel with INET6 but leave out INET.
>Fix:
Fix up the dependencies in files.inet6 ?
>Release-Note:
>Audit-Trail:
>Unformatted: