[Snortsam-discussion] snortsam & OpenBSD 4.4

Alessandro Baggi alessandro.baggi at gmail.com
Wed Mar 25 05:34:37 EST 2009


Hi all, there is a problem when compiling snortsam under OpenBSD 4.4. This
is the following error:

# ./makesnortsam.sh
-------------------------------------------------------------------------------
Building SnortSam (release)
-------------------------------------------------------------------------------
snortsam.c: In function `block':
snortsam.c:1835: warning: this decimal constant is unsigned only in ISO C90
snortsam.c: In function `unblock':
snortsam.c:2034: warning: this decimal constant is unsigned only in ISO C90
ssp_pf.c: In function `PFBlock':
ssp_pf.c:705: error: storage size of `t_rule' isn't known
ssp_pf.c:794: error: invalid application of `sizeof' to an incomplete type
gcc: ssp_pf.o: No such file or directory
-------------------------------------------------------------------------------
Building SnortSam (debug)
-------------------------------------------------------------------------------
snortsam.c: In function `block':
snortsam.c:1835: warning: this decimal constant is unsigned only in ISO C90
snortsam.c: In function `unblock':
snortsam.c:2034: warning: this decimal constant is unsigned only in ISO C90
ssp_pf.c: In function `PFBlock':
ssp_pf.c:705: error: storage size of `t_rule' isn't known
ssp_pf.c:794: error: invalid application of `sizeof' to an incomplete type
gcc: ssp_pf.o: No such file or directory
Done.

   ssp_pf.c:704: struct pfioc_changerule t_rule;
   ssp_pf.c:793: bzero(&t_rule, sizeof(struct pfioc_changerule));

struct pfioc_changerule definition does not exist in ~/snortsam/src/* and in
/usr/include/net/pfvar.h
I've tried version:

snortsam-src-2.55.tar.gz
snortsam-src-2.57.tar.gz

and each version give me this error. Anyone knows how to solve this problem?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.snortsam.net/pipermail/snortsam-discussion/attachments/20090325/474a692d/attachment.html


More information about the Snortsam-discussion mailing list