[Oisf-devel] Error compiling on OS X
Victor Julien
victor at inliniac.net
Tue Oct 8 10:50:24 UTC 2013
On 10/07/2013 08:40 PM, Harley H wrote:
> Hello,
> I'm trying to compile Suricata 1.4.6 on OS X with --enable-profiling
> on. But, I'm getting the following error.
>
>
> gcc -DHAVE_CONFIG_H -I. -I.. -I../libhtp -I/opt/local/include
> -DLOCAL_STATE_DIR=\"/usr/local/var\" -DRELEASE -Wextra
> -Werror-implicit-function-declaration -fno-tree-pre -Wall
> -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -DOS_DARWIN
> -DPROFILING -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
> -DHAVE_NET_ETHERNET_H -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF
> -MT suricata.o -MD -MP -MF .deps/suricata.Tpo -c -o suricata.o suricata.c
> In file included from suricata.c:163:
> util-profiling.h:35: error: thread-local storage not supported for this
> target
> make[3]: *** [suricata.o] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
>
> The line output from running './configure --enable-profiling' shows
> profiling has been successfully enabled.
Yeah, on some architectures thread local storage isn't supported (or at
least not the variant we use). You'll have to disable profiling or
switch to another OS like Linux.
--
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------
More information about the Oisf-devel
mailing list