已解决! 转到解答。
Hi,
it seems there are some issues with older busybox and gcc4.3 toolchain. I've applied following patch to busybox 1.1.3.
diff --exclude CVS -uNr busybox-1.1.3/libbb/procps.c busybox-1.1.3.modified/libbb/procps.c
--- busybox-1.1.3/libbb/procps.c 2006-03-22 22:16:22.000000000 +0100
+++ busybox-1.1.3.modified/libbb/procps.c 2009-05-26 13:53:35.000000000 +0200
@@ -12,7 +12,7 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
-#include <asm/page.h>
+#include <sys/param.h>
#include <fcntl.h>
#include "libbb.h"
diff --exclude CVS -uNr busybox-1.1.3/util-linux/mkswap.c busybox-1.1.3.modified/util-linux/mkswap.c
--- busybox-1.1.3/util-linux/mkswap.c 2006-03-22 22:16:26.000000000 +0100
+++ busybox-1.1.3.modified/util-linux/mkswap.c 2009-05-26 13:54:06.000000000 +0200
@@ -42,7 +42,7 @@
#include <stdlib.h>
#include <sys/ioctl.h> /* for _IO */
#include <sys/utsname.h>
-#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
+#include <sys/param.h> /* for PAGE_SIZE and PAGE_SHIFT */
/* we also get PAGE_SIZE via getpagesize() */
#include "busybox.h"
diff --exclude CVS --exclude .git -uNr busybox-1.1.3/networking/libiproute/iptunnel.c busybox-1.1.3.modified/networking/libiproute/iptunnel.c
--- busybox-1.1.3/networking/libiproute/iptunnel.c 2006-03-22 22:16:18.000000000 +0100
+++ busybox-1.1.3.modified/networking/libiproute/iptunnel.c 2009-07-31 11:39:19.000000000 +0200
@@ -21,16 +21,15 @@
#include <unistd.h>
#include <arpa/inet.h>
-#include <netinet/ip.h>
#include <netinet/in.h>
-#include <net/if.h>
#include <net/if_arp.h>
#include <asm/types.h>
#ifndef __constant_htons
#define __constant_htons htons
#endif
+#include <linux/if.h>
#include <linux/if_tunnel.h>
#include "rt_names.h"
Hi,
it seems there are some issues with older busybox and gcc4.3 toolchain. I've applied following patch to busybox 1.1.3.
diff --exclude CVS -uNr busybox-1.1.3/libbb/procps.c busybox-1.1.3.modified/libbb/procps.c
--- busybox-1.1.3/libbb/procps.c 2006-03-22 22:16:22.000000000 +0100
+++ busybox-1.1.3.modified/libbb/procps.c 2009-05-26 13:53:35.000000000 +0200
@@ -12,7 +12,7 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
-#include <asm/page.h>
+#include <sys/param.h>
#include <fcntl.h>
#include "libbb.h"
diff --exclude CVS -uNr busybox-1.1.3/util-linux/mkswap.c busybox-1.1.3.modified/util-linux/mkswap.c
--- busybox-1.1.3/util-linux/mkswap.c 2006-03-22 22:16:26.000000000 +0100
+++ busybox-1.1.3.modified/util-linux/mkswap.c 2009-05-26 13:54:06.000000000 +0200
@@ -42,7 +42,7 @@
#include <stdlib.h>
#include <sys/ioctl.h> /* for _IO */
#include <sys/utsname.h>
-#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
+#include <sys/param.h> /* for PAGE_SIZE and PAGE_SHIFT */
/* we also get PAGE_SIZE via getpagesize() */
#include "busybox.h"
diff --exclude CVS --exclude .git -uNr busybox-1.1.3/networking/libiproute/iptunnel.c busybox-1.1.3.modified/networking/libiproute/iptunnel.c
--- busybox-1.1.3/networking/libiproute/iptunnel.c 2006-03-22 22:16:18.000000000 +0100
+++ busybox-1.1.3.modified/networking/libiproute/iptunnel.c 2009-07-31 11:39:19.000000000 +0200
@@ -21,16 +21,15 @@
#include <unistd.h>
#include <arpa/inet.h>
-#include <netinet/ip.h>
#include <netinet/in.h>
-#include <net/if.h>
#include <net/if_arp.h>
#include <asm/types.h>
#ifndef __constant_htons
#define __constant_htons htons
#endif
+#include <linux/if.h>
#include <linux/if_tunnel.h>
#include "rt_names.h"