LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 03-01-2003, 12:49 PM   #1
tied2
Member
 
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220

Rep: Reputation: 30
problem compileing Firewalk


(OS) RH 7.3

[xxxx@xxx xxxx]$ su -
Password:
[root@xxx root]# cd /home/xxx/firewalk/
[root@xxx firewalk]# ls
Firewalk libdnet-1.6 libdnet-1.6.tar.gz
[root@xxx firewalk]# cd /home/xxx/firewalk/F
bash: cd: /home/tied/firewalk/F: No such file or directory
[root@xxx firewalk]# cd /home/xxx/firewalk/Firewalk/
[root@xxx 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... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
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... yes
checking for arp_get in -ldnet... yes
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for strerror... yes
checking for bpf... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating version.h
config.status: creating include/config.h
config.status: include/config.h is unchanged
[root@xxx Firewalk]# make
Making all in src
make[1]: Entering directory `/home/xxx/firewalk/Firewalk/src'
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c init.c
In file included from init.c:38:
../include/firewalk.h:40:18: pcap.h: No such file or directory
make[1]: *** [init.o] Error 1
make[1]: Leaving directory `/home/xxx/firewalk/Firewalk/src'
make: *** [all-recursive] Error 1
[root@xxx Firewalk]# whereis pcap.h
pcap: /usr/include/pcap /usr/share/man/man3/pcap.3.gz
[root@xxx Firewalk]#

Can anyone tell me why it can't find pcap.h? my guess is it's a file path problem but how do I fix it?

Thanks!

Last edited by tied2; 03-01-2003 at 12:53 PM.
 
Old 03-01-2003, 02:34 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Did you run:

make install

???
 
Old 03-01-2003, 02:38 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Probably not a good idea:
Code:
../include/firewalk.h:40:18: pcap.h: No such file or directory
make[1]: *** [init.o] Error 1
make[1]: Leaving directory `/home/xxx/firewalk/Firewalk/src'
make: *** [all-recursive] Error 1
[root@xxx Firewalk]# whereis pcap.h
pcap: /usr/include/pcap /usr/share/man/man3/pcap.3.gz
[root@xxx Firewalk]#
Since there are errors

You are using whereis to find it, use locate or find instead. Whereis looks for a binary file, .h files are header files, probably not binary executables.

Cool
 
Old 03-01-2003, 02:40 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
http://www.tcpdump.org/

Head over there, and get the latest version of libcap. Iinstall it and then try firewalk again.

Cool
 
Old 03-01-2003, 02:45 PM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Haha I missed the big line that says:

make[1]: *** [init.o] Error 1

Okay I'm getting rusty again. I'm banning myself from this site for the rest of the day. Sorry for the bad advice.
 
Old 03-01-2003, 05:06 PM   #6
tied2
Member
 
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220

Original Poster
Rep: Reputation: 30
I went to tcpdump and got the latest files before i tried to compile it :-) pcap.h is a sub file of pcap so it's there.
 
Old 03-02-2003, 02:24 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
And you have run ldconfig since then? Check the configure script to see if you can actually point to the location of the file then.

Cool
 
Old 03-02-2003, 07:10 PM   #8
tied2
Member
 
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220

Original Poster
Rep: Reputation: 30
How do I run ldconfig I cd-ed to the directory and did a ldconfig Firewalk but it says command not found.

Thanks!
I really would like to get this running!
 
Old 03-02-2003, 07:21 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
ldconfig is ran as root from any directory. It's in /sbin/ldconfig usually.

ldconfig is going to update any libs you've recently installed, however, it probably won't help now if it hasn't already since you probably have cron jobs running ldconfig on a semi-regular basis.

Run the configure script with --help:
./configure --help
See if you can specify where pcap is, maybe it's looking in the wrong place.

Cool
 
Old 03-02-2003, 09:20 PM   #10
tied2
Member
 
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220

Original Poster
Rep: Reputation: 30
[root@tied root]# cd /home/tied/firewalk/Firewalk/
[root@tied 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... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
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... yes
checking for arp_get in -ldnet... yes
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for strerror... yes
checking for bpf... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating version.h
config.status: creating include/config.h
config.status: include/config.h is unchanged
[root@tied Firewalk]# make
Making all in src
make[1]: Entering directory `/home/tied/firewalk/Firewalk/src'
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c init.c
In file included from init.c:38:
../include/firewalk.h:40:18: pcap.h: No such file or directory
make[1]: *** [init.o] Error 1
make[1]: Leaving directory `/home/tied/firewalk/Firewalk/src'
make: *** [all-recursive] Error 1
[root@tied Firewalk]# ./configure --help
`configure' configures this package to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']

Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data [PREFIX/share]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--infodir=DIR info documentation [PREFIX/info]
--mandir=DIR man documentation [PREFIX/man]

Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names

System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST build programs to run on HOST [BUILD]
--target=TARGET configure for building compilers for TARGET [HOST]

Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
headers in a nonstandard directory <include dir>
CPP C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

[root@tied Firewalk]#


I have tried and tried to figure this out, would some smarter than me person help me with the correct syntax?
 
Old 03-03-2003, 02:32 AM   #11
tied2
Member
 
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220

Original Poster
Rep: Reputation: 30
Thanks to all for there help! I got this working. I just had to copy pcap.h and net/bpf.h into firewalk/include and it worked fine.

Thanks again
 
Old 03-03-2003, 05:26 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Wow, and that's not in the docs for that anywhere? Nice work, you might consider sending the author of the app (or joining the mail-list) an email suggesting including that in the README/INSTALL Docs or something similar.

Nice work

Cool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:36 PM
problem compileing new kernel bhupee Linux - Newbie 5 04-17-2009 02:54 AM
Trouble with firewalk anamikasoni Linux - Security 4 04-30-2005 01:27 AM
Firewalk help anamikasoni Linux - Software 2 03-22-2005 09:45 PM
firewalk installation vindwar Linux - Software 11 10-03-2002 12:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:08 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration