LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-23-2008, 05:10 AM   #1
SlackN00b
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 44

Rep: Reputation: 15
Can't install Net::Pcap


hi all,
I've tried with:

Code:
perl -MCPAN -e shell

install Net::Pcap
with no luck

and then

Code:
force install Net::Pcap
and again no luck:

Errors:

[...]
make: *** [Pcap.o] Error 1
SAPER/Net-Pcap-0.16.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
SAPER/Net-Pcap-0.16.tar.gz : make NO

Can someone helps me pls?

Thanks in advance
 
Old 01-23-2008, 07:38 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You've omitted the relevant errors. We would need the errors that occur above the make error to determine the original cause of the error. Everything beyond that is normal.
 
Old 01-23-2008, 08:08 AM   #3
SlackN00b
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 44

Original Poster
Rep: Reputation: 15
here we go:

Code:
cpan[1]> install Net::Pcap
CPAN: Storable loaded ok (v2.15)
Going to read /root/.cpan/Metadata
  Database was generated on Wed, 23 Jan 2008 05:31:03 GMT
Running install for module 'Net::Pcap'
Running make for S/SA/SAPER/Net-Pcap-0.16.tar.gz
CPAN: Digest::SHA loaded ok (v5.45)
CPAN: Compress::Zlib loaded ok (v2.008)
Checksum for /root/.cpan/sources/authors/id/S/SA/SAPER/Net-Pcap-0.16.tar.gz ok
Scanning cache /root/.cpan/build for sizes
DONE
Net-Pcap-0.16/
Net-Pcap-0.16/bin/
Net-Pcap-0.16/bin/pcapinfo
Net-Pcap-0.16/Changes
Net-Pcap-0.16/eg/
Net-Pcap-0.16/eg/pcapdump
Net-Pcap-0.16/eg/pktdump.pl
Net-Pcap-0.16/fallback/
Net-Pcap-0.16/fallback/const-c.inc
Net-Pcap-0.16/fallback/const-xs.inc
Net-Pcap-0.16/Makefile.PL
Net-Pcap-0.16/MANIFEST
Net-Pcap-0.16/META.yml
Net-Pcap-0.16/Pcap.pm
Net-Pcap-0.16/Pcap.xs
Net-Pcap-0.16/ppport.h
Net-Pcap-0.16/README
Net-Pcap-0.16/stubs.inc
Net-Pcap-0.16/t/
Net-Pcap-0.16/t/00-load.t
Net-Pcap-0.16/t/01-api.t
Net-Pcap-0.16/t/02-lookup.t
Net-Pcap-0.16/t/03-openlive.t
Net-Pcap-0.16/t/04-loop.t
Net-Pcap-0.16/t/05-dump.t
Net-Pcap-0.16/t/06-offline.t
Net-Pcap-0.16/t/07-stats.t
Net-Pcap-0.16/t/08-filter.t
Net-Pcap-0.16/t/09-error.t
Net-Pcap-0.16/t/10-fileno.t
Net-Pcap-0.16/t/11-snapshot.t
Net-Pcap-0.16/t/12-next.t
Net-Pcap-0.16/t/13-dispatch.t
Net-Pcap-0.16/t/14-datalink.t
Net-Pcap-0.16/t/15-is_swapped.t
Net-Pcap-0.16/t/16-setnonblock.t
Net-Pcap-0.16/t/17-lib_version.t
Net-Pcap-0.16/t/18-open_dead.t
Net-Pcap-0.16/t/19-breakloop.t
Net-Pcap-0.16/t/20-constants.t
Net-Pcap-0.16/t/21-next_ex.t
Net-Pcap-0.16/t/22-open.t
Net-Pcap-0.16/t/23-srcstr.t
Net-Pcap-0.16/t/50-poe-component-pcap.t
Net-Pcap-0.16/t/distchk.t
Net-Pcap-0.16/t/pod.t
Net-Pcap-0.16/t/podcover.t
Net-Pcap-0.16/t/podspell.t
Net-Pcap-0.16/t/portfs.t
Net-Pcap-0.16/t/README
Net-Pcap-0.16/t/samples/
Net-Pcap-0.16/t/samples/ping-ietf-20pk-be.dmp
Net-Pcap-0.16/t/samples/ping-ietf-20pk-le.dmp
Net-Pcap-0.16/t/Utils.pm
Net-Pcap-0.16/typemap
CPAN: File::Temp loaded ok (v0.18)
CPAN: YAML loaded ok (v0.66)

  CPAN.pm: Going to build S/SA/SAPER/Net-Pcap-0.16.tar.gz

