Whilst arping-2.08-r1 still compiles correctly, arping-2.09-r1 fails with: >>> Compiling source in /opt/gentoo/var/tmp/portage/net-analyzer/arping-2.09-r1/work/arping-2.09 ... make make all-recursive make[1]: Entering directory `/opt/gentoo/var/tmp/portage/net-analyzer/arping-2.09-r1/work/arping-2.09' Making all in src make[2]: Entering directory `/opt/gentoo/var/tmp/portage/net-analyzer/arping-2.09-r1/work/arping-2.09/src' x86_64-apple-darwin10-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe -MT arping.o -MD -MP -MF .deps/arping.Tpo -c -o arping.o arping.c In file included from arping.c:84: /usr/include/net/bpf.h:105: error: redefinition of 'struct bpf_program' /usr/include/net/bpf.h:130: error: redefinition of 'struct bpf_version' In file included from arping.c:84: /usr/include/net/bpf.h:386: error: redefinition of 'struct bpf_insn' arping.c: In function 'pingmac_send': arping.c:502: warning: format '%d' expects type 'int', but argument 2 has type '__darwin_time_t' arping.c: In function 'pingip_send': arping.c:566: warning: format '%d' expects type 'int', but argument 2 has type '__darwin_time_t' make[2]: *** [arping.o] Error 1 make[2]: Leaving directory `/opt/gentoo/var/tmp/portage/net-analyzer/arping-2.09-r1/work/arping-2.09/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/gentoo/var/tmp/portage/net-analyzer/arping-2.09-r1/work/arping-2.09' make: *** [all] Error 2 emake failed * ERROR: net-analyzer/arping-2.09-r1 failed: * emake failed * * Call stack: * ebuild.sh, line 62: Called src_compile * environment, line 890: Called _eapi2_src_compile * ebuild.sh, line 660: Called die * The specific snippet of code: * emake || die "emake failed"
Created attachment 257723 [details, diff] pcap.h include order on FreeBSD Looks like the attached patch might fix this. If so, it is already fixed upstream (see http://www.habets.pp.se/synscan/programs.php?prog=arping#comment-88247070).
This bug is obsolete. net-analyzer/arping-2.11 builds for me without a problem on Snow Leopard in a x64-macos prefix.
@Stuart as per comment #3, please test with more recent arping and reopen if necessary. Thanks!