bugzilla-daemon at netfilter.org
2018-Feb-22 12:16 UTC
[Bug 1231] New: libxt_bpf.c:69:6: error: 'union bpf_attr' has no member named 'pathname'
https://bugzilla.netfilter.org/show_bug.cgi?id=1231 Bug ID: 1231 Summary: libxt_bpf.c:69:6: error: 'union bpf_attr' has no member named 'pathname' Product: netfilter/iptables Version: unspecified Hardware: All OS: Ubuntu Status: NEW Severity: enhancement Priority: P5 Component: ip_tables (kernel) Assignee: netfilter-buglog at lists.netfilter.org Reporter: torque at gmail.com I'm attempting to cross compile 1.6.2 for Raspi on Ubuntu with ``` ./configure --host=arm-linux-gnueabihf -prefix=/home/tim/raspi/usr -exec-prefix=/home/tim/raspi/usr --with-tools=no --with-tests=no --enable-static PKG_CONFIG_LIBDIR=/home/tim/raspi/usr/lib/pkgconfig CFLAGS=-I/home/tim/raspi/usr/include LIBS=-L/home/tim/raspi/usr/lib ``` and I get ``` libxt_bpf.c: In function 'bpf_obj_get': libxt_bpf.c:69:6: error: 'union bpf_attr' has no member named 'pathname' attr.pathname = (__u64) filepath; ^ libxt_bpf.c:69:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] attr.pathname = (__u64) filepath; ^ libxt_bpf.c:71:27: error: 'BPF_OBJ_GET' undeclared (first use in this function) return syscall(__NR_bpf, BPF_OBJ_GET, &attr, sizeof(attr)); ^ libxt_bpf.c:71:27: note: each undeclared identifier is reported only once for each function it appears in libxt_bpf.c:77:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ GNUmakefile:127: recipe for target 'libxt_bpf.o' failed ``` if i try to compile 1.6.1, I seem to get a lot further, but end up with ``` libtool: link: arm-linux-gnueabihf-gcc -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DALL_INCLUSIVE -DENABLE_IPV4 -DENABLE_IPV6 -I/home/tim/raspi/usr/include -o .libs/xtables-multi xtables_multi-xtables-multi.o xtables_multi-iptables-xml.o xtables_multi-iptables-save.o xtables_multi-iptables-restore.o xtables_multi-iptables-standalone.o xtables_multi-iptables.o xtables_multi-ip6tables-save.o xtables_multi-ip6tables-restore.o xtables_multi-ip6tables-standalone.o xtables_multi-ip6tables.o xtables_multi-xshared.o ../extensions/libext.a ../libiptc/.libs/libip4tc.so ../extensions/libext4.a ../libiptc/.libs/libip6tc.so ../extensions/libext6.a ../libxtables/.libs/libxtables.so -lm -L/home/tim/raspi/usr/lib -Wl,-rpath -Wl,/home/tim/raspi/usr/lib /home/tim/raspi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/../../../../arm-linux-gnueabihf/bin/ld: ../extensions/libext.a(libxt_connlabel.o): undefined reference to symbol 'nfct_labelmap_new' /home/tim/raspi/usr/lib/libnetfilter_conntrack.so.3: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:616: recipe for target 'xtables-multi' failed make[3]: *** [xtables-multi] Error 1 ``` -- You are receiving this mail because: You are watching all bug changes. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20180222/ffc02be4/attachment.html>