looking for -lpcap... yes
checking for pcap_lib_version() in -lpcap... yes
detecting available functions... ok
Checking if your kit is complete...
Looks good
Writing Makefile for Net::Pcap
cp Pcap.pm blib/lib/Net/Pcap.pm
/usr/bin/perl5.8.8 /usr/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap  Pcap.xs > Pcap.xsc && mv Pcap.xsc Pcap.c
cc -c   -Wall -Wwrite-strings -O2 -march=i486 -mtune=i686   -DVERSION=\"0.16\" -DXS_VERSION=\"0.16\" -fPIC "-I/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE"  -DHAVE_BLANK -DHAVE_PCAP_LIB_VERSION Pcap.c
In file included from Pcap.xs:43:
stubs.inc:85:2: warning: #warning "the function pcap_findalldevs() is not available, but will be emulated"
In file included from Pcap.xs:43:
stubs.inc:91: error: redefinition of 'struct pcap_if'
stubs.inc:113:2: warning: #warning "the function pcap_breakloop() is not available"
stubs.inc:127:2: warning: #warning "the function pcap_setnonblock() is not available"
stubs.inc:142:2: warning: #warning "the function pcap_getnonblock() is not available"
stubs.inc:157:2: warning: #warning "the function pcap_dump_file() is not available"
stubs.inc:172:2: warning: #warning "the function pcap_dump_flush() is not available"
stubs.inc:187:2: warning: #warning "the function pcap_list_datalinks() is not available"
stubs.inc:202:2: warning: #warning "the function pcap_set_datalink() is not available"
stubs.inc:217:2: warning: #warning "the function pcap_datalink_name_to_val() is not available"
stubs.inc:232:2: warning: #warning "the function pcap_datalink_val_to_name() is not available"
stubs.inc:247:2: warning: #warning "the function pcap_datalink_val_to_description() is not available"
stubs.inc:262:2: warning: #warning "the function pcap_compile_nopcap() is not available"
stubs.inc:267: error: conflicting types for 'pcap_compile_nopcap'
/usr/include/pcap.h:245: error: previous declaration of 'pcap_compile_nopcap' was here
stubs.inc:268: error: conflicting types for 'pcap_compile_nopcap'
/usr/include/pcap.h:245: error: previous declaration of 'pcap_compile_nopcap' was here
stubs.inc:277:2: warning: #warning "the function pcap_get_selectable_fd() is not available"
stubs.inc:292:2: warning: #warning "the function pcap_next_ex() is not available"
stubs.inc:307:2: warning: #warning "the function pcap_sendpacket() is not available"
stubs.inc:322:2: warning: #warning "the function pcap_createsrcstr() is not available"
stubs.inc:337:2: warning: #warning "the function pcap_parsesrcstr() is not available"
stubs.inc:352:2: warning: #warning "the function pcap_open() is not available"
stubs.inc:373:2: warning: #warning "the function pcap_setbuff() is not available"
stubs.inc:388:2: warning: #warning "the function pcap_setuserbuffer() is not available"
stubs.inc:403:2: warning: #warning "the function pcap_setmode() is not available"
stubs.inc:418:2: warning: #warning "the function pcap_setmintocopy() is not available"
stubs.inc:433:2: warning: #warning "the function pcap_sendqueue_alloc() is not available"
stubs.inc:455:2: warning: #warning "the function pcap_sendqueue_destroy() is not available"
stubs.inc:469:2: warning: #warning "the function pcap_sendqueue_queue() is not available"
stubs.inc:484:2: warning: #warning "the function pcap_sendqueue_transmit() is not available"
stubs.inc:499:2: warning: #warning "the function pcap_event() is not available"
stubs.inc:514:2: warning: #warning "the function pcap_setsampling() is not available"
Pcap.xs: In function 'callback_wrapper':
Pcap.xs:57: warning: pointer targets in passing argument 2 of 'Perl_newSVpv' differ in signedness
Pcap.xs: In function 'XS_Net__Pcap_next_ex':
Pcap.xs:494: warning: pointer targets in passing argument 3 of 'Perl_sv_setpvn' differ in signedness
Pcap.xs: In function 'XS_Net__Pcap_dump':
Pcap.xs:553: warning: pointer targets in passing argument 3 of 'pcap_dump' differ in signedness
Pcap.c: In function 'XS_Net__Pcap_dump_file':
Pcap.c:1083: warning: passing argument 2 of 'Perl_newGVgen' discards qualifiers from pointer target type
Pcap.c:1085: warning: passing argument 3 of 'Perl_do_open' discards qualifiers from pointer target type
Pcap.c: In function 'XS_Net__Pcap_strerror':
Pcap.c:1384: warning: assignment discards qualifiers from pointer target type
Pcap.c: In function 'XS_Net__Pcap_file':
Pcap.c:1428: warning: passing argument 2 of 'Perl_newGVgen' discards qualifiers from pointer target type
Pcap.c:1430: warning: passing argument 3 of 'Perl_do_open' discards qualifiers from pointer target type
Pcap.xs: In function 'XS_Net__Pcap_sendpacket':
Pcap.xs:963: warning: pointer targets in passing argument 2 of 'pcap_sendpacket' differ in signedness
Pcap.c: In function 'boot_Net__Pcap':
Pcap.c:2050: warning: initialization discards qualifiers from pointer target type
Pcap.c:2054: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2055: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2056: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2057: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2058: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2059: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2060: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2061: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2062: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2063: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2064: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2065: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2066: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2067: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2068: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2069: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2070: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2071: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2072: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2073: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2074: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2075: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2076: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2077: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2078: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2079: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2080: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2081: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2082: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2083: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2084: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2085: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2086: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2087: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2088: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2089: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2090: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2091: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2092: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2093: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2094: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2095: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2096: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2097: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2098: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2099: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2100: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2101: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2102: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2103: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2104: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2105: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2106: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
Pcap.c:2107: warning: passing argument 2 of 'Perl_newXS' discards qualifiers from pointer target type
 
