netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ebtables-2.0.10-1: a build problem
@ 2011-07-18 17:03 Sergei Zhirikov
  2011-08-08 18:57 ` Bart De Schuymer
  0 siblings, 1 reply; 2+ messages in thread
From: Sergei Zhirikov @ 2011-07-18 17:03 UTC (permalink / raw)
  To: netfilter-devel

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-08 18:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-18 17:03 ebtables-2.0.10-1: a build problem Sergei Zhirikov
2011-08-08 18:57 ` Bart De Schuymer

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).