<div>Hi,</div><div>I tried to compile Suricata under MinGW and the make is failing with the next warnings and an error:</div><div> </div><div>********************************************************************************************** </div>
<div>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="a96eae0" -MT suricata.o -MD -MP -MF .deps/suricata.Tpo -c -o suricata.o suricata.c<br>
suricata.c: In function 'main':<br>suricata.c:503:14: warning: unused variable 'groupid'<br>suricata.c:502:14: warning: unused variable 'userid'<br>suricata.c:501:13: warning: unused variable 'do_setgid'<br>
suricata.c:500:13: warning: unused variable 'do_setuid'<br>suricata.c:499:11: warning: unused variable 'group_name'<br>suricata.c:498:11: warning: unused variable 'user_name'</div><div>**********************************************************************************************</div>
<div>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="a96eae0" -MT decode-ipv4.o -MD -MP -MF .deps/decode-ipv4.Tpo -c -o decode-ipv4.o decode-ipv4.c<br>
decode-ipv4.c: In function 'DecodeIPV4Packet':<br>decode-ipv4.c:481:29: warning: operation on 'p->ip4c.flags' may be undefined<br>decode-ipv4.c: In function 'DecodeIPV4':<br>decode-ipv4.c:554:27: warning: operation on 'p->ip4c.flags' may be undefined<br>
decode-ipv4.c:554:27: warning: operation on 'p->ip4c.flags' may be undefined<br>decode-ipv4.c:554:48: warning: operation on 'p->ip4c.hl' may be undefined<br>decode-ipv4.c:559:23: warning: operation on 'p->ip4c.flags' may be undefined<br>
decode-ipv4.c:559:23: warning: operation on 'p->ip4c.flags' may be undefined<br>decode-ipv4.c:559:43: warning: operation on 'p->ip4c.hl' may be undefined<br>decode-ipv4.c:564:23: warning: operation on 'p->ip4c.flags' may be undefined<br>
decode-ipv4.c:564:23: warning: operation on 'p->ip4c.flags' may be undefined<br>decode-ipv4.c:564:43: warning: operation on 'p->ip4c.hl' may be undefined<br>decode-ipv4.c:569:26: warning: operation on 'p->ip4c.flags' may be undefined<br>
decode-ipv4.c:569:26: warning: operation on 'p->ip4c.flags' may be undefined<br>decode-ipv4.c:569:46: warning: operation on 'p->ip4c.hl' may be undefined<br>decode-ipv4.c:573:23: warning: operation on 'p->ip4c.flags' may be undefined<br>
decode-ipv4.c:573:23: warning: operation on 'p->ip4c.flags' may be undefined<br>decode-ipv4.c:573:43: warning: operation on 'p->ip4c.hl' may be undefined<br>decode-ipv4.c:581:29: warning: operation on 'p->ip4c.flags' may be undefined<br>
decode-ipv4.c:581:29: warning: operation on 'p->ip4c.flags' may be undefined<br>decode-ipv4.c:581:29: warning: operation on 'p->ip4c.flags' may be undefined<br>decode-ipv4.c:580:49: warning: operation on 'p->ip4c.hl' may be undefined<br>
decode-ipv4.c:594:23: warning: operation on 'p->ip4c.flags' may be undefined<br>decode-ipv4.c:594:23: warning: operation on 'p->ip4c.flags' may be undefined<br>decode-ipv4.c:594:43: warning: operation on 'p->ip4c.hl' may be undefined</div>
<div><br>**********************************************************************************************</div><div> </div><div>The error:</div><div>**********************************************************************************************</div>
<div><div class="im"><div>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   -LIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DREVISION="a96eae0" -MT reputation.o -MD -MP -MF .deps/reputation.Tpo -c -o reputation.o reputation.c<br>
In file included from util-debug.h:25:0,<br>                 from reputation.c:29:<br>threads.h:53:16: error: 'THREAD_PRIORITY_LOWEST' undeclared here (not in a function)<br>threads.h:54:19: error: 'THREAD_PRIORITY_NORMAL' undeclared here (not in a function)<br>
threads.h:55:17: error: 'THREAD_PRIORITY_HIGHEST' undeclared here (not in a function)<br>make[2]: *** [reputation.o] Error 1<br>make[2]: Leaving directory `/home/oisf/src'<br>make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/home/oisf'<br>make: *** [all] Error 2</div></div></div><div> </div><div>************************</div><div>Any help is appreciated.</div><div><br>Thanks very much,</div><div> </div><div>Eugene Bodenstein.</div>