Hi,<br><br>The issue has been identified just 4-5 days ago and there is a patch available from Erik Leblond for the matter.<br><br>How to get it to compile on OpenBSD:<br><a href="https://home.regit.org/2012/04/suricata-for-openbsd-4-9-and-over/">https://home.regit.org/2012/04/suricata-for-openbsd-4-9-and-over/</a><br>
<br>Please let us know if it helps.<br>Thanks<br><br><br><div class="gmail_quote">On Mon, Apr 30, 2012 at 7:00 AM, Darren Spruell <span dir="ltr"><<a href="mailto:phatbuckett@gmail.com" target="_blank">phatbuckett@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Working through some issues building Suricata on OpenBSD 5.0 i386.<br>
Failures occur both when attempting installation from release or beta<br>
tarballs, as well as from Git. Git installation attempted as per<br>
instructions at<br>
<a href="https://redmine.openinfosecfoundation.org/projects/suricata/wiki/OpenBSD_Installation_from_GIT" target="_blank">https://redmine.openinfosecfoundation.org/projects/suricata/wiki/OpenBSD_Installation_from_GIT</a><br>

<br>
OpenBSD 5.0 (GENERIC) #43: Wed Aug 17 10:10:52 MDT 2011<br>
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC<br>
suricata-1.2.1 -and- suricata-1.3beta1 -and- Git sources @2012-04-29<br>
autoconf-2.61<br>
automake-1.10.3<br>
libtool-1.5.26<br>
gcc version 4.2.1 -and- 4.2.4<br>
standard system 'make' -and- GNU Make 3.82<br>
libpcre 8.12<br>
libnet-1.1.2.1<br>
libyaml-0.1.2<br>
<br>
<br>
Configured as such:<br>
<br>
$ CPPFLAGS="-I/usr/local/include" CFLAGS="-L/usr/local/lib"<br>
./configure --sysconfdir=/etc --localstatedir=/var<br>
--with-libnet-includes=/usr/local/include/libnet-1.1<br>
--with-libnet-libraries=/usr/local/lib/libnet-1.1<br>
<br>
<br>
Consistently errors during build:<br>
<br>
-----<br>
gcc -DHAVE_CONFIG_H -I. -I..  -I../libhtp  -I/usr/local/include<br>
-I/usr/local/include -I/usr/local/include/libnet-1.1<br>
-I/usr/local/include/libnet-1.1  -L/usr/local/lib -DRELEASE -Wextra<br>
-Wall -fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter<br>
-std=gnu99 -D__OpenBSD__ -march=native -DHAVE_LIBNET11 -D_BSD_SOURCE<br>
-D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H<br>
-DLIBPCAP_VERSION_MAJOR=0 -DUNITTESTS -MT util-ioctl.o -MD -MP -MF<br>
.deps/util-ioctl.Tpo -c -o util-ioctl.o util-ioctl.c<br>
util-ioctl.c: In function 'GetIfaceMTU':<br>
util-ioctl.c:74: error: storage size of 'ifr' isn't known<br>
util-ioctl.c:83: error: invalid application of 'sizeof' to incomplete<br>
type 'struct ifreq'<br>
util-ioctl.c:74: warning: unused variable 'ifr'<br>
util-ioctl.c:97: warning: control reaches end of non-void function<br>
gmake[3]: *** [util-ioctl.o] Error 1<br>
gmake[3]: Leaving directory `/home/dspruell/downloads/suricata-1.3beta1/src'<br>
gmake[2]: *** [all] Error 2<br>
gmake[2]: Leaving directory `/home/dspruell/downloads/suricata-1.3beta1/src'<br>
gmake[1]: *** [all-recursive] Error 1<br>
gmake[1]: Leaving directory `/home/dspruell/downloads/suricata-1.3beta1'<br>
gmake: *** [all] Error 2<br>
-----<br>
<br>
Or, from GIt:<br>
<br>
-----<br>
gcc -DHAVE_CONFIG_H -I. -I..  -I../libhtp   -I/usr/local/include<br>
-I/usr/local/include -I/usr/local/include/libnet-1.1 -I/usr/<br>
local/include/libnet-1.1  -L/usr/local/lib -Wextra -Wall<br>
-fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter -std=gnu99<br>
-D__OpenBSD__ -march=native -DHAVE_LIBNET11 -D_BSD_SOURCE<br>
-D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBPCAP_VERSIO<br>
N_MAJOR=0 -DUNITTESTS -DREVISION="e6dea5c" -MT util-ioctl.o -MD -MP<br>
-MF .deps/util-ioctl.Tpo -c -o util-ioctl.o util-ioctl.c<br>
util-ioctl.c: In function 'GetIfaceMTU':<br>
util-ioctl.c:74: error: storage size of 'ifr' isn't known<br>
util-ioctl.c:83: error: invalid application of 'sizeof' to incomplete<br>
type 'struct ifreq'<br>
util-ioctl.c:74: warning: unused variable 'ifr'<br>
util-ioctl.c:97: warning: control reaches end of non-void function<br>
*** Error code 1<br>
<br>
Stop in /home/dspruell/downloads/oisf/src (line 92 of /usr/share/mk/<a href="http://sys.mk" target="_blank">sys.mk</a>).<br>
*** Error code 1<br>
<br>
Stop in /home/dspruell/downloads/oisf/src (line 764 of Makefile).<br>
*** Error code 1<br>
<br>
Stop in /home/dspruell/downloads/oisf (line 316 of Makefile).<br>
*** Error code 1<br>
<br>
Stop in /home/dspruell/downloads/oisf (line 222 of Makefile).<br>
-----<br>
<br>
This is basically the same as:<br>
<br>
<a href="http://lists.openinfosecfoundation.org/pipermail/oisf-users/2011-November/001001.html" target="_blank">http://lists.openinfosecfoundation.org/pipermail/oisf-users/2011-November/001001.html</a><br>
<br>
...but like the OP there I don't find anything that resolved the build.<br>
<br>
# 1.3beta1 install, ./configure output<br>
<a href="http://pastebin.com/NurVRYTy" target="_blank">http://pastebin.com/NurVRYTy</a><br>
<br>
# 1.3beta1 install, make output<br>
<a href="http://pastebin.com/SbtP8pWH" target="_blank">http://pastebin.com/SbtP8pWH</a><br>
<br>
# Git install, ./configure output<br>
<a href="http://pastebin.com/C4teP1Yg" target="_blank">http://pastebin.com/C4teP1Yg</a><br>
<br>
# Git install, make output<br>
<a href="http://pastebin.com/tQ88Pi6R" target="_blank">http://pastebin.com/tQ88Pi6R</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Darren Spruell<br>
<a href="mailto:phatbuckett@gmail.com">phatbuckett@gmail.com</a><br>
_______________________________________________<br>
Oisf-users mailing list<br>
<a href="mailto:Oisf-users@openinfosecfoundation.org">Oisf-users@openinfosecfoundation.org</a><br>
<a href="http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users" target="_blank">http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div>Regards,</div>
<div>Peter Manev</div><br>