[Oisf-devel] Suricata 1.2.1 + OpenBSD

Eric Leblond eric at regit.org
Fri Apr 27 14:10:30 UTC 2012


Hello,

Le vendredi 27 avril 2012 à 15:38 +0200, Eric Leblond a écrit :
> Hello,
> 
> I've got it. I've just made a fresh install of OpenBSD 5.0 and I've
> reproduced the problem.
> 
> OpenBSD sucks as usual with the includes and they even manage to change
> between every versions.
> 
> I cook a fix and send a patch as reply to this mail in a few minutes.

The attached patch fixes the compilation on a fresh OpenBSD 5.0 install.

BR,
> 
> BR,
> 
> Le vendredi 27 avril 2012 à 15:03 +0200, Henri Wahl a écrit :
> > Meanwhile I tried it with the git version as described at
> > https://home.regit.org/2011/04/building-suricata-under-openbsd/ but the
> > result is all the same:
> > 
> > gcc -DHAVE_CONFIG_H -I. -I..  -I../libhtp   -I/usr/local/include
> > -I/usr/local/include/libnet-1.1  -g -O2 -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 -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'
> > *** Error code 1
> > 
> > Stop in /usr/src/oisf/src (line 92 of /usr/share/mk/sys.mk).
> > *** Error code 1
> > 
> > Stop in /usr/src/oisf/src (line 764 of Makefile).
> > *** Error code 1
> > 
> > Stop in /usr/src/oisf (line 316 of Makefile).
> > *** Error code 1
> > 
> > Stop in /usr/src/oisf (line 222 of Makefile).
> > 
> > 
> > _______________________________________________
> > Oisf-devel mailing list
> > Oisf-devel at openinfosecfoundation.org
> > http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
> 
> _______________________________________________
> Oisf-devel mailing list
> Oisf-devel at openinfosecfoundation.org
> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel

-- 
Eric Leblond 
Blog: http://home.regit.org/ - Portfolio: http://regit.500px.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-OpenBSD-compilation.patch
Type: text/x-patch
Size: 1198 bytes
Desc: not available
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20120427/f8c83bca/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20120427/f8c83bca/attachment.sig>


More information about the Oisf-devel mailing list