From: Harald Welte <laforge@gnumonks.org>
To: Jeff Chua <jeffchua@silk.corp.fedex.com>
Cc: Stephen Hemminger <shemminger@osdl.org>,
Linux Kernel <linux-kernel@vger.kernel.org>,
netdev@oss.sgi.com, linux-net@vger.kernel.org,
LARTC@mailman.ds9a.nl
Subject: iproute2 and 2.6.9 kernel headers (was Re: [ANNOUNCE] iproute2 2.6.9-041019)
Date: Wed, 20 Oct 2004 11:41:23 +0200 [thread overview]
Message-ID: <20041020094123.GF19899@sunbeam.de.gnumonks.org> (raw)
In-Reply-To: <20041020070017.GA19899@sunbeam.de.gnumonks.org>
[-- Attachment #1: Type: text/plain, Size: 2718 bytes --]
On Wed, Oct 20, 2004 at 09:00:17AM +0200, Harald Welte wrote:
> I'll take care of this. sorry fort he inconvenience.
I should actually read mails befor replying ;) I thought the bug was in
lnstat - but apparently it wasn't.
The include bug seems non-trivial to fix. (how do I hate kernel include
from userspace issues):
apparently __KERNEL_STRICT_NAMES is definde somewhere (glibc?) which
prevents __le16, __le64 and others from being defined in linux/types.h.
Just reietting it like this doesn't help much:
diff -Nru iproute2-2.6.9-041019/ip/iptunnel.c iproute2-2.6.9-laf/ip/iptunnel.c
--- iproute2-2.6.9-041019/ip/iptunnel.c 2004-10-19 22:49:02.000000000 +0200
+++ iproute2-2.6.9-laf/ip/iptunnel.c 2004-10-20 11:26:24.489444052 +0200
@@ -26,6 +26,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
+#undef __KERNEL_STRICT_NAMES
#include <asm/byteorder.h>
#include <linux/if.h>
#include <linux/if_arp.h>
Since now we have conflicting definitions
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include -DRESOLVE_HOSTNAMES -c -o iptunnel.o iptunnel.c
In file included from /usr/include/linux/byteorder/big_endian.h:11,
from /usr/include/asm/byteorder.h:74,
from iptunnel.c:30:
/usr/include/linux/types.h:20: error: conflicting types for `fd_set'
/usr/include/sys/select.h:78: error: previous declaration of `fd_set'
/usr/include/linux/types.h:21: error: conflicting types for `dev_t'
/usr/include/sys/types.h:62: error: previous declaration of `dev_t'
/usr/include/linux/types.h:24: error: conflicting types for `nlink_t'
/usr/include/sys/types.h:77: error: previous declaration of `nlink_t'
I'm done with this, maybe somebody with more clue about kernel include
magic will take on from this.
Additional issue: the iproute2 makefile didn't stop the build process
in the event of an error. Stephen, plase consider this patch to fix
it:
diff -Nru iproute2-2.6.9-041019/Makefile iproute2-2.6.9-laf/Makefile
--- iproute2-2.6.9-041019/Makefile 2004-10-19 22:49:02.000000000 +0200
+++ iproute2-2.6.9-laf/Makefile 2004-10-20 11:33:33.223545024 +0200
@@ -29,10 +29,12 @@
LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
-all: Config
- @for i in $(SUBDIRS); \
- do $(MAKE) $(MFLAGS) -C $$i; done
+all: Config $(SUBDIRS)
+.PHONY: $(SUBDIRS)
+$(SUBDIRS):
+ $(MAKE) $(MFLAGS) -C $@;
+
Config:
./configure $(KERNEL_INCLUDE)
--
- Harald Welte <laforge@gnumonks.org> http://www.gnumonks.org/
============================================================================
Programming is like sex: One mistake and you have to support it your lifetime
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-10-20 9:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-19 20:59 [ANNOUNCE] iproute2 2.6.9-041019 Stephen Hemminger
2004-10-20 0:21 ` Jeff Chua
2004-10-20 7:00 ` Harald Welte
2004-10-20 9:41 ` Harald Welte [this message]
2004-10-20 10:41 ` iproute2 and 2.6.9 kernel headers (was Re: [ANNOUNCE] iproute2 2.6.9-041019) David Woodhouse
2004-10-20 11:52 ` David Vrabel
2004-10-20 12:19 ` David Woodhouse
2004-10-20 16:15 ` [ANNOUNCE] iproute2 2.6.9-041019 Stephen Hemminger
2004-10-21 2:53 ` Jeff Chua
2004-10-20 16:18 ` Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041020094123.GF19899@sunbeam.de.gnumonks.org \
--to=laforge@gnumonks.org \
--cc=LARTC@mailman.ds9a.nl \
--cc=jeffchua@silk.corp.fedex.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=netdev@oss.sgi.com \
--cc=shemminger@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).