I got hping to work by simply doing: ppc-macos hping-2.0.0_rc3-r1.ebuild 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. Wes <gentoo@wesb.org>
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 2.0.51.19 (default-darwin/macos/10.3, gcc-3.3, libsystem-7.1-r0, 7.9.0 Power Macintosh) ================================================================= System uname: 7.9.0 Power Macintosh powerpc macos-20041118 Python: [2.3 (#1, Sep 13 2003, 00:49:11)] distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] 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] virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sfperms strict userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" 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.