Installing Firewalk on KUbuntu
Installing Firewalk turned out to be more complicated than I thought it would be. There were some compilation issues and some library errors.
The chief amongst them was:
checking for arp_get in -ldnet... no
configure: error: No libdnet? http://libdnet.sourceforge.net.
I did install libdnet using aptitude but it did not do the trick. Thereafer, searching a few forums got me this information. The “Libdnet” that Firewalk looks for is libdumbnet1 in the ubuntu language.
So I got the Debian packages from the following links:
libdnet1
libdnet-dev
I continued to get that error and no wonder because there was nothing in /usr/lib.
So I executed the following commands :
$ cd /usr/lib
$ sudo ln -s libdumbnet.so libdnet.so
$ cd /usr/include
$ sudo ln -s dumbnet.h dnet.h
Then there was a compilation error:
firewalk.c: In function ‘firewalk’:
firewalk.c:193: error: label at end of compound statement
make[1]: *** [firewalk.o] Error 1
make[1]: Leaving directory `/home/trance/Desktop/Firewalk/src'
make: *** [all-recursive] Error 1
So then opening the firewalk.c file in vim (and following up on line 193) showed that the “break;” statement was missing after default: switch statement.
So then I added the the following characters (without quotes) “break;” at a line above the comment as shown below:
default:
break;
/* empty */
$ ./configure
$ make
$ sudo make install
$ sudo cp man/firewalk.8 /usr/local/man/man8
Now firewalk was installed and ready to use!
Man, this post was very usefull for me .. I was not able to fix the compilation error (due to missing break statement).
You’ve helped me a lot !!
Thx.
Was this answer helpful?
LikeDislikeThanks for this, caused me a few headaches in Debian.
Was this answer helpful?
LikeDislikeThanks a lot, mate!
Was this answer helpful?
LikeDislikeThanks! This solved the problem in Ubuntu 8.10 x86 using the most recent libdumbnet version.
i don know what to say thanks very much that was sooooooooooooooooooo useful
YOU ARE THE BEST HONEY
Was this answer helpful?
LikeDislikeHi all,
Now I have some more problems, my dnet.h file in /usr/include/ is empty, so make shows this output:
–>make
Making all in src
make[1]: Entering directory `/home/dev/fw/Firewalk/src'
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c firewalk.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c main.c
main.c: In function âmainâ:
main.c:78: warning: pointer targets in passing argument 1 of âusageâ differ in signedness
main.c:125: warning: pointer targets in passing argument 1 of âusageâ differ in signedness
main.c:136: warning: pointer targets in passing argument 1 of âusageâ differ in signedness
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c packet_build.c
packet_build.c: In function âfw_packet_build_probeâ:
packet_build.c:43: error: âarp_tâ undeclared (first use in this function)
packet_build.c:43: error: (Each undeclared identifier is reported only once
packet_build.c:43: error: for each function it appears in.)
packet_build.c:43: error: âaâ undeclared (first use in this function)
packet_build.c:44: error: âroute_tâ undeclared (first use in this function)
packet_build.c:44: error: ârâ undeclared (first use in this function)
packet_build.c:45: error: storage size of âarpâ isnât known
packet_build.c:46: error: storage size of ârouteâ isnât known
packet_build.c:101: warning: implicit declaration of function âroute_openâ
packet_build.c:105: warning: implicit declaration of function âroute_closeâ
packet_build.c:110: warning: implicit declaration of function âaddr_atonâ
packet_build.c:118: warning: implicit declaration of function âroute_getâ
packet_build.c:126: warning: implicit declaration of function âarp_openâ
packet_build.c:134: warning: implicit declaration of function âarp_getâ
packet_build.c:137: warning: implicit declaration of function âarp_closeâ
packet_build.c:46: warning: unused variable ârouteâ
packet_build.c:45: warning: unused variable âarpâ
make[1]: *** [packet_build.o] Error 1
make[1]: Leaving directory `/home/dev/fw/Firewalk/src'
make: *** [all-recursive] Error 1
any idea how resolve this ?
thx Maciej
Was this answer helpful?
LikeDislikeNot really sure. But I think some of the include files could be missing. You may need to install some development packages for these sources. Are you sure you have libnet sources?
Was this answer helpful?
LikeDislikeThis solution has been deemed correct by the post author
Thank you, it worked.
Was this answer helpful?
LikeDislike