[Oisf-devel] Win32 Suricata compilation

Eugene B. eugene.b at gmail.com
Thu Apr 7 00:30:25 UTC 2011


Hi,
I tried to compile Suricata under MinGW and the make is failing with the
next warnings and an error:

**********************************************************************************************
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
suricata.c: In function 'main':
suricata.c:503:14: warning: unused variable 'groupid'
suricata.c:502:14: warning: unused variable 'userid'
suricata.c:501:13: warning: unused variable 'do_setgid'
suricata.c:500:13: warning: unused variable 'do_setuid'
suricata.c:499:11: warning: unused variable 'group_name'
suricata.c:498:11: warning: unused variable 'user_name'
**********************************************************************************************
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
decode-ipv4.c: In function 'DecodeIPV4Packet':
decode-ipv4.c:481:29: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c: In function 'DecodeIPV4':
decode-ipv4.c:554:27: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:554:27: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:554:48: warning: operation on 'p->ip4c.hl' may be undefined
decode-ipv4.c:559:23: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:559:23: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:559:43: warning: operation on 'p->ip4c.hl' may be undefined
decode-ipv4.c:564:23: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:564:23: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:564:43: warning: operation on 'p->ip4c.hl' may be undefined
decode-ipv4.c:569:26: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:569:26: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:569:46: warning: operation on 'p->ip4c.hl' may be undefined
decode-ipv4.c:573:23: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:573:23: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:573:43: warning: operation on 'p->ip4c.hl' may be undefined
decode-ipv4.c:581:29: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:581:29: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:581:29: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:580:49: warning: operation on 'p->ip4c.hl' may be undefined
decode-ipv4.c:594:23: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:594:23: warning: operation on 'p->ip4c.flags' may be undefined
decode-ipv4.c:594:43: warning: operation on 'p->ip4c.hl' may be undefined

**********************************************************************************************

The error:
**********************************************************************************************
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
In file included from util-debug.h:25:0,
                 from reputation.c:29:
threads.h:53:16: error: 'THREAD_PRIORITY_LOWEST' undeclared here (not in a
function)
threads.h:54:19: error: 'THREAD_PRIORITY_NORMAL' undeclared here (not in a
function)
threads.h:55:17: error: 'THREAD_PRIORITY_HIGHEST' undeclared here (not in a
function)
make[2]: *** [reputation.o] Error 1
make[2]: Leaving directory `/home/oisf/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/oisf'
make: *** [all] Error 2

************************
Any help is appreciated.

Thanks very much,

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


More information about the Oisf-devel mailing list