All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bart De Schuymer <bdschuym@pandora.be>
To: Sergei Zhirikov <sfzhi@yahoo.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: ebtables-2.0.10-1: a build problem
Date: Mon, 08 Aug 2011 20:57:20 +0200	[thread overview]
Message-ID: <4E403190.6090702@pandora.be> (raw)
In-Reply-To: <j01p1c$p9b$1@dough.gmane.org>

Hello Sergei,

Thanks for the report.
I finally figured out I have to run "make headers_install" in the kernel 
source directory to get sanitized headers. That removes the need for 
this __EXPORTED_HEADERS__ stuff. I'll be releasing an updated version 
later this week.

Bart


On 18-07-11 19:03, Sergei Zhirikov wrote:
> Hi,
>
> Just want to let you know that I've encountered a small problem while 
> trying to build ebtables-2.0.10-1:
>
> cc1: warnings being treated as errors
> In file included from /usr/include/asm/sigcontext.h:5:0,
>                  from /usr/include/bits/sigcontext.h:28,
>                  from /usr/include/signal.h:339,
>                  from ebtables.c:29:
> include/linux/types.h:13:2: error: #warning "Attempt to use kernel 
> headers from user space, see http://kernelnewbies.org/KernelHeaders"
> make: *** [ebtables.o] Error 1
>
> The problem is that, even though "include/ebtables_u.h" defines 
> __EXPORTED_HEADERS__ to prevent exactly this from happening, 
> "include/linux/types.h" that throws the error is pulled in *before* 
> that indirectly via "signal.h". (I'm using gcc-4.5.1, glibc-2.12.1, 
> kernel headers 2.6.35.11.)
>
> To be able to proceed with the build I had to remove "#define 
> __EXPORTED_HEADERS__" from "include/ebtables_u.h" and "getethertype.c" 
> and add "-D__EXPORTED_HEADERS__" to CFLAGS instead, although i"m not 
> sure that was the best solution.
>
> -- 
> Regards,
> Sergei.
>
> -- 
> To unsubscribe from this list: send the line "unsubscribe 
> netfilter-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


-- 
Bart De Schuymer
www.artinalgorithms.be


      reply	other threads:[~2011-08-08 18:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18 17:03 ebtables-2.0.10-1: a build problem Sergei Zhirikov
2011-08-08 18:57 ` Bart De Schuymer [this message]

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=4E403190.6090702@pandora.be \
    --to=bdschuym@pandora.be \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=sfzhi@yahoo.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.