Old 01-23-2008, 08:19 AM   #4
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Roll back to 0.14... 15 and 16 are just plain broke. IMO, when you see Rawhide using an old version of something you can be assured it's for a good reason.
 
Old 01-23-2008, 11:25 AM   #5
SlackN00b
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 44

Original Poster
Rep: Reputation: 15
Ok thx It works.

I'd like to add howto install Net::RawIP that requires libpcap.so. (Not found in my Slackware)

Download this file from
ftp://rpmfind.net/linux/fedora/core/....3-12.i386.rpm

then

Code:
rpm2tgz libpcap-0.8.3-12.i386.rpm
then copy libpcap.so to /usr/lib

download Net::RawIP from Cpan and compile with:

Code:
perl Makefile.PL INC=-I/usr/include LIBS='-L/usr/lib -lpcap'
and then
Code:
make install
Hope it helps.
 
Old 01-25-2008, 04:37 AM   #6
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 510

Rep: Reputation: 53
Uhm? Why downloading an RPM and fiddle out a single .so?!

There's pcap package for Slackware available at linuxpackages.net. Just install it and the Perl module will work fine.

And /usr/lib doesn't have to be added on the command line - that's the one of the two default path for libs which even haven't to be included into /etc/ld.so.conf.

So, the easy way would be:

swaret --install pcap
ldconfig
perl Makefile.PL; make; make test; make install

and there you are.
 
