[prev in list] [next in list] [prev in thread] [next in thread]
List: sentry
Subject: RE: [Sentry] Compilation problems
From: Peppi Vecchio <PVecchio () orangelake ! com>
Date: 2002-09-05 14:14:08
[Download RAW message or body]
Here's a couple of posts that will help you with a work around and a little
understanding to the problem.
########################################################################
I had the same problem on RedHat 7.2. I even downloaded the source twice
and compiled twice and copied pcap.h into the src directory.
The solution was to add -I/usr/include/pcap to the CFLAGS as Peppi said.
That left two non-fatal warning messages:
./portsentry.c:595:8: warning: extra tokens at end of #endif directive
./portsentry.c:710:8: warning: extra tokens at end of #endif directive
Paul Schmehl (baldeagle)
geek@stovebolt.com
http://www.stovebolt.com/
Stovebolt Staff - Geek
#########################################################################
I had the same problem. I found somewhere (can't remember where) someone
said to change this in the MAKEFILE:
From this: CFLAGS = -O -Wall
To this; CFLAGS = -O -Wall -I/usr/include/pcap
I still had errors in my install but it seems to work. Please, if anyone
else knows how to fix this 100% correctly, let me know.
Peppi Vecchio | Web Developer
TECHNOLOGY SERVICES GROUP
Peppi Vecchio | Web Developer
407.239.0000 x 1981
TECHNOLOGY SERVICES GROUP
-----Original Message-----
From: Paul Weber [mailto:pweber@alliednational.com]
Sent: Friday, August 30, 2002 12:22 PM
To: sentry@psionic.com
Subject: [Sentry] Compilation problems
I downloaded the Beta 1 version and tried to run make.
I have libpcap-0.4-39 installed on a RH Linux 7.1 box.
Here's what I get:
make linux
SYSTYPE=linux
Making
cc -O -Wall -D_BSD_SOURCE -o ./portsentry ./portsentry.c \
./portsentry_io.c ./portsentry_util.c -lpcap
In file included from portsentry.h:63,
from ./portsentry.c:28:
/usr/include/pcap.h:42:21: net/bpf.h: No such file or directory
./portsentry.c:595:8: warning: extra tokens at end of #endif directive
./portsentry.c:710:8: warning: extra tokens at end of #endif directive
In file included from portsentry.h:63,
from ./portsentry_io.c:28:
/usr/include/pcap.h:42:21: net/bpf.h: No such file or directory
In file included from portsentry.h:63,
from ./portsentry_util.c:28:
/usr/include/pcap.h:42:21: net/bpf.h: No such file or directory
make: *** [linux] Error 1
I copied the pcap.h file from /usr/include/pcap/pcap.h to
/usr/include/pcap.h which helped get around not finding it, but now it
can't find the bpf.h file. I could move that one also, but that
shouldn't be needed, should it?
What am I doing wrong?
Thanx!
Michael
_______________________________________________
Sentry mailing list
Sentry@psionic.com
To unsubscribe or manage your subscription please go to:
http://www.psionic.com/mailman/listinfo/sentry
_______________________________________________
Sentry mailing list
Sentry@psionic.com
To unsubscribe or manage your subscription please go to: http://www.psionic.com/mailman/listinfo/sentry
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic