[Oisf-users] Suricata 1.3beta1 and Git build error OpenBSD 5.0 [redux]

Darren Spruell phatbuckett at gmail.com
Mon May 7 07:24:59 UTC 2012


Sorry for delay,

On Mon, Apr 30, 2012 at 12:23 AM, Peter Manev <petermanev at gmail.com> wrote:
> Hi,
>
> The issue has been identified just 4-5 days ago and there is a patch
> available from Erik Leblond for the matter.
>
> How to get it to compile on OpenBSD:
> https://home.regit.org/2012/04/suricata-for-openbsd-4-9-and-over/
>
> Please let us know if it helps.

Yes, this resolved build error on Git. Pulled latest tonight and
verified success.

[3246] 6/5/2012 -- 22:22:16 - (suricata.c:1171) <Info> (main) -- This
is Suricata version 1.3dev (rev bff2866)

DS



> On Mon, Apr 30, 2012 at 7:00 AM, Darren Spruell <phatbuckett at gmail.com>
> wrote:
>>
>> Hello,
>>
>> Working through some issues building Suricata on OpenBSD 5.0 i386.
>> Failures occur both when attempting installation from release or beta
>> tarballs, as well as from Git. Git installation attempted as per
>> instructions at
>>
>> https://redmine.openinfosecfoundation.org/projects/suricata/wiki/OpenBSD_Installation_from_GIT
>>
>> OpenBSD 5.0 (GENERIC) #43: Wed Aug 17 10:10:52 MDT 2011
>>    deraadt at i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
>> suricata-1.2.1 -and- suricata-1.3beta1 -and- Git sources @2012-04-29
>> autoconf-2.61
>> automake-1.10.3
>> libtool-1.5.26
>> gcc version 4.2.1 -and- 4.2.4
>> standard system 'make' -and- GNU Make 3.82
>> libpcre 8.12
>> libnet-1.1.2.1
>> libyaml-0.1.2
>>
>>
>> Configured as such:
>>
>> $ CPPFLAGS="-I/usr/local/include" CFLAGS="-L/usr/local/lib"
>> ./configure --sysconfdir=/etc --localstatedir=/var
>> --with-libnet-includes=/usr/local/include/libnet-1.1
>> --with-libnet-libraries=/usr/local/lib/libnet-1.1
>>
>>
>> Consistently errors during build:
>>
>> -----
>> 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 -DRELEASE -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 -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H
>> -DLIBPCAP_VERSION_MAJOR=0 -DUNITTESTS -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
>> gmake[3]: *** [util-ioctl.o] Error 1
>> gmake[3]: Leaving directory
>> `/home/dspruell/downloads/suricata-1.3beta1/src'
>> gmake[2]: *** [all] Error 2
>> gmake[2]: Leaving directory
>> `/home/dspruell/downloads/suricata-1.3beta1/src'
>> gmake[1]: *** [all-recursive] Error 1
>> gmake[1]: Leaving directory `/home/dspruell/downloads/suricata-1.3beta1'
>> gmake: *** [all] Error 2
>> -----
>>
>> Or, from GIt:
>>
>> -----
>> 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 -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBPCAP_VERSIO
>> N_MAJOR=0 -DUNITTESTS -DREVISION="e6dea5c" -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
>> *** Error code 1
>>
>> Stop in /home/dspruell/downloads/oisf/src (line 92 of
>> /usr/share/mk/sys.mk).
>> *** Error code 1
>>
>> Stop in /home/dspruell/downloads/oisf/src (line 764 of Makefile).
>> *** Error code 1
>>
>> Stop in /home/dspruell/downloads/oisf (line 316 of Makefile).
>> *** Error code 1
>>
>> Stop in /home/dspruell/downloads/oisf (line 222 of Makefile).
>> -----
>>
>> This is basically the same as:
>>
>>
>> http://lists.openinfosecfoundation.org/pipermail/oisf-users/2011-November/001001.html
>>
>> ...but like the OP there I don't find anything that resolved the build.
>>
>> # 1.3beta1 install, ./configure output
>> http://pastebin.com/NurVRYTy
>>
>> # 1.3beta1 install, make output
>> http://pastebin.com/SbtP8pWH
>>
>> # Git install, ./configure output
>> http://pastebin.com/C4teP1Yg
>>
>> # Git install, make output
>> http://pastebin.com/tQ88Pi6R
>>
>> --
>> Darren Spruell
>> phatbuckett at gmail.com
>> _______________________________________________
>> Oisf-users mailing list
>> Oisf-users at openinfosecfoundation.org
>> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
>
>
>
>
> --
> Regards,
> Peter Manev
>



-- 
Darren Spruell
phatbuckett at gmail.com



More information about the Oisf-users mailing list