I got hping to work by simply doing:
After that it wouldn't build until I did:
ebuild hping-2.0.0_rc3-r1.ebuild digest
as suggested at http://gentoo-wiki.com/Gentoo_MacOS.
After rebuilding the digest, it built properly, and appears to be working as expected.
Just FYI ;) I'm really loving the notion of ditching fink and darwin ports for portage on OSX. Thanks for your efforts.
I get the following during compile:
In file included from libpcap_stuff.c:20:
/usr/include/net/bpf.h:93: error: redefinition of 'struct bpf_program'
/usr/include/net/bpf.h:118: error: redefinition of 'struct bpf_version'
/usr/include/net/bpf.h:321: error: redefinition of 'struct bpf_insn'
libpcap_stuff.c: In function 'pcap_recv':
libpcap_stuff.c:61: warning: pointer targets in assignment differ in signedness
make: *** [libpcap_stuff.o] Error 1
Can you please post your `emerge --info` output?
> Can you please post your `emerge --info` output?
# emerge --info
!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 22.214.171.124 (default-darwin/macos/10.3, gcc-3.3, libsystem-7.1-r0, 7.9.0
System uname: 7.9.0 Power Macintosh powerpc
Python: [2.3 (#1, Sep 13 2003, 00:49:11)]
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
dev-lang/python: [Not Present]
sys-apps/sandbox: [Not Present]
sys-devel/autoconf: [Not Present]
sys-devel/automake: [Not Present]
sys-devel/binutils: [Not Present]
sys-devel/libtool: [Not Present]
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sfperms
USE="ppc emboss ppc-macos readline userland_Darwin kernel_Darwin elibc_Darwin"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
I still have things in my path from fink and darwin ports. So I didn't get
libpcap from portage on this system. Could that be part of it?
(In reply to comment #2)
> I still have things in my path from fink and darwin ports. So I didn't get
> libpcap from portage on this system. Could that be part of it?
Yup - that'd be it. We just can't support environments like that. Sorry.
If you can get this to work without the fink/darwinports stuff around,
feel free to re-open this bug.
OS X Devs... please don't be so quick to close bugs. This had nothing todo with his fink/DP packages, its a
Tiger issue. I should have a quick easy patch once the maintainer approves it.
Created attachment 63418 [details, diff]
libpcap_stuff.c.patch - move pcap #include to avoid re-declaration
Created attachment 63419 [details, diff]
Ebuild patch adds ~ppc-macos keyword and patches libpcap_stuff.c
avenj - can you please take a look at these to make sure they are ok? I tested on x86/hardened, ppc, and
macos. Seems to be ok. If it looks good to you, you can either commit it and close this up or let me know
and I'll do it, thanks.
My mistake, guys. Sorry about that.
Any news on this?
Go for it.
this package is quite dramatic, even though kito's patch. It finds a tcl in the host system even though tcl USE isn't set.