[Oisf-users] compile suricata 1.1 with gcc 4.1.2

David Cure suricata at cure.nom.fr
Tue Nov 15 09:10:40 UTC 2011


		Hello,

	I try to compile the last stable version with gcc 4.1.2 and I
get these errors :

gcc -DHAVE_CONFIG_H -I. -I..      -Wextra -Wall -fno-strict-aliasing
-fno-tree-pre -Wno-unused-parameter -std=gnu99  -fstack-protector
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -DNFQ -DPRELUDE
-DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
-DHAVE_NET_ETHERNET_H -DLIBPCAP_VERSION_MAJOR=0 -MT source-pcap.o -MD
-MP -MF .deps/source-pcap.Tpo -c -o source-pcap.o source-pcap.c
In file included from util-debug-filters.h:29,
                 from util-debug.h:34,
                 from suricata-common.h:200,
                 from source-pcap.c:32:
util-mem.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'engine_stage_sc_lock__'
In file included from decode.h:32,
                 from detect-engine-alert.h:28,
                 from suricata-common.h:203,
                 from source-pcap.c:32:
threadvars.h:60: error: expected specifier-qualifier-list before
'pthread_spinlock_t'
In file included from decode.h:36,
                 from detect-engine-alert.h:28,
                 from suricata-common.h:203,
                 from source-pcap.c:32:
source-pcap.h:56: error: expected specifier-qualifier-list before
'pthread_spinlock_t'
In file included from detect.h:29,
                 from detect-engine-alert.h:29,
                 from suricata-common.h:203,
                 from source-pcap.c:32:
flow.h:175: error: expected specifier-qualifier-list before
'pthread_spinlock_t'
flow.h: In function 'FlowLockSetNoPacketInspectionFlag':
flow.h:306: error: 'Flow' has no member named 'm'
flow.h:307: error: 'Flow' has no member named 'flags'
flow.h:308: error: 'Flow' has no member named 'm'
flow.h: In function 'FlowSetNoPacketInspectionFlag':
flow.h:321: error: 'Flow' has no member named 'flags'
flow.h: In function 'FlowLockSetNoPayloadInspectionFlag':
flow.h:334: error: 'Flow' has no member named 'm'
flow.h:335: error: 'Flow' has no member named 'flags'
flow.h:336: error: 'Flow' has no member named 'm'
flow.h: In function 'FlowSetNoPayloadInspectionFlag':
flow.h:349: error: 'Flow' has no member named 'flags'
flow.h: In function 'FlowSetSessionNoApplayerInspectionFlag':
flow.h:359: error: 'Flow' has no member named 'flags'
In file included from source-pcap.c:39:
tm-threads.h: In function 'TmThreadsSlotProcessPkt':
tm-threads.h:126: error: 'ThreadVars' has no member named 'tmqh_out'
tm-threads.h:141: error: 'ThreadVars' has no member named 'tmqh_out'
tm-threads.h:159: error: 'ThreadVars' has no member named 'tmqh_out'
source-pcap.c: In function 'ReceivePcapLoop':
source-pcap.c:278: error: 'ThreadVars' has no member named
'sc_perf_pctx'
source-pcap.c:278: error: 'ThreadVars' has no member named 'sc_perf_pca'
source-pcap.c:278: error: 'ThreadVars' has no member named
'sc_perf_pctx'
source-pcap.c: In function 'ReceivePcapThreadInit':
source-pcap.c:423: warning: implicit declaration of function
'pthread_spin_lock'
source-pcap.c:423: error: 'engine_stage_sc_lock__' undeclared (first use
in this function)
source-pcap.c:423: error: (Each undeclared identifier is reported only
once
source-pcap.c:423: error: for each function it appears in.)
source-pcap.c:423: warning: implicit declaration of function
'pthread_spin_unlock'
source-pcap.c:426: error: 'PcapIfaceConfig' has no member named
'DerefFunc'
source-pcap.c:437: error: 'PcapIfaceConfig' has no member named
'DerefFunc'
source-pcap.c:449: error: 'PcapIfaceConfig' has no member named
'DerefFunc'
source-pcap.c:462: error: 'PcapIfaceConfig' has no member named
'DerefFunc'
source-pcap.c:470: error: 'PcapIfaceConfig' has no member named
'DerefFunc'
source-pcap.c:479: error: 'PcapIfaceConfig' has no member named
'DerefFunc'
source-pcap.c:416: warning: unused variable 'tmpbpfstring'
source-pcap.c: In function 'DecodePcap':
source-pcap.c:550: error: 'ThreadVars' has no member named 'sc_perf_pca'
source-pcap.c:551: error: 'ThreadVars' has no member named 'sc_perf_pca'
source-pcap.c:553: error: 'ThreadVars' has no member named 'sc_perf_pca'
source-pcap.c:560: error: 'ThreadVars' has no member named 'sc_perf_pca'
source-pcap.c:561: error: 'ThreadVars' has no member named 'sc_perf_pca'
make[4]: *** [source-pcap.o] Error 1

	Any idea ?

	David.

-- 
Chronique, Articles, Projets "libre"  ->  http://www.cure.nom.fr/
        @tdjfr on Identi.ca / Twitter / Diaspora
Association FINIX : Finistere *nix    ->  http://www.Finix.EU.Org/
 "Le temps est sans importance, seule la vie est importante" L5E



More information about the Oisf-users mailing list