Unable to compile kernel without INET support?

Russell King (rmk@arm.uk.linux.org)
Sun, 12 Apr 1998 10:06:41 +0100 (BST)


Hi!

I've been trying to compile the kernel without Internet support without
success. The final link fails with some unresolved symbols. (I'm
sorry, I don't have the symbols to hand at the moment).

I've managed to get it to link by patching the following thus:

diff -ur /mnt/linux/net/core/Makefile net/core/Makefile
--- /mnt/linux/net/core/Makefile Wed Jan 21 21:23:57 1998
+++ net/core/Makefile Wed Apr 8 21:26:19 1998
@@ -9,7 +9,7 @@

O_TARGET := core.o

-O_OBJS := sock.o skbuff.o iovec.o datagram.o dst.o scm.o \
+O_OBJS := sock.o skbuff.o iovec.o datagram.o scm.o \
neighbour.o rtnetlink.o utils.o

ifeq ($(CONFIG_SYSCTL),y)
@@ -22,7 +22,7 @@

ifdef CONFIG_NET

-O_OBJS += dev.o dev_mcast.o
+O_OBJS += dev.o dev_mcast.o dst.o

ifdef CONFIG_FIREWALL
OX_OBJS += firewall.o
diff -ur /mnt/linux/net/core/neighbour.c net/core/neighbour.c
--- /mnt/linux/net/core/neighbour.c Sat Mar 21 16:00:37 1998
+++ net/core/neighbour.c Sun Mar 22 14:37:46 1998
@@ -737,7 +737,7 @@
int neigh_compat_output(struct sk_buff *skb)
{
struct device *dev = skb->dev;
-
+#ifdef CONFIG_INET
__skb_pull(skb, skb->nh.raw - skb->data);

if (dev->hard_header &&
@@ -746,6 +746,9 @@
return 0;

return dev_queue_xmit(skb);
+#else
+ return 0;
+#endif
}

/* Slow and careful. */
diff -ur /mnt/linux/net/core/sock.c net/core/sock.c
--- /mnt/linux/net/core/sock.c Sun Apr 5 13:14:15 1998
+++ net/core/sock.c Sun Mar 29 14:03:03 1998
@@ -289,7 +289,7 @@
sock->passcred = valbool;
break;

-
+#ifdef CONFIG_INET
case SO_BINDTODEVICE:
/* Bind this socket to a particular device like "eth0",
* as specified in an ifreq structure. If the device
@@ -316,7 +316,7 @@
}
}
return 0;
-
+#endif

#ifdef CONFIG_FILTER
case SO_ATTACH_FILTER:

Has this problem already been fixed?
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.uk.linux.org --- ---
| | | | http://www.arm.uk.linux.org/~rmk/home.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu