[Oisf-devel] Build Suricata in MinGW

Victor Julien victor at inliniac.net
Sat Feb 26 10:10:33 UTC 2011


I've applied this patch, thanks Eric!

On 02/18/2011 12:55 AM, Eric Leblond wrote:
> Hello,
> 
> The attached patch should/may fix the compilation on your platform.
> 
> BR,
> 
> Le mercredi 16 février 2011 à 02:25 +0100, Eric Leblond a écrit :
>> 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,
>>
>> _______________________________________________
>> Oisf-devel mailing list
>> Oisf-devel at openinfosecfoundation.org
>> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
> 
> 
> 
> _______________________________________________
> Oisf-devel mailing list
> Oisf-devel at openinfosecfoundation.org
> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel


-- 
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------




More information about the Oisf-devel mailing list