lkml.org 
[lkml]   [1998]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patches in this message
    /
    Date
    From
    Subject[PATCH] sysctl not compiling without net
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:45    [W:0.025 / U:0.624 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site