Old 01-25-2008, 07:40 AM   #7
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Well... I wouldn't do that either. You'll be over writing a stock Slackware package which is kinda bad form. And using a so from a mismatched version wouldn't sit right with me as well.

Personally, I'd download the source code for libpcap-0.9.7 and then:

Code:
cd libpcap-0.9.7
wget http://cvs.fedoraproject.org/viewcvs/*checkout*/devel/libpcap/libpcap-0.9.7-shared.patch
patch -p1 -i libpcap-0.9.7-shared.patch
CFLAGS="`getconf LFS_CFLAGS`" ./configure --prefix=/usr --enable-ipv6
make SOVERSION=0.9
make SOVERSION=0.9 install DESTDIR=~/Desktop/shared-pcap/
Then pluck your shared libs out of there... That or make a "pcap-so" package from just the shared's..

Last edited by jong357; 01-25-2008 at 08:30 AM.
 
Old 02-24-2008, 06:10 PM   #8
kshafi
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Rep: Reputation: 0
So GURUs where can I get net-pcap-0.l4 for FC7. CPAN apparently only have the latest one i.e. 0.16 and the one available on net keep on failing to be installed. I am trying to automatically download and install using the default installer.

A quick help is appreciated.
 
Old 02-24-2008, 07:05 PM   #9
kshafi
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Rep: Reputation: 0
Okay - I finally was able to get the CPAN's version to install.
make test gives me following message:

(10 subtests UNEXPECTEDLY SUCCEEDED), 3 tests and 96 subtests skipped.
Failed 1/24 test scripts, 95.83% okay. 1/1608 subtests failed, 99.94% okay.
make: *** [test_dynamic] Error 255

but the module is successfully installed as is shown by instmodsh.

Is it alright?

Next I am still having problems with installing Net::RawIP

Upon using:
perl Makefile.PL INC=-I/usr/local/include/pcap LIBS='-L/usr/lib/pcap -lpcap'

it gives me:
Could not find libpcap, see the README file how to install it

Earlier I installed (i think so) the development version of libpcap from tcpdump website using cvs repositories and the commands they have listed there.

I have libpcap-0.9.5-1.fc7 installed on my machine.

Any help is appreciated.

Regards
Kam
 
Old 02-25-2008, 08:40 AM   #10
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Don't know. Net::RawIP compiles fine for me. I'd say there is a problem with libpcap. If you really do have libpcap FC7 installed, then you shouldn't be telling net-rawip to be looking in /usr/local for the includes. Fedora installs them in /usr/include... They also install the libs in /usr/lib, not /usr/lib/pcap... You also don't have to tell it to link against lpcap. It does it on it's own, thus the whole reason it's looking for the libpcap libraries...

Just use the same commands I did below.

Code:
[root@jaguar ~/Desktop/Net-RawIP-0.23] perl Makefile.PL 
Compiler: cc
cc (GCC) 4.2.3
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

#define PCAP_VERSION_MAJOR 2
#define PCAP_VERSION_MINOR 4
The following libpcap.so files were found:

