Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98952 - Emerge Success with the masked package for hping
Summary: Emerge Success with the masked package for hping
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High normal (vote)
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-13 21:13 UTC by Wes Bateman
Modified: 2008-03-02 12:02 UTC (History)
1 user (show)

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


Attachments
libpcap_stuff.c.patch - move pcap #include to avoid re-declaration (libpcap_stuff.c.patch,266 bytes, patch)
2005-07-14 14:48 UTC, Kito (RETIRED)
Details | Diff
Ebuild patch adds ~ppc-macos keyword and patches libpcap_stuff.c (hping-2.0.0_rc3-r1.ebuild.patch,497 bytes, patch)
2005-07-14 14:49 UTC, Kito (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wes Bateman 2005-07-13 21:13:56 UTC
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>
Comment 1 Hasan Khalil (RETIRED) gentoo-dev 2005-07-14 08:36:38 UTC
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?
Comment 2 Wes Bateman 2005-07-14 11:06:45 UTC
> 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?
Comment 3 Hasan Khalil (RETIRED) gentoo-dev 2005-07-14 12:16:28 UTC
(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.
Comment 4 Kito (RETIRED) gentoo-dev 2005-07-14 14:34:25 UTC
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.
Comment 5 Kito (RETIRED) gentoo-dev 2005-07-14 14:48:32 UTC
Created attachment 63418 [details, diff]
libpcap_stuff.c.patch - move pcap #include to avoid re-declaration
Comment 6 Kito (RETIRED) gentoo-dev 2005-07-14 14:49:33 UTC
Created attachment 63419 [details, diff]
Ebuild patch adds ~ppc-macos keyword and patches libpcap_stuff.c
Comment 7 Kito (RETIRED) gentoo-dev 2005-07-14 15:01:41 UTC
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.
Comment 8 Hasan Khalil (RETIRED) gentoo-dev 2005-07-14 15:22:41 UTC
My mistake, guys. Sorry about that.
Comment 9 Fabian Groffen gentoo-dev 2005-09-10 10:50:32 UTC
Any news on this?
Comment 10 Jon Portnoy (RETIRED) gentoo-dev 2005-09-10 16:16:08 UTC
Go for it.
Comment 11 Fabian Groffen gentoo-dev 2008-03-02 12:02:26 UTC
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.