SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[...]
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
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.
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
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.
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
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..
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.