Re: Errors Compiling pflogger-0.9.0-rc2
"Jonathan S. Abrams" <[email protected]>
| Newsgroups | gmane.comp.security.ids.prelude.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Alexander,
Thank you for the response. I had to copy the following files from the
sys.tar.gz file at ftp://obsd.cec.mtu.edu/pub/OpenBSD/4.3 to eliminate
errors in the output of make. Note that these files were missing on Mac
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 that
do not seem to indicate that I am missing files, but I am not certain
whey 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 -f
process_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 (not
in 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 use
in this function)
process_packet.c:497: error: (Each undeclared identifier is reported
only 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 would
appreciate 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
_______________________________________________
Prelude-user site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-user