Metasploit mailing list archives

One More Problem in regards to installing Metasploit on Ubuntu


From: professor0110 at gmail.com (Professor 0110)
Date: Wed, 8 Apr 2009 09:41:03 +1000

I managed to install and run Metasploit on Ubuntu 3.10, thanks to the
helpful instruction from you guys. However, even though I've managed to get
Metasploit to run, I have a problem with this instruction:

cd external/pcaprub; ruby extconf.rb; make

When I attempt this command at the command line, I receive the following
errors:

checking for pcap_open_live() in -lpcap... no
checking for pcap_setnonblock() in -lpcap... no
creating Makefile
cc -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I. -D_FILE_OFFSET_BITS=64  -fPIC
-fno-strict-aliasing -g -g -O2  -fPIC   -c pcaprub.c
pcaprub.c:4:18: error: pcap.h: No such file or directory
pcaprub.c:21: error: expected specifier-qualifier-list before ?pcap_t?
pcaprub.c:29: error: field ?hdr? has incomplete type
pcaprub.c: In function ?rbpcap_s_lookupdev?:
pcaprub.c:45: error: ?PCAP_ERRBUF_SIZE? undeclared (first use in this
function)
pcaprub.c:45: error: (Each undeclared identifier is reported only once
pcaprub.c:45: error: for each function it appears in.)
pcaprub.c:71: warning: assignment makes pointer from integer without a cast
pcaprub.c: In function ?rbpcap_s_lookupnet?:
pcaprub.c:83: error: ?bpf_u_int32? undeclared (first use in this function)
pcaprub.c:83: error: expected ?;? before ?net?
pcaprub.c:85: error: ?PCAP_ERRBUF_SIZE? undeclared (first use in this
function)
pcaprub.c:89: error: ?net? undeclared (first use in this function)
pcaprub.c:89: error: ?mask? undeclared (first use in this function)
pcaprub.c:94: error: ?m? undeclared (first use in this function)
pcaprub.c: In function ?rbpcap_ready?:
pcaprub.c:103: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c: In function ?rbpcap_close?:
pcaprub.c:111: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c:112: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c:114: error: ?rbpcap_t? has no member named ?pdt?
pcaprub.c:115: error: ?rbpcap_t? has no member named ?pdt?
pcaprub.c:117: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c:118: error: ?rbpcap_t? has no member named ?pdt?
pcaprub.c: In function ?rbpcap_setfilter?:
pcaprub.c:141: error: ?PCAP_ERRBUF_SIZE? undeclared (first use in this
function)
pcaprub.c:144: error: storage size of ?bpf? isn?t known
pcaprub.c:153: error: ?rbpcap_t? has no member named ?type?
pcaprub.c:154: error: ?rbpcap_t? has no member named ?iface?
pcaprub.c:157: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c:160: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c: In function ?rbpcap_open_live?:
pcaprub.c:170: error: ?PCAP_ERRBUF_SIZE? undeclared (first use in this
function)
pcaprub.c:194: error: ?rbpcap_t? has no member named ?type?
pcaprub.c:195: error: ?rbpcap_t? has no member named ?iface?
pcaprub.c:195: error: ?rbpcap_t? has no member named ?iface?
pcaprub.c:196: error: ?rbpcap_t? has no member named ?iface?
pcaprub.c:196: error: ?rbpcap_t? has no member named ?iface?
pcaprub.c:198: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c:206: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c: In function ?rbpcap_open_offline?:
pcaprub.c:222: error: ?PCAP_ERRBUF_SIZE? undeclared (first use in this
function)
pcaprub.c:230: error: ?rbpcap_t? has no member named ?iface?
pcaprub.c:230: error: ?rbpcap_t? has no member named ?iface?
pcaprub.c:231: error: ?rbpcap_t? has no member named ?type?
pcaprub.c:233: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c:238: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c: In function ?rbpcap_open_dead?:
pcaprub.c:266: error: ?rbpcap_t? has no member named ?iface?
pcaprub.c:266: error: ?rbpcap_t? has no member named ?iface?
pcaprub.c:267: error: ?rbpcap_t? has no member named ?type?
pcaprub.c:269: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c: In function ?rbpcap_dump_open?:
pcaprub.c:295: error: ?rbpcap_t? has no member named ?pdt?
pcaprub.c:296: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c: In function ?rbpcap_dump?:
pcaprub.c:308: error: storage size of ?pcap_hdr? isn?t known
pcaprub.c:324: error: ?rbpcap_t? has no member named ?pdt?
pcaprub.c: In function ?rbpcap_inject?:
pcaprub.c:352: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c: In function ?rbpcap_handler?:
pcaprub.c:359: error: dereferencing pointer to incomplete type
pcaprub.c: In function ?rbpcap_next?:
pcaprub.c:367: error: ?PCAP_ERRBUF_SIZE? undeclared (first use in this
function)
pcaprub.c:372: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c:376: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c:376: error: ?pcap_handler? undeclared (first use in this function)
pcaprub.c:376: error: expected ?)? before ?rbpcap_handler?
pcaprub.c:380: error: ?rbpcap_t? has no member named ?type?
pcaprub.c: In function ?rbpcap_capture?:
pcaprub.c:401: error: ?rbpcap_t? has no member named ?type?
pcaprub.c: In function ?rbpcap_datalink?:
pcaprub.c:421: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c: In function ?rbpcap_snapshot?:
pcaprub.c:433: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c: In function ?rbpcap_stats?:
pcaprub.c:440: error: storage size of ?stat? isn?t known
pcaprub.c:447: error: ?rbpcap_t? has no member named ?pd?
pcaprub.c: In function ?Init_pcaprub?:
pcaprub.c:466: error: ?DLT_NULL? undeclared (first use in this function)
pcaprub.c:467: error: ?DLT_EN10MB? undeclared (first use in this function)
pcaprub.c:468: error: ?DLT_EN3MB? undeclared (first use in this function)
pcaprub.c:469: error: ?DLT_AX25? undeclared (first use in this function)
pcaprub.c:470: error: ?DLT_PRONET? undeclared (first use in this function)
pcaprub.c:471: error: ?DLT_CHAOS? undeclared (first use in this function)
pcaprub.c:472: error: ?DLT_IEEE802? undeclared (first use in this function)
pcaprub.c:473: error: ?DLT_ARCNET? undeclared (first use in this function)
pcaprub.c:474: error: ?DLT_SLIP? undeclared (first use in this function)
pcaprub.c:475: error: ?DLT_PPP? undeclared (first use in this function)
pcaprub.c:476: error: ?DLT_FDDI? undeclared (first use in this function)
pcaprub.c:477: error: ?DLT_ATM_RFC1483? undeclared (first use in this
function)
pcaprub.c:478: error: ?DLT_RAW? undeclared (first use in this function)
pcaprub.c:479: error: ?DLT_SLIP_BSDOS? undeclared (first use in this
function)
pcaprub.c:480: error: ?DLT_PPP_BSDOS? undeclared (first use in this
function)
pcaprub.c:481: error: ?DLT_IEEE802_11? undeclared (first use in this
function)
pcaprub.c:482: error: ?DLT_IEEE802_11_RADIO? undeclared (first use in this
function)
pcaprub.c:483: error: ?DLT_IEEE802_11_RADIO_AVS? undeclared (first use in
this function)
pcaprub.c:484: error: ?DLT_LINUX_SLL? undeclared (first use in this
function)
pcaprub.c:485: error: ?DLT_PRISM_HEADER? undeclared (first use in this
function)
pcaprub.c:486: error: ?DLT_AIRONET_HEADER? undeclared (first use in this
function)
make: *** [pcaprub.o] Error 1


Any help on rectifying this problem will be immensely appreciated on my end.

Thanks for the help that everyone has given here. I'm extremely grateful!

Finally, what does the command:

cd external/pcaprub; ruby extconf.rb; make

do and how will it affect Metasploit if it doesn't work properly?

Cheers,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.metasploit.com/pipermail/framework/attachments/20090408/6fa22779/attachment-0001.htm>


Current thread: