Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 346171 - net-analyzer/arping-2.09-r1 fails to build on MacOS 10.6
Summary: net-analyzer/arping-2.09-r1 fails to build on MacOS 10.6
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-20 13:16 UTC by Stuart Shelton
Modified: 2012-03-07 08:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pcap.h include order on FreeBSD (arping-2.09-pcap.patch,321 bytes, patch)
2010-12-21 23:32 UTC, Johan Hattne
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2010-11-20 13:16:22 UTC
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"
Comment 1 Johan Hattne 2010-12-21 23:32:51 UTC
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).
Comment 2 Richard Yao (RETIRED) gentoo-dev 2012-03-07 08:20:30 UTC
This bug is obsolete. net-analyzer/arping-2.11 builds for me without a problem on Snow Leopard in a x64-macos prefix.
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-03-07 08:27:49 UTC
@Stuart
as per comment #3, please test with more recent arping and reopen if necessary. Thanks!