Thread (3 messages) flat view 3 messages, 2 authors, 2015-06-02

Re: [PATCH 67/98] include/uapi/linux/netfilter/ipset/ip_set_bitmap.h: include linux/netfilter/ipset/ip_set.h

From: Mikko Rapeli <hidden>
Date: 2015-06-02 19:42:34
Also in: lkml, netfilter-devel

On Sun, May 31, 2015 at 08:15:48PM +0200, Jozsef Kadlecsik wrote:
On Sat, 30 May 2015, Mikko Rapeli wrote:
quoted
Fixes userspace compilation error:

error: ?IPSET_ERR_TYPE_SPECIFIC? undeclared here (not in a function)
  IPSET_ERR_BITMAP_RANGE = IPSET_ERR_TYPE_SPECIFIC,
What kind of userspace compilation generates the error message above? How 
can one reproduce it?
Here's the test which reproduces this https://lkml.org/lkml/2015/5/30/98

Should run on at least Debian based distributions and some cross compilers.
In the end the script generates a .c file which includes only this header file
and tries to compile it with a call like:

cc -Wall -c -nostdinc -I /usr/lib/gcc/i586-linux-gnu/4.9/include -I /usr/lib/gcc/i586-linux-gnu/4.9/include-fixed -I . -I ../headers_compile_test_include -I ../headers_compile_test_include/i586-linux-gnu ./linux/netfilter/ipset/ip_set_bitmap.c

-Mikko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help