[Oisf-users] Error building suricata 1.1 under OpenBSD 5.0

carlopmart carlopmart at gmail.com
Mon Nov 14 09:33:56 UTC 2011

On 11/14/2011 10:24 AM, Eric Leblond wrote:
> Hello,
> My 0.02€ but did you try with the indication found here:
> https://redmine.openinfosecfoundation.org/projects/suricata/wiki/OpenBSD_Installation_from_GIT
> One of the thing, I needed at the time was to use CPP and C flags:
> CPPFLAGS="-I/usr/local/include" CFLAGS="-L/usr/local/lib" ./configure --prefix=/opt/suricata

Err, no. I will try it ... Wait a moment ...No, it doesn't works:

gcc -DHAVE_CONFIG_H -I. -I..  -I../libhtp   -I/usr/local/include 
-I/usr/local/include -I/usr/local/include/libnet-1.1 
-I/usr/local/include/libnet-1.1  -L/usr/local/lib -Wextra -Wall 
-fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter -std=gnu99 
-D__OpenBSD__ -march=native -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE 
util-ioctl.o -MD -MP -MF .deps/util-ioctl.Tpo -c -o util-ioctl.o 
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
*** Error code 1

Stop in /tmp/oo/suricata-1.1/src (line 92 of /usr/share/mk/sys.mk).
*** Error code 1

Stop in /tmp/oo/suricata-1.1/src (line 700 of Makefile).
*** Error code 1

Stop in /tmp/oo/suricata-1.1 (line 353 of Makefile).
*** Error code 1

Stop in /tmp/oo/suricata-1.1 (line 260 of Makefile).

Same error.

CL Martinez
carlopmart {at} gmail {d0t} com

More information about the Oisf-users mailing list