Thread (8 messages) 8 messages, 3 authors, 2017-12-06

Re: [PATCH iproute2] iproute2: Fix undeclared __kernel_long_t type build error in RHEL 6.8

flat view

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2017-12-01 16:48:18

On Fri,  1 Dec 2017 13:04:51 +0200
Leon Romanovsky [off-list ref] wrote:
From: Leon Romanovsky <redacted>

Add asm/posix_types.h header file to the list of needed includes,
because the headers files in RHEL 6.8 are too old and doesn't
have declaration of __kernel_long_t.

In file included from ../include/uapi/linux/kernel.h:5,
                 from ../include/uapi/linux/netfilter/x_tables.h:4,
                 from ../include/xtables.h:20,
                 from em_ipset.c:26:
../include/uapi/linux/sysinfo.h:9: error: expected specifier-qualifier-list before ‘__kernel_long_t’

Cc: Riad Abo Raed <redacted>
Cc: Guy Ergas <redacted>
Signed-off-by: Leon Romanovsky <redacted>
I see the problem, but the solution of dragging in posix_types.h
would be too much of a long term maintenance issue.
All the headers in uapi are regularly generated from upstream
kernel headers; I don't want to start making exceptions.

Is it just the xtables stuff (which has always been problematic)?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help