[Oisf-users] Error building suricata 1.1 under OpenBSD 5.0
carlopmart
carlopmart at gmail.com
Mon Nov 14 04:00:41 EST 2011
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"
--
CL Martinez
carlopmart {at} gmail {d0t} com
More information about the Oisf-users
mailing list