[Oisf-devel] Build Suricata in MinGW

Eric Leblond eric at regit.org
Thu Feb 17 23:55:11 UTC 2011


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

-- 
Eric Leblond <eric at regit.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Compilation-fix-for-OpenBSD-and-win32.patch
Type: text/x-patch
Size: 10226 bytes
Desc: not available
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20110218/001b200b/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/20110218/001b200b/attachment.sig>


More information about the Oisf-devel mailing list