[Oisf-users] Error building suricata 1.1 under OpenBSD 5.0
Eric Leblond
eric at regit.org
Mon Nov 14 09:24:52 UTC 2011
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
BR,
On Mon, 2011-11-14 at 10:00 +0100, carlopmart wrote:
> On 11/14/2011 09:50 AM, Victor Julien wrote:
> > On 11/14/2011 09:45 AM, carlopmart wrote:
> >> Hi all,
> >>
> >> I am trying to build suricata 1.1 under OpenBSD 5.0 but make returns
> >> these errors:
> >>
> >> Making all in test
> >> Making all in src
> >> make all-am
> >> gcc -DHAVE_CONFIG_H -I. -I.. -I../libhtp -I/usr/local/include
> >> -I/usr/local/include/libnet-1.1 -I/usr/local/include/libnet-1.1 -g -O2
> >> -Wextra -Wall -fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter
> >> -std=gnu99 -D__OpenBSD__ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE
> >> -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBPCAP_VERSION_MAJOR=0
> >> -DPROFILING -MT suricata.o -MD -MP -MF .deps/suricata.Tpo -c -o
> >> suricata.o suricata.c
> >> In file included from suricata.c:137:
> >> util-profiling.h:34: error: thread-local storage not supported for this
> >> target
> >> *** 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).
> >
> > It seems OpenBSD doesn't support thread local storage. This means that
> > right now you can't use profiling on OpenBSD.
> >
> > Can you retry compilation after removing --enable-profiling from your
> > configure options?
> >
> > Cheers,
> > Victor
> >
>
> It doesn't works:
>
> mv -f .deps/util-profiling.Tpo .deps/util-profiling.Po
> gcc -DHAVE_CONFIG_H -I. -I.. -I../libhtp -I/usr/local/include
> -I/usr/local/include/libnet-1.1 -I/usr/local/include/libnet-1.1 -g -O2
> -Wextra -Wall -fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter
> -std=gnu99 -D__OpenBSD__ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE
> -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBPCAP_VERSION_MAJOR=0 -MT
> cuda-packet-batcher.o -MD -MP -MF .deps/cuda-packet-batcher.Tpo -c -o
> cuda-packet-batcher.o cuda-packet-batcher.c
> mv -f .deps/cuda-packet-batcher.Tpo .deps/cuda-packet-batcher.Po
> gcc -DHAVE_CONFIG_H -I. -I.. -I../libhtp -I/usr/local/include
> -I/usr/local/include/libnet-1.1 -I/usr/local/include/libnet-1.1 -g -O2
> -Wextra -Wall -fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter
> -std=gnu99 -D__OpenBSD__ -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE
> -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBPCAP_VERSION_MAJOR=0 -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 /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).
>
> My configure options are:
>
> "./configure --prefix=/data/soft/suricata
> --with-libnet-includes=/usr/local/include/libnet-1.1
> --with-libnet-libraries=/usr/local/lib/libnet-1.1"
>
>
>
--
Eric Leblond
Blog: http://home.regit.org/
-------------- 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-users/attachments/20111114/b485d1b8/attachment.sig>
More information about the Oisf-users
mailing list