[Oisf-devel] Build Suricata in MinGW

Eric Leblond eric at regit.org
Wed Feb 16 01:25:08 UTC 2011


Hello,

Le mardi 15 février 2011 à 16:36 -0800, Eugene B. a écrit :
> 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.

Could you try the patch in attachment ? It may help to fix.

BR,

-- 
Eric Leblond <eric at regit.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-use-advanced-cpu-affinity-on-windows.patch
Type: text/x-patch
Size: 1501 bytes
Desc: not available
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20110216/6aaf8b74/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20110216/6aaf8b74/attachment.sig>


More information about the Oisf-devel mailing list