aeiscte / reaver-wps

Automatically exported from code.google.com/p/reaver-wps
0 stars 0 forks source link

./configure fails as pcap is not found #97

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
0. What version of Reaver are you using?  (Only defects against the latest
version will be considered.)
r69
1. What operating system are you using (Linux is the only supported OS)?
ubuntu 11.10

According libpcap is installed

sudo apt-get install libpcap-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpcap-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

According to this it isn't?

./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for pcap_open_live in -lpcap... no
error: pcap library not found!

Tried multiple removes, libpcap compiles from source - which did not work.
Ran from backtrack without problems, though. (running from backtrack is not an 
option)

Original issue reported on code.google.com by mojavo...@gmail.com on 6 Jan 2012 at 8:16

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
sudo apt-get install libpcap0.8-dev

Original comment by der...@libero.it on 6 Jan 2012 at 10:49

GoogleCodeExporter commented 8 years ago
Only if it was that simple...

sudo apt-get install libpcap0.8-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpcap0.8-dev is already the newest version.
libpcap0.8-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

~/reaver-wps-read-only$ ./configure
[...]
checking for pcap_open_live in -lpcap... no
error: pcap library not found!

Original comment by mojavo...@gmail.com on 6 Jan 2012 at 12:48

GoogleCodeExporter commented 8 years ago
I can confirm this behavior, though I don't know why the configure script can't 
find pcap_open_live in libpcap.so. It uses the standard AC_CHECK_LIB macro, and 
pcap_open_live is clearly in the library (confirmed by readelf). Will need to 
look in to this more; for now, use something other than Ubuntu 11.10 (this 
doesn't happen in Ubuntu 10.04 or BT5). 

Original comment by cheff...@tacnetsol.com on 6 Jan 2012 at 1:56

GoogleCodeExporter commented 8 years ago
Fedora 16..pcap and pcap-devel installed..
i get same results from ./configure

Original comment by ianc...@gmail.com on 6 Jan 2012 at 6:49

GoogleCodeExporter commented 8 years ago
Forgot to add: x64 system

Original comment by ianc...@gmail.com on 6 Jan 2012 at 6:50

GoogleCodeExporter commented 8 years ago
I have found the solutions.

The configure script exits on SQLite3..so just install sqlite3-devel and 
everything is ok

Original comment by ianc...@gmail.com on 6 Jan 2012 at 6:57

GoogleCodeExporter commented 8 years ago
Installing "libsqlite3-dev" in Ubuntu 12.04 works. Thanks for the solution :)

Original comment by rob...@keizer.ca on 6 Jan 2012 at 7:27

GoogleCodeExporter commented 8 years ago
@mojavosas, I don't have this problem anymore with the latest SVN.

Original comment by cheff...@tacnetsol.com on 6 Jan 2012 at 7:41

GoogleCodeExporter commented 8 years ago
Correct - r73 fix'ed the issue.
Installing "libsqlite3-dev" is also a good idea.

Original comment by mojavo...@gmail.com on 6 Jan 2012 at 8:13

GoogleCodeExporter commented 8 years ago

Original comment by cheff...@tacnetsol.com on 6 Jan 2012 at 8:18

GoogleCodeExporter commented 8 years ago
in fedora 16 
yum install libpcap-devel
yum install sqlite-devel

all works! 

Original comment by noisey...@gmail.com on 9 Jan 2012 at 8:50

GoogleCodeExporter commented 8 years ago
got the fix for Ubuntu 10.04

apt-get install libpcap3-dev
apt-get install libsqlite3-dev
apt-get install libnl2-dev

now the important:
!!! libnl2 needs libdect !!!

so you have to edit the configure script with your editor - I take vi :)

vi configure
on line 2784 add -lnl and -ldect => LDFLAGS="-ldl -lm -lpcap -lsqlite3 -lnl 
-ldect $LDFLAGS"
on line 2793 add -lnl and -ldect => LIBS="-lpcap -lnl -ldect  $LIBS"

save all with your editor and exit (in vi with ":x")

do the same with file configure.ac
on line 7 add -lnl and -ldect => LDFLAGS="-ldl -lm -lpcap -lnl -ldect -lsqlite3 
$LDFLAGS"

then the old proceedure: 
make distclean
./configure
make
...

hope it helps

Original comment by schroedl...@googlemail.com on 18 Jan 2012 at 8:24

GoogleCodeExporter commented 8 years ago
"so just install sqlite3-devel and everything is ok"

This worked for me on Ubuntu 11.10 x64

Original comment by dfarrel...@gmail.com on 7 Feb 2012 at 7:08

GoogleCodeExporter commented 8 years ago
"apt-get install libsqlite3-dev"
works for me on Ubuntu 11.10 x64 also.

Original comment by howerkr...@gmail.com on 17 Feb 2012 at 3:00

GoogleCodeExporter commented 8 years ago
"apt-get install libsqlite3-dev" works for me too on Mint 12 ! Thanks for the 
solution !

Original comment by pierrebrunel84@gmail.com on 17 Feb 2012 at 4:20

GoogleCodeExporter commented 8 years ago
Works for me too.... Thanks

Original comment by phil.j.p...@gmail.com on 13 Mar 2012 at 10:19