mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Andrew Walrond <andrew@walrond.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.28 headers break kbd and net-tools userspace builds
Date: Thu, 22 Jan 2009 18:56:45 +0100	[thread overview]
Message-ID: <20090122175645.GA14178@uranus.ravnborg.org> (raw)
In-Reply-To: <49786A59.6040706@walrond.org>

On Thu, Jan 22, 2009 at 12:45:13PM +0000, Andrew Walrond wrote:
> Breaks kbd like this:
> 
>  /usr/include/linux/serial.h:164: error: expected 
> specifier-qualifier-list before '__u32'

This is know and fixed. The fix is to include linux/types.h
in serial.h.

> 
> and net-tools like this:
> 
>  In file included from /usr/include/linux/if_tunnel.h:5,
>                   from iptunnel.c:39:
>  /usr/include/linux/ip.h:85: error: redefinition of 'struct iphdr'
> 
> Both build fine with 2.6.27.10 headers.

Herbert added an include of ip.h in commit:

commit c19e654ddbe3831252f61e76a74d661e1a755530
Author: Herbert Xu <herbert@gondor.apana.org.au>
Date:   Thu Oct 9 11:59:55 2008 -0700

    gre: Add netlink interface

    This patch adds a netlink interface that will eventually displace
    the existing ioctl interface.  It utilises the elegant rtnl_link_ops
    mechanism.

This causes struct iphdr to be redefined.
But there is noting wrong in including ip.h in if_tunnel.h.

I checked the include guards and they are correct.

Could you please investige where it picks up the first definition
of struct iphdr.

> Hope that's useful.

Anything that can improve the exported user headers are useful - thanks.

	Sam

  reply	other threads:[~2009-01-22 17:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-22 12:45 Andrew Walrond
2009-01-22 17:56 ` Sam Ravnborg [this message]
2009-01-22 19:04   ` Andrew Walrond
     [not found]   ` <4978C301.1040705@walrond.org>
2009-01-22 19:12     ` Sam Ravnborg
2009-01-27  5:08       ` David Miller
2009-01-27 10:44         ` Jan Engelhardt
2009-01-28 20:29           ` David Miller
2009-01-30  4:12             ` Jan Engelhardt
2009-02-02 10:35               ` Andrew Walrond
2009-02-02 20:05                 ` David Miller
2009-02-02 21:13                   ` Andrew Walrond
2009-02-02 21:24                     ` David Miller
2009-02-02 21:27                       ` David Miller
2009-02-03  4:58                         ` Sam Ravnborg
2009-02-03  5:26                           ` David Miller

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=20090122175645.GA14178@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=andrew@walrond.org \
    --cc=linux-kernel@vger.kernel.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

Powered by JetHome