Re: Errors Compiling pflogger-0.9.0-rc2
"Alexander Afonyashin" <[email protected]>
| Newsgroups | gmane.comp.security.ids.prelude.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Jonathan,
I think it's not a good idea to use headers from different OS on your MacOS X box. Try to ask in MacOS forums what package needs to be installed. Or try to download latest Xcode from Apple: http://developer.apple.com/technology/xcode.html
----- Original Message -----
From: "Jonathan S. Abrams"
To: "Alexander Afonyashin"
Subject: Re: [prelude-user] Errors Compiling pflogger-0.9.0-rc2
Date: Sun, 14 Sep 2008 14:37:24 -0400
Hi Alexander,
Thank you for the response. I had to copy the following files from thesys.tar.gz file at ftp://obsd.cec.mtu.edu/pub/OpenBSD/4.3 to eliminateerrors in the output of make. Note that these files were missing onMac OS X v10.5.3 (client).
/sys/net/if_pflog.h --> Macintosh HD/usr/include/net
/sys/net/pfvar.h --> Macintosh HD/usr/include/net
/sys/sys/tree.h --> Macintosh HD//usr/include/sys
/sys/sys/rwlock.h --> Macintosh HD/usr/include/sys
/sys/net/radix.h --> Macintosh HD/usr/include/net
/sys/netinet/ip_ipsp.h --> Macintosh HD/usr/netinet
Now, when I execute the make command, I am receiving other errors thatdo not seem to indicate that I am missing files, but I am not certainwhey they are occurring. Here is the output of the make command.
make all-recursive
Making all in src
Making all in include
make[3]: Nothing to be done for `all'.
source='process_packet.c' object='process_packet.o' libtool=no \
   depfile='.deps/process_packet.Po'tmpdepfile='.deps/process_packet.TPo' \
   depmode=gcc3 /bin/sh ../depcomp \
   gcc -I../ -I./include/ -I/usr/local/include -I. -I. -I..    -g -O2-Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations-Wbad-function-cast -Wcast-align -Wnested-externs -Wunused -c `test -fprocess_packet.c || echo './'`process_packet.c
In file included from process_packet.c:43:
/usr/include/net/if_pflog.h:33: error: field â�sc_ifâ has incomplete type
In file included from process_packet.c:44:
/usr/include/net/pfvar.h:156: error: â�RTLABEL_LENâ undeclared here (notin a function)
/usr/include/net/pfvar.h:777: error: conflicting types for â�__packedâ
/usr/include/net/pfvar.h:771: error: previous declaration of â�__packedâwas here
/usr/include/net/pfvar.h:789: error: conflicting types for â�__packedâ
/usr/include/net/pfvar.h:771: error: previous declaration of â�__packedâwas here
/usr/include/net/pfvar.h:816: error: conflicting types for â�__packedâ
/usr/include/net/pfvar.h:771: error: previous declaration of â�__packedâwas here
In file included from process_packet.c:49:
/usr/include/net/bpf.h:105: error: redefinition of â�struct bpf_programâ
/usr/include/net/bpf.h:130: error: redefinition of â�struct bpf_versionâ
/usr/include/net/bpf.h:342: error: redefinition of â�struct bpf_insnâ
process_packet.c: In function â�build_impact_description_defaultâ:
process_packet.c:497: error: â�CTL_IPPROTO_NAMESâ undeclared (first usein this function)
process_packet.c:497: error: (Each undeclared identifier is reportedonly once
process_packet.c:497: error: for each function it appears in.)
make[3]: *** [process_packet.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
If anyone can offer any insight in how to correct these errors, I wouldappreciate it.
Thanks for reading!
-Jonathan
Alexander Afonyashin wrote: Hi Jonathan,
This files are in sys.tar.gz package which is either on OpenBSD cd or may be downloaded from official site. Install the package then copy needed headers from sys/net to /usr/include/net
----- Original Message -----
From: "Jonathan S. Abrams"
To: [email protected]
Subject: Re: [prelude-user] Errors Compiling pflogger-0.9.0-rc2
Date: Wed, 03 Sep 2008 21:35:24 -0400
[email protected] wrote:
Hello Jonathan,
This does not help us. Can you send here the line where you see a
gcc error being produced ?
thanks,
Sebastien.
Hi Sebastien,
Thanks for responding. Here is the output of make where errors are
appearing.
process_packet.c:43:26: error: net/if_pflog.h: No such file or directory
process_packet.c:44:23: error: net/pfvar.h: No such file or directory
[skipped]
Best regards,
Alexander Afonyashin
--
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com
_______________________________________________
Prelude-user site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-user