[PATCH] sysctl not compiling without net

David Weinehall (tao@acc.umu.se)
Sun, 18 Oct 1998 00:17:52 +0200 (CEST)


This patch should fix the fact that sysctl takes for granted that net is
configured into the kernel. Without this patch, a compile without any
net-support and with sysctl included dies a screaming death with:

net/network.a(core.o)(.data+0xe0): undefined reference to
`netdev_max_backlog'
net/network.a(core.o)(.data+0x10c): undefined
reference to `net_msg_cost'
net/network.a(core.o)(.data+0x138): undefined
reference to `net_msg_burst'

as error-message.

/David Weinehall

>--------------------------------------------------------------------<
> <
> *****.. Tao of TRIAD *****.. <
> ****......... ______________ ****......... <
> ****.....***... ****.....***... <
> ****......***.... David Weinehall ****......***.... <
> ******........... V Varmvattnet 63 ******........... <
> ***********...... S - 922 67 TAVELSJO ***********...... <
> ****...******.... SWEDEN ****...******.... <
> ***...*****.... ***...*****.... <
> *********.... Tel # : +46(0)90 - 604 10 *********.... <
> **..... E-mail: tao@acc.umu.se **..... <
> Home-page: http://www.acc.umu.se/~tao/ <
>--------------------------------------------------------------------<

--- linux-2.1.125/drivers/net/Makefile Sun Oct 18 00:09:48 1998
+++ linux-2.1.125/drivers/net/Makefile~ Mon Jul 27 08:35:57 1998
@@ -168,9 +168,7 @@
M_OBJS :=

ifeq ($(CONFIG_SYSCTL),y)
-ifeq ($(CONFIG_NET),y)
L_OBJS += sysctl_net.o
-endif
endif

include $(TOPDIR)/Rules.make

--- linux-2.1.125/kernel/sysctl.c Sat Oct 17 23:51:29 1998
+++ linux-2.1.125/kernel/sysctl.c~ Wed Sep 30 19:15:03 1998
@@ -72,9 +72,7 @@

static ctl_table kern_table[];
static ctl_table vm_table[];
-#ifdef CONFIG_NET
extern ctl_table net_table[];
-#endif
static ctl_table proc_table[];
static ctl_table fs_table[];
static ctl_table debug_table[];
@@ -138,9 +136,7 @@
static ctl_table root_table[] = {
{CTL_KERN, "kernel", NULL, 0, 0555, kern_table},
{CTL_VM, "vm", NULL, 0, 0555, vm_table},
-#ifdef CONFIG_NET
{CTL_NET, "net", NULL, 0, 0555, net_table},
-#endif
{CTL_PROC, "proc", NULL, 0, 0555, proc_table},
{CTL_FS, "fs", NULL, 0, 0555, fs_table},
{CTL_DEBUG, "debug", NULL, 0, 0555, debug_table},

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/