]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
libpcap: Fix build when PACKAGECONFIG ipv6 is not enable ross/master
authorFabio Berton <fabio.berton@ossystems.com.br>
Thu, 17 Nov 2016 15:26:34 +0000 (13:26 -0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Nov 2016 11:02:33 +0000 (11:02 +0000)
commit9f1fe76727e98e58fc9e46ea2b49cf5c0cb48e6c
tree65fc6e06489c2a8dc23e08251de95db015f65189
parentbe60ffcbbdcd370f9d367db887d31a8ccc6b2519
libpcap: Fix build when PACKAGECONFIG ipv6 is not enable

Add patches to fix error:
/
| ERROR: oe_runmake failed
| config.status: creating pcap-config.tmp
| mv pcap-config.tmp pcap-config
| chmod a+x pcap-config
| ../libpcap-1.8.1/gencode.c: In function 'pcap_compile':
| ../libpcap-1.8.1/gencode.c:693:8: error: 'compiler_state_t
| {aka struct _compiler_state}' has no member named 'ai'
|   cstate.ai = NULL;
|         ^
| ../libpcap-1.8.1/gencode.c: In function 'gen_gateway':
| ../libpcap-1.8.1/gencode.c:4914:13: error: 'cstate' undeclared
| (first use in this function)
|    bpf_error(cstate, "direction applied to 'gateway'");
|              ^~~~~~
| ../libpcap-1.8.1/gencode.c:4914:13: note: each undeclared identifier is
| reported only once for each function it appears in
\

Patches were submitted to upstream [1]

[1] https://github.com/the-tcpdump-group/libpcap/pull/541

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-connectivity/libpcap/libpcap/0001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch [new file with mode: 0644]
meta/recipes-connectivity/libpcap/libpcap/0002-Add-missing-compiler_state_t-parameter.patch [new file with mode: 0644]
meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb