Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185679 - net-analyzer/hping-3 does not compile on amd64
Summary: net-analyzer/hping-3 does not compile on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL: http://archives.neohapsis.com/archive...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-17 17:47 UTC by twistx
Modified: 2007-07-30 16:26 UTC (History)
2 users (show)

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


Attachments
failed emerge (failedemerge,9.89 KB, text/plain)
2007-07-17 17:49 UTC, twistx
Details
Patch to add bytesex.h.patch to ebuild (hping3byte.patch,327 bytes, patch)
2007-07-23 14:41 UTC, Kenneth Prugh (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description twistx 2007-07-17 17:47:30 UTC
Compiling hping3 on my x86_64 system fails.  It states that the proper byte order for my arch isn't listed in bytesex.h

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -pv hping (make sure its hping3, hping2 compiled fine because its already patched)
3. emerge hping

Actual Results:  
hping3 fails to compile

bytesex.h:22:3: error: #error can not find the byte order for this architecture, fix bytesex.h

Expected Results:  
I was able to resolve the issue above from a forum post I found on Google.  This is the same problem that /usr/portage/net-analyzer/hping/files/bytesex.h.patch fixes, but the problem with that patch is its only applied to hping ebuilds.

Here's the post with a diff:
http://archives.neohapsis.com/archives/openbsd/2005-05/1601.html

I imagine this would happen on any arch that isn't listed in bytesex.h.  I included endian.h from /usr/include, but I'm not sure if thats the proper one to reference.  Despite that, it hping3 happily compiled and I was able to install and use it.



EMERGE INFO:
hydra ~ # emerge info
*** Deprecated use of action 'info', use '--info' instead
Portage 2.1.3_rc7 (default-linux/amd64/2006.0, gcc-4.1.2, glibc-2.5-r0, 2.6.19-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r4 x86_64 AMD Athlon(tm) 64 FX-60 Dual Core Processor
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 11 Jul 2007 03:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r1
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://mirror.usu.edu/mirrors/gentoo/ ftp://mirror.usu.edu/mirrors/gentoo/ "
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X XGL acpi aiglx alsa amd64 apache2 bash-completion berkdb bitmap-fonts browserplugin cli cracklib crypt crypto cups dri dvd dvdr dvdread dvdrw emboss encode esd firefox foomaticdb fortran gif gpm gstreamer gtk gtk2 iconv imlib isdnlog ithreads java joystick jpeg keyscrub lzw lzw-tiff midi mikmod mozilla mp3 mpeg mplayer mudflap mysql ncurses network nls nptl nsplugin nvidia offensive opengl openmp pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd threads tiff truetype-fonts type1-fonts usb vorbis xinerama xml xorg xpm xscreensaver xv xvid zlib" ALSA_CARDS="emu10k1 intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 twistx 2007-07-17 17:49:23 UTC
Created attachment 125182 [details]
failed emerge
Comment 2 twistx 2007-07-17 17:53:13 UTC
(In reply to comment #1)
> Created an attachment (id=125182) [edit]
> failed emerge
> 

Typo in expected results.  

This is the same problem that
"/usr/portage/net-analyzer/hping/files/bytesex.h.patch fixes, but the problem
with that patch is its only applied to hping2 ebuilds."
                                           ^^^
Comment 3 Kenneth Prugh (RETIRED) gentoo-dev 2007-07-23 14:41:48 UTC
Created attachment 125744 [details, diff]
Patch to add bytesex.h.patch to ebuild

Here's a simple patch to add the bytesex.h.patch to the hping3 ebuild.
Comment 4 Michael Gisbers 2007-07-30 16:00:55 UTC
Patch from #3 works on my ~amd64 without problems.
Comment 5 Tobias Scherbaum (RETIRED) gentoo-dev 2007-07-30 16:26:22 UTC
Fixed in CVS. Thanks!