Re: [PATCH 2/2] build: resolve build errors in dependent programs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 20, 2013 at 04:29:16PM +0200, Jan Engelhardt wrote:
> The headers do not compile standalone, which also causes nftables to
> fail to build for the same reason. In addition, <stdbool.h> is not
> needed for C++, and C++ should use contemporary headers if available,
> which is hereby done.
> 
> 	chain.h:44:71: warning: "struct nlmsghdr" declared inside
> 	parameter list [enabled by default]
> 	chain.h:60:35: error: unknown type name "size_t"
> 	expr.h:40:39: error: unknown type name "size_t"
> 	rule.h:43:64: warning: "struct nlmsghdr" declared inside
> 	parameter list [enabled by default]
> 	rule.h:59:34: error: unknown type name "size_t"
> 	ruleset.h:20:1: error: unknown type name "bool"
> 	ruleset.h:20:59: error: unknown type name "uint16_t"
> 	ruleset.h:39:37: error: unknown type name "size_t"
> 	set.h:38:33: error: unknown type name "size_t"
> 	table.h:32:71: warning: "struct nlmsghdr" declared inside
> 	parameter list [enabled by default]
> 	table.h:48:35: error: unknown type name "size_t"

This is fixing two different issues in one single patch.

I have applied a patch to add struct nlmsghdr without definition.

Regarding the c++ changes, we already discussed this in libmnl's
patch:

5b8a0c7 include: don't force compiler to enter C++11 mode

this change doesn't seem to be required by g++ at all.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux