Re: cannot compile 2.4.28-rc1-bk3
From: Martin MOKREJŠ
Date: Sat Oct 30 2004 - 08:21:53 EST
Another one:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28-rc1-bk3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=arp -c -o arp.o arp.c
arp.c:1342: error: `THIS_MODULE' undeclared here (not in a function)
arp.c:1342: error: initializer element is not constant
arp.c:1342: error: (near initialization for `arp_seq_fops.owner')
make[3]: *** [arp.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.28-rc1-bk3/net/ipv4'
That can be fixed with:
--- net/ipv4/arp.c.orig 2004-10-30 15:18:41.000000000 +0200
+++ net/ipv4/arp.c 2004-10-30 15:18:44.000000000 +0200
@@ -76,6 +76,7 @@
#include <linux/types.h>
#include <linux/string.h>
#include <linux/kernel.h>
+#include <linux/module.h>
#include <linux/sched.h>
#include <linux/config.h>
#include <linux/socket.h>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/