[Oisf-devel] Suricata 1.2.1 + OpenBSD

Markus Lude markus.lude at gmx.de
Thu Apr 26 17:21:42 UTC 2012


On Thu, Apr 26, 2012 at 02:53:17PM +0200, Henri Wahl wrote:
> Hello world,
> I run Suricata on CentOS Linux 5.8 where it does a great job. I also
> want to run it on OpenBSD but there it fails badly. I tried to compile
> stable suricata 1.2.1 and unstable 1.3beta1 on OpenBSD 4.9, 5.0 and 5.1
> with gcc 4.2.1 and the result is always a break in compiling with this
> output:
> 
> gcc -DHAVE_CONFIG_H -I. -I..  -I../libhtp   -I/usr/local/include
> -I/usr/local/include/libnet-1.1  -DRELEASE -Wextra -Wall
> -fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter -std=gnu99
> -D__OpenBSD__ -march=native  -I/usr/local/include
> -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -MT util-ioctl.o -MD -MP
> -MF .deps/util-ioctl.Tpo -c -o util-ioctl.o util-ioctl.c
> util-ioctl.c: In function 'GetIfaceMTU':
> util-ioctl.c:74: error: storage size of 'ifr' isn't known
> util-ioctl.c:83: error: invalid application of 'sizeof' to incomplete
> type 'struct ifreq'
> util-ioctl.c:74: warning: unused variable 'ifr'
> util-ioctl.c:97: warning: control reaches end of non-void function

Which packages do you have installed or do you build dependancies from
source? If the later: how do you build them?

I wonder because of -DLIBPCAP_VERSION_MAJOR=1 and -DHAVE_PCAP_SET_BUFF.

Regards,
Markus




More information about the Oisf-devel mailing list