Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I am trying to install firewalk-0.8 on my linux machine RH 7.2. i get the follwoing error while running make. Would appreciate any help on this. Thanks in advance...
[root@dragon1 Firewalk]# make
cc -O3 -funroll-loops -fomit-frame-pointer -pipe -DLINUX -D_BSD_SOURCE -D__FAV
OR_BSD -c main.c -o main.o
In file included from firewalk.h:37,
from main.c:35:
firepack.h:56: field `sin' has incomplete type
main.c: In function `main':
main.c:104: `O_WRONLY' undeclared (first use in this function)
main.c:104: (Each undeclared identifier is reported only once
main.c:104: for each function it appears in.)
main.c:104: `O_CREAT' undeclared (first use in this function)
main.c:104: `O_TRUNC' undeclared (first use in this function)
main.c:132: `IPPROTO_UDP' undeclared (first use in this function)
main.c:135: `IPPROTO_TCP' undeclared (first use in this function)
main.c:245: `IPPROTO_RAW' undeclared (first use in this function)
make: *** [main.o] Error 1
[root@dragon1 Firewalk]#
I tried it once, and I believe the problem is with pcap, the firewalk relies on older version of pcap, I wouldn't suggest downgrading or getting older versions of pcap though.
hi, unSpawn, I've trried recently all of them, and 1.0 is out as well, even though it isn't compatible with libpcap shipped with modern distros, I believe firewalk is targeted more to *BSD branch.
Well i tried the 1.0 and 0.99 versions also but was not able to go past ./configure. 0.8 was one version which went past ./configure even i suspected that this was a problem with pcap. The README does not mention any specific version of libpcap or libnet to be used with firewalk. maybe the makefile.in needs to be tinkered for the linux environment i am not sure. if anybody knows how to do that it would be a great help
Neo.*, any idea where compat probs are in? I remember me being able to compile it once, tho that was 2yrs ago, with an ancient release, on an ancient Linux box with an ancient libnet/pcap :-]
Vin.* Readme states clearly; libnet 1.0 or better, libpcap 0.4.
That's the versioning problem, firewalk relies on old libpcap, I think that same version is still current on *BSD flavors, so there is no problem compiling it on *BSD beast, just tried it other day on my friends machine (anyway it is not that impressive, I mean firewalk, the lst update was like a year ago or so). And yes vindwar, if you are still [sorry]anal[/sorry] about getting firewalk running on your linux box, you should downgrade libpcap, this in the turn will throw a bunch of inconsistencies as well because lots of the networking tools, including tcpdump relies on libpcap, and if it ain't the minimum required for tcpdump you would have to downgrade it as well, tcpdump is just an example (I use it all the time to see what's up on my little LAN), so in place of tcpdump wiill be ethereal, snort and bunch of others. IT AIN'T WORTH A DICE guys.
Originally posted by unSpawn Neo.*, any idea where compat probs are in? I remember me being able to compile it once, tho that was 2yrs ago, with an ancient release, on an ancient Linux box with an ancient libnet/pcap :-]
Sorry unSpawn I almost ignored your post, you can see the inconsistencies here in the output of ./configure run by vindwar
Quote:
main.c:104: `O_WRONLY' undeclared (first use in this function)
main.c:104: (Each undeclared identifier is reported only once
main.c:104: for each function it appears in.)
main.c:104: `O_CREAT' undeclared (first use in this function)
main.c:104: `O_TRUNC' undeclared (first use in this function)
main.c:132: `IPPROTO_UDP' undeclared (first use in this function)
main.c:135: `IPPROTO_TCP' undeclared (first use in this function)
main.c:245: `IPPROTO_RAW' undeclared (first use in this function)
Really, I haven't had a chance or desire (I am so f... lazy) to look at it, I believe these variable are diclared in old versions of libpcap, and they are something else in the newer ones.
I'll take a look when I get home, all I have now is f... up RH box running annoying company's webserver without any development tools on it - they call it "security precaution" I call it "security through obscurity concept", oh well, I'll hit back when I get home.
No, doesn't make sense. I tried including headers for signal, fnctl, libnet-headers and still this doesn't work out.
I suggest you take it up with the Firewalk authors.
Yeah, I see your point unSpawn, but I have no answer, I tried as well, still no dice, I know it works under NetBSD that my friend owns. Damn, I guess we should e-mail to the mantainer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.