/usr/lib/libpcap.so
/usr/lib/libpcap.so.0.9
/usr/lib/libpcap.so.0.9.8
Checking if your kit is complete...
Looks good
Writing Makefile for Net::RawIP
[root@jaguar ~/Desktop/Net-RawIP-0.23] make
cp lib/Net/RawIP/iphdr.pm blib/lib/Net/RawIP/iphdr.pm
cp lib/Net/RawIP/udphdr.pm blib/lib/Net/RawIP/udphdr.pm
cp lib/Net/RawIP/icmphdr.pm blib/lib/Net/RawIP/icmphdr.pm
cp lib/Net/RawIP/generichdr.pm blib/lib/Net/RawIP/generichdr.pm
cp RawIP/libpcap.pod blib/lib/Net/RawIP/libpcap.pod
cp lib/Net/RawIP.pm blib/lib/Net/RawIP.pm
AutoSplitting blib/lib/Net/RawIP.pm (blib/lib/auto/Net/RawIP)
cp lib/Net/RawIP/opt.pm blib/lib/Net/RawIP/opt.pm
cp lib/Net/RawIP/ethhdr.pm blib/lib/Net/RawIP/ethhdr.pm
cp lib/Net/RawIP/tcphdr.pm blib/lib/Net/RawIP/tcphdr.pm
/usr/bin/perl5.10.0 /usr/lib/perl5/5.10.0/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.10.0/ExtUtils/typemap -typemap typemap  RawIP.xs > RawIP.xsc && mv RawIP.xsc RawIP.c
cc -c   -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe   -DVERSION=\"0.23\" -DXS_VERSION=\"0.23\" -fPIC "-I/usr/lib/perl5/5.10.0/i686-linux-thread-multi/CORE"  -D_LINUX_ -D_ETH_ -D_IFLIST_ -pipe -O2 -march=i686 -D_GLIBC_ RawIP.c
cc -c   -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe   -DVERSION=\"0.23\" -DXS_VERSION=\"0.23\" -fPIC "-I/usr/lib/perl5/5.10.0/i686-linux-thread-multi/CORE"  -D_LINUX_ -D_ETH_ -D_IFLIST_ -pipe -O2 -march=i686 -D_GLIBC_ util.c
cc -c   -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe   -DVERSION=\"0.23\" -DXS_VERSION=\"0.23\" -fPIC "-I/usr/lib/perl5/5.10.0/i686-linux-thread-multi/CORE"  -D_LINUX_ -D_ETH_ -D_IFLIST_ -pipe -O2 -march=i686 -D_GLIBC_ eth.c
cc -c   -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe   -DVERSION=\"0.23\" -DXS_VERSION=\"0.23\" -fPIC "-I/usr/lib/perl5/5.10.0/i686-linux-thread-multi/CORE"  -D_LINUX_ -D_ETH_ -D_IFLIST_ -pipe -O2 -march=i686 -D_GLIBC_ ifaddrlist.c
Running Mkbootstrap for Net::RawIP ()
chmod 644 RawIP.bs
rm -f blib/arch/auto/Net/RawIP/RawIP.so
LD_RUN_PATH="/usr/lib" cc  -shared -O2 -pipe RawIP.o util.o eth.o ifaddrlist.o  -o blib/arch/auto/Net/RawIP/RawIP.so     \
       -lpcap      \
      
chmod 755 blib/arch/auto/Net/RawIP/RawIP.so
cp RawIP.bs blib/arch/auto/Net/RawIP/RawIP.bs
chmod 644 blib/arch/auto/Net/RawIP/RawIP.bs
Manifying blib/man3/Net::RawIP.3
Manifying blib/man3/Net::RawIP::libpcap.3
There is an rpm here tho:
http://rpm.pbone.net/index.php3/stat....i386.rpm.html

Last edited by jong357; 02-25-2008 at 09:06 AM.
 
Old 02-25-2008, 05:49 PM   #11
kshafi
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Rep: Reputation: 0
Dear Jong,

Thanks. I figured out that the libpcap development version was not installed properly (It was a frustrating experience for me, the development version can be found here http://rpmfind.net/linux/rpm2html/se...=libpcap-devel). And yes you are right, once you have libpcap and its development version installed properly, simple make commands work or more conveniently CPAN auto install process can be used.

Regards,
Kam
 
Old 02-25-2008, 07:40 PM   #12
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
That's one of my biggest pet peeves... Splitting up packages... Glad it's sorted.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
etch net install hangs on install software knobby67 Debian 1 02-14-2007 11:58 AM
WEPCrack and Can't locate Net/Pcap.pm jimdaworm SUSE / openSUSE 4 03-22-2006 12:31 PM
NIC recognized in debian net install but not after install Cycle Debian 7 12-23-2005 07:52 PM
Perl Net::Pcap install hang at loop test Bluesuperman Programming 1 08-17-2005 10:39 AM
libpcap.so.0 is needed by perl-Net-Pcap-0.04-5 r4736 Linux - Software 8 10-18-2003 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration