Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153171 - dev-perl/Net-IP - iptab error in /usr/lib64/perl5/5.8.8/Math/BigInt.pm line 1148.
Summary: dev-perl/Net-IP - iptab error in /usr/lib64/perl5/5.8.8/Math/BigInt.pm line 1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Lowest normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-28 12:34 UTC by Daniel
Modified: 2007-03-31 19:57 UTC (History)
0 users

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


Attachments
Patch for /usr/lib/perl5/vendor_perl/5.8.8/Net/IP.pm (NETpatch,322 bytes, patch)
2007-03-30 14:28 UTC, deanx
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2006-10-28 12:34:18 UTC
The bug:
localhost ~ #iptab
+----------------------------------------------+
| addrs   bits   pref   class  mask            |
+----------------------------------------------+
Can't call method "is_zero" on an undefined value at /usr/lib64/perl5/5.8.8/Math/BigInt.pm line 1148.

-----

More info:
--
qfile iptab
dev-perl/Net-IP (/usr/bin/iptab)
--
emerge -pv dev-perl/Net-IP
[binary   R   ] dev-perl/Net-IP-1.25
--
qfile BigInt.pm
dev-lang/perl (/usr/lib64/perl5/5.8.8/Math/BigInt.pm)
--
emerge -pv dev-lang/perl
[binary   R   ] dev-lang/perl-5.8.8-r2  USE="doc -berkdb -build -debug -gdbm -ithreads -perlsuid"
--
perl -v
This is perl, v5.8.8 built for x86_64-linux
--
md5sum /usr/lib64/perl5/5.8.8/Math/BigInt.pm
fdb5563799a02f5326f9b46672bf987f  /usr/lib64/perl5/5.8.8/Math/BigInt.pm
--
sed 1,1147d /usr/lib64/perl5/5.8.8/Math/BigInt.pm|head -n1
  return $x->round(@r) if $y->is_zero();
--
I removed the archived versions of "perl" and "Net-IP" in /usr/portage/packages/ALL and emerged them again. No change.
---

General info:
--
ls -la /etc/make.profile
lrwxrwxrwx 1 root root 56 2006-10-12 16:04 /etc/make.profile -> /usr/portage/profiles/default-linux/amd64/2006.1/desktop
--
emerge --info
Portage 2.1.1-r1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r8 x86_64 AMD Sempron(tm) Processor 3300+
Gentoo Base System version 1.12.5
Last Sync: Sat, 28 Oct 2006 11:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O3 -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 /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/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -msse3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-g"
FEATURES="autoconfig buildpkg distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv"
GENTOO_MIRRORS="http://10.0.1.10/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://distfiles.gentoo.org "
LANG="bg_BG.cp1251"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-z,now"
LINGUAS="en bg"
MAKEOPTS="-j4 -l1 -s"
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'"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/danny /usr/local/overlays/xgl-coffee"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi aiglx alsa amd64 apm audiofile bash-completion bcmath bitmap-fonts bonobo bzip2 cairo calendar caps cdparanoia cdr cgi clamav cli crosscompile crypt ctype curl curlwrappers dbus dio divx dlloader doc dts dvd dvdr dvdread elibc_glibc encode fam fastcgi fbcon ffmpeg flac flash fontconfig ftp gd gencertdaily geoip gif glibc-omitfp glitz glut gmedia gmp gnome gpm gstreamer gtk gtk2 gtkhtml hal httpd iconv icq imagemagick imap imlib input_devices_keyboard input_devices_mouse javascript jpeg jpeg2k justify kernel_linux kqemu libwww linguas_bg linguas_en lm_sensors mad maildir math mcal memlimit mhash mikmod mime mmap mng mnogosearch motif mozilla mp3 mpeg mpi mysql ncurses nls no-old-linux nocd nptl nptlonly nsplugin nvidia ocaml offensive ogg oggvorbis opengl oss pam pcntl pcre pdf perl php png posix postfix python quicktime readline realmedia rtc sasl sdl seamonkey sensord session slang sndfile sockets spamassassin spell ssl startup-notification static svg symlink sysfs sysvipc tabs tcpd test tetex theora threads tidy tiff tools truetype truetype-fonts unicode usb userland_GNU userlocales vcd vda vhosts video_cards_nvidia videos vmware vorbis wmf wmp wxwindows xface xml xmlrpc xorg xosd xpm xv xvid zlib"
Unset:  CTARGET, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS

-- 
Best regards,
Daniel
Comment 1 deanx 2007-03-30 14:28:09 UTC
Created attachment 114951 [details, diff]
Patch for /usr/lib/perl5/vendor_perl/5.8.8/Net/IP.pm

This patch changes the /usr/lib/perl5/vendor_perl/5.8.8/Net/IP.pm library so that iptab works again. I have supplied the patch to the vendor, the problem occurs when the .size() function is called on the ip 0.0.0.0 which occurs in the iptab script.

deanx
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2007-03-30 15:19:00 UTC
Did you see RT 20265? ( http://rt.cpan.org/Public/Bug/Display.html?id=20265 ) No offense intended, but I think the patch here is cleaner. Can you confirm that this alternate patch works against iptab's problem?
Comment 3 deanx 2007-03-30 16:42:11 UTC
No offense taken, when I first found I had this problem I didn't know the root cause so this was the only link I found describing my problem. When I had solved the problem I didn't bother to look for a patch for that so didn't see find the RT you meantioned.

I can confirm that this alternative patch does the same as mine only more elegantly. 

Comment 4 Michael Cummings (RETIRED) gentoo-dev 2007-03-30 20:56:00 UTC
patched, bumped, enjoy
Comment 5 Daniel 2007-03-31 19:57:06 UTC
(In reply to comment #4)
> patched, bumped, enjoy
> 

Confirmation.

iptab works now. Thank you for your efforts, guys!