[Oisf-devel] Build Suricata in MinGW

Eugene B. eugene.b at gmail.com
Wed Feb 16 00:36:10 UTC 2011


Hi,
When I try to build suricata in mingw, the make throws next error:

********
...
make[2]: Entering directory `/oisf/src'
gcc -DHAVE_CONFIG_H -I. -I..  -I../libhtp    -DYAML_DECLARE_STATIC -Wextra
-Wall -fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter -std=gnu99
-DOS_WIN32 -march=native   -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF
-DREVISION="c9f9e3f" -MT suricata.o -MD -MP -MF .deps/suricata.Tpo -c -o
suricata.o suricata.c
In file included from threadvars.h:28:0,
                 from decode.h:30,
                 from detect-engine-alert.h:27,
                 from suricata-common.h:150,
                 from suricata.c:24:
util-affinity.h:48:5: error: expected specifier-qualifier-list before
'cpu_set_t'
suricata.c: In function 'main':
suricata.c:403:14: warning: unused variable 'groupid'
suricata.c:402:14: warning: unused variable 'userid'
suricata.c:401:13: warning: unused variable 'do_setgid'
suricata.c:400:13: warning: unused variable 'do_setuid'
suricata.c:399:11: warning: unused variable 'group_name'
suricata.c:398:11: warning: unused variable 'user_name'
make[2]: *** [suricata.o] Error 1
make[2]: Leaving directory `/oisf/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/oisf'
make: *** [all] Error 2
--------
***************

I tried to compile it explicitly with
#define OS_FREEBSD
parameter set in util-affinity.h header to get the cpu_set_t and
the cpuset_t defined, but simple steps didn't work.

Any advice is highly appreciated.

Eugene.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20110215/d841b98e/attachment-0002.html>


More information about the Oisf-devel mailing list