LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-04-2007, 04:45 AM   #1
konobo
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
problems installing firewalk


Hi,

i am trying to install firewalk on debian 3 but without success.

I installed all initially required packages.

and here is log of installing :


Internal:~/Firewalk# ./configure
beginning autoconfiguration process for firewalk-5.0...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for libnet_build_ipv4 in -lnet... yes
checking for pcap_open_live in -lpcap... no
configure: error: No libpcap?

I've installed latest libpcap but here it is.

Please, someone wiser than me to help me :-)

Thank you in advance.

konobo
 
Old 07-04-2007, 05:47 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
And libpcap dev package?
 
Old 07-04-2007, 06:50 AM   #3
konobo
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Original Poster
Rep: Reputation: 0
someone should told that guy developing firewalk that libpcap-dev also to be installed and had to copy pcap.h and net/bpf.h into firewalk/include.
the last thing is not documented and making big pain to install that tool
 
Old 07-04-2007, 06:51 AM   #4
konobo
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Original Poster
Rep: Reputation: 0
thank you nx5000
 
Old 02-14-2008, 11:38 AM   #5
WebDesignHero
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
Still having problems

I tried everything (been working at this for hours)

copied bpf.h into ./Firewalk/include,

but I'm still having problems, I notice when i do ./configure I get an error saying:

checkingfor bpf ... no

any suggestions of how I can get firewalk to install?
 
Old 02-14-2008, 11:50 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
What distro?

bpf.h is part of libpcap-dev (on debian apt-get install libpcap07-dev)

You can have also a look at config.log. Maybe you have it installed but firewalk searches it at the wrong place..
 
Old 02-14-2008, 12:50 PM   #7
WebDesignHero
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
I am using a VM from: http://www.visoracle.com/download/debian/ (Debian Etch Stable 4.0 r0)

I have the dev installed:
apt-get install libpcap0.7-dev returns
libpcap0.7-dev is already the newst version (I think I actually have .8)

I searched my file system fro bpf.h and found two versions, and I tried copying both to ./Firewalk/include neither seemed to help

What should i look for in config.log?

I spent all morning trying to install from firewalk's website all the source and a whole bunch of apt-get packages....
 
Old 02-14-2008, 01:30 PM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Well, I spent 5 minutes and I got 1 line further..

firewalk check if pcap_open_live function exists in the lib pcap.
in config.log
gcc -o conftest -g -O2 -Wall conftest.c -lpcap -lnet
You should look at the message after that.


the line where it doesn't work is that is looks for libdnet which is.. nowadays decnet and not libnet. And anyway the current libnet doesn't have the function its looking for.

I don't understand why you are stuck on the line before though. And don't move files, you're just creating more problems. This one should work.

Either you take libdnet from the time when firewalk was released (2002..) or you take another tool like hping3, apt-get install hping3 and have fun reading the manual

Sorry I have no more time.
 
Old 02-14-2008, 02:05 PM   #9
WebDesignHero
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
thanks for the help, get back to me whe you have time

configure:2270 $? = 0

under the line you mention.
it is not followed by result yes or no

I installed all the source files the author wants and i still had this problem.

I had hping3 installed previously and i don't believe that helped, but I will try agian (though i don't like the implication of have fun reading the manual)....


Is there some way to change a linge in the configuration to include where bpf is?
 
Old 02-14-2008, 09:06 PM   #10
WebDesignHero
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
So For those who are interested:

I started from scratch, and played around with various version od the dependencies.

Quote:
<net/bpf.h> is now named <pcap-bpf.h> and is included automatically
by <pcap.h>, the proper fix is to remove any manual inclusion of
<net/bpf.h> and just include <pcap.h> instead.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439458

So then I ran it, and I got a compile error about firewalk.c:193

I had seen this before, but figured the bpf had something to do with. No. I removed the bpf stuff from the configure file. I then debugged line 193 in firewalk.c the problem there is a default statement with no semicolon. I am not sure if this works on other people's compilers of if they just never mentioned it. I used the author's source....

so we had something like

default:
/*some comment*/

}

when i just added i na semicolon before the } I was ready to go and running. I'm just going to go test this on another one of the VMs, if I get something different I'll report back
 
Old 02-15-2008, 03:33 AM   #11
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Well done!
 
Old 02-16-2008, 01:12 AM   #12
WebDesignHero
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
On some systems is this not neccesary to compile? I still need to check this dosn't break any functionality, I find it odd if this is common error and I didn't find anything when googling...

Maybe someday someone will just make package for debian....
 
  


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
Firewalk anamikasoni Linux - Security 4 08-24-2009 01:36 PM
Firewalk-5 and libdnet jimaman Linux - Software 0 02-12-2007 06:30 PM
problem with firewalk jokobbb Linux - Software 2 03-16-2006 02:18 AM
Firewalk help anamikasoni Linux - Software 2 03-22-2005 08:45 PM
firewalk installation vindwar Linux - Software 11 10-03-2002 11:42 AM

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

All times are GMT -5. The time now is 12:53 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