Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80949 - app-text/ipcalc-0.37 doesnt work well on AMD64
Summary: app-text/ipcalc-0.37 doesnt work well on AMD64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 All
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-05 21:55 UTC by Octavio Ruiz (Ta^3)
Modified: 2005-02-22 05:14 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Octavio Ruiz (Ta^3) 2005-02-05 21:55:10 UTC
app-text/ipcalc-0.37 does not calculate the number of hosts/nets.

ipcalc 200.33.146.201
Address:   200.33.146.201       11001000.00100001.10010010. 11001001
Netmask:   255.255.255.0 = 24   11111111.11111111.11111111. 00000000
Wildcard:  0.0.0.255            00000000.00000000.00000000. 11111111
=>
Network:   200.33.146.0/24      11001000.00100001.10010010. 00000000
HostMin:   200.33.146.1         11001000.00100001.10010010. 00000001
HostMax:   200.33.146.254       11001000.00100001.10010010. 11111110
Broadcast: 200.33.146.255       11001000.00100001.10010010. 11111111
Hosts/Net: 18446744069414584574  Class C, In Part Multicast

18446744069414584574 !!!  Hosts???


Portage 2.0.51-r15 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 16 2004, 21:00:36)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon64 -fstack-protector -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -fstack-protector -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks parallel-fetch sandbox sfperms strict userpriv usersandbox"
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"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/breakmygentoo"
SYNC="rsync://callampa/portage"
USE="amd64 X Xaw3d acpi acpi4linux aim alsa apache2 bash-completion berkdb bitmap-fonts bzip2 cdparanoia crypt cups dga dillo directfb divx4linux dvd dvdr dvdread emacs encode ethereal f77 fam fbcon fortran gdbm gif gimpprint gpm gstreamer gtk gtk2 icq imagemagick imap imlib ipv6 jabber java javascript jp2 jpeg justify leim libwww lzw lzw-tiff maildir mng motif mozdevelop moznoirc moznomail mozsvg mpeg msn multislot ncurses net network nls noreiserfs nptl nvidia offensive oggvorbis opengl oss pam pcmcia pcre perl pg-intdatetime pg-vacuumdelay png pnp python readline rtc samba scanner sld ssl svg symlink tcpd tetex tiff truetype truetype-fonts trusted type1-fonts unicode usagi usb wmf wsconvert xml2 xmms xpm xprint xrandr xv xvid yahoo zlib video_cards_nvidia"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

Version Packages Installed on the system:

dev-lang/perl-5.8.6-r2
sys-devel/libperl-5.8.6
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2005-02-06 04:18:54 UTC
haha, that's funny. i'll have a look at it
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2005-02-06 04:32:07 UTC
uh oh, that's perl... perhaps someone other want to have a look at it? :D

btw: it always gives 18446744069414584574 back: 18446744069414584574 = 2 ^ 64
Comment 3 Octavio Ruiz (Ta^3) 2005-02-10 23:26:20 UTC
Fixed on =app-text/ipcalc-0.38

ipcalc changelog...

0.38 2004-10-08 ipcalc did not work on 64bit architectures.
                Thanks to Foxfair Hu <foxfair(a)FreeBSD.org> for finding this bug

Should app-text/ipcalc-0.37 be masked on amd64 (Keyword -amd64)? or should be removed from portage tree? The upstream version bump is only for fix the amd64 issue.

:-)
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2005-02-17 10:27:05 UTC
amd64 team will have to do this one - would recommend -amd64 on the old versions and unmasking the latest working one (can't remove the 0.37 since everyone else has that as their only stable)
Comment 5 Malcolm Lashley (RETIRED) gentoo-dev 2005-02-22 05:14:20 UTC
I stable'd up 0.38 on amd64 - and marked 0.37 -amd64 to force the upgrade for our arch since 37 is broken anyways...