Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 135165

Summary: perl module Net::RawIP cannot be loaded - host_to_ip missing
Product: Gentoo Linux Reporter: Maciej Grela <thermal>
Component: New packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: 2006.0   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Maciej Grela 2006-06-01 07:54:08 UTC
I recently installed the Net::RawIP package for perl using emerge:

newhope ~ # emerge -pvt Net-RawIP

These are the packages that I would merge, in reverse order:

Calculating dependencies ...done!
[ebuild   R   ] dev-perl/Net-RawIP-0.2  -minimal 0 kB

Total size of downloads: 0 kB

The problem is that when I try to load the Net::RawIP module I get a strange error:

newhope ~ # ./test.pl
host_to_ip: failed at /usr/lib/perl5/vendor_perl/5.8.7/i686-linux/Net/RawIP.pm line 415.

I checked in the package and this function exists in 
>>> /usr/lib/perl5/vendor_perl/5.8.7/i686-linux/auto/Net/RawIP/RawIP.so

unfortunately the perl module doesn`t load it (I think). The code I`m trying to run is:

newhope ~ # cat test.pl
#!/usr/bin/perl

use Net::RawIP;
$a = new Net::RawIP;
$a->set({ip => {saddr => 'my.target.lan',daddr => 'my.target.lan'},
        tcp => {source => 139,dest => 139,psh => 1, syn => 1}});
$a->send;
$a->ethnew("eth0");
$a->ethset(source => 'my.target.lan',dest =>'my.target.lan');
$a->ethsend;
$p = $a->pcapinit("eth0","dst port 21",1500,30);
$f = dump_open($p,"log");
loop $p,10,\&dump,$f;

It`s basicly an example from CPAN.

my emerge --info:
newhope ~ # emerge --info
Portage 2203-svn (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r3-newhope i686)
=================================================================
System uname: 2.6.16-gentoo-r3-newhope i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -mtune=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -mtune=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="en pl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X acl acpi adns alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdr cli crypt cscope cups curl dedicated dio dri dvd emboss encode esd ethereal exif expat ffmpeg fftw flac foomaticdb fortran ftp gd gdbm gif glitz glut gnutls gpgme gphoto2 gpm gsm gtk gtk2 hal iconv idn imagemagick imap ipv6 irda isdnlog jabber jack java javascript joystick jpeg kde lcms ldap libcaca libg++ libwww lirc lm_sensors mad maildir matroska mhash mikmod mime mmx mmxext mng motif mp3 mpeg mysql ncurses netboot nls nntp nptl nptlonly ogg openal opengl pam pcre pdflib perl php png pop pppd python qt quicktime readline real recode reflection rtc samba sasl sdl sensord session sharedmem slp smartcard smime snmp sockets socks5 sox speex spl sse ssl svg sysfs tcpd theora threads threadstruetype tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vorbis win32codecs xine xinerama xinetd xml xml2 xmms xorg xv xvid zlib video_cards_radeon linguas_en linguas_pl userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-06-01 07:58:10 UTC
Please, don't restrict bugs without a reason.
Comment 2 Christian Hartmann (RETIRED) gentoo-dev 2006-06-01 14:57:07 UTC
You will need to replace the "my.target.lan" entries with valid hostnames. Otherwise the function fails as it is unable to resolve the hostnames given.