Snort mailing list archives
i can't build fully snort 2 i think remove my subscribing null of snort because both snort can't be fully build
From: Dorian ROSSE via Snort-devel <snort-devel () lists snort org>
Date: Sun, 7 Aug 2022 12:50:25 +0000
hello, i can't build fully snort 2 i think remove my subscribing null of snort because both snort can't be fully build, firstly the shell was ask rpc/rpc.h also i have create the folder and the file empty that pass the first error but i can't build after this repair thus when i run the command line following at the end of the shell i am happening errors following : '''sudo ./configure --enable-sourcefire && sudo make -j 4 && sudo make -j 4 install''' '''sp_rpc_check.c: In function ‘CheckRpc’: sp_rpc_check.c:278:19: error: storage size of ‘direction’ isn’t known 278 | enum msg_type direction; | ^~~~~~~~~ In file included from ../../src/decode.h:39, from ../../src/rules.h:32, from sp_rpc_check.c:35: sp_rpc_check.c:65:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 65 | #define GET_32BITS(buf) (ntohl(*(*(uint32_t **)&(buf))++)) | ^~~~~~~~~~~~~~~~~~~ sp_rpc_check.c:326:5: note: in expansion of macro ‘GET_32BITS’ 326 | GET_32BITS(c); | ^~~~~~~~~~ sp_rpc_check.c:65:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 65 | #define GET_32BITS(buf) (ntohl(*(*(uint32_t **)&(buf))++)) | ^~~~~~~~~~~~~~~~~~~ sp_rpc_check.c:329:32: note: in expansion of macro ‘GET_32BITS’ 329 | direction = (enum msg_type)GET_32BITS(c); | ^~~~~~~~~~ sp_rpc_check.c:329:23: error: conversion to incomplete type 329 | direction = (enum msg_type)GET_32BITS(c); | ^~~~~~~~ sp_rpc_check.c:332:21: error: ‘CALL’ undeclared (first use in this function) 332 | if(direction != CALL) | ^~~~ sp_rpc_check.c:332:21: note: each undeclared identifier is reported only once for each function it appears in In file included from ../../src/decode.h:39, from ../../src/rules.h:32, from sp_rpc_check.c:35: sp_rpc_check.c:65:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 65 | #define GET_32BITS(buf) (ntohl(*(*(uint32_t **)&(buf))++)) | ^~~~~~~~~~~~~~~~~~~ sp_rpc_check.c:340:17: note: in expansion of macro ‘GET_32BITS’ 340 | rpcvers = GET_32BITS(c); | ^~~~~~~~~~ sp_rpc_check.c:343:19: error: ‘RPC_MSG_VERSION’ undeclared (first use in this function); did you mean ‘RUN_MODE__VERSION’? 343 | if(rpcvers != RPC_MSG_VERSION) | ^~~~~~~~~~~~~~~ | RUN_MODE__VERSION In file included from ../../src/decode.h:39, from ../../src/rules.h:32, from sp_rpc_check.c:35: sp_rpc_check.c:65:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 65 | #define GET_32BITS(buf) (ntohl(*(*(uint32_t **)&(buf))++)) | ^~~~~~~~~~~~~~~~~~~ sp_rpc_check.c:351:12: note: in expansion of macro ‘GET_32BITS’ 351 | prog = GET_32BITS(c); | ^~~~~~~~~~ sp_rpc_check.c:65:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 65 | #define GET_32BITS(buf) (ntohl(*(*(uint32_t **)&(buf))++)) | ^~~~~~~~~~~~~~~~~~~ sp_rpc_check.c:352:12: note: in expansion of macro ‘GET_32BITS’ 352 | vers = GET_32BITS(c); | ^~~~~~~~~~ sp_rpc_check.c:65:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 65 | #define GET_32BITS(buf) (ntohl(*(*(uint32_t **)&(buf))++)) | ^~~~~~~~~~~~~~~~~~~ sp_rpc_check.c:353:12: note: in expansion of macro ‘GET_32BITS’ 353 | proc = GET_32BITS(c); | ^~~~~~~~~~ sp_rpc_check.c:278:19: warning: unused variable ‘direction’ [-Wunused-variable] 278 | enum msg_type direction; | ^~~~~~~~~ make[4]: *** [Makefile:489 : sp_rpc_check.o] Erreur 1 make[4]: *** Attente des tâches non terminées.... make[4] : on quitte le répertoire « /home/dorianrosse/snort_src/snort-2.9.20/src/detection-plugins » make[3]: *** [Makefile:440 : all] Erreur 2 make[3] : on quitte le répertoire « /home/dorianrosse/snort_src/snort-2.9.20/src/detection-plugins » make[2]: *** [Makefile:558 : all-recursive] Erreur 1 make[2] : on quitte le répertoire « /home/dorianrosse/snort_src/snort-2.9.20/src » make[1]: *** [Makefile:516 : all-recursive] Erreur 1 make[1] : on quitte le répertoire « /home/dorianrosse/snort_src/snort-2.9.20 » make: *** [Makefile:382 : all] Erreur 2 ''' thanks you in advance to help myself repair snort2 or snort3 or else cisco will lose one subscriber, regards. Dorian ROSSE.
_______________________________________________ Snort-devel mailing list Snort-devel () lists snort org https://lists.snort.org/mailman/listinfo/snort-devel Please visit http://blog.snort.org for the latest news about Snort!
Current thread:
- i can't build fully snort 2 i think remove my subscribing null of snort because both snort can't be fully build Dorian ROSSE via Snort-devel (Aug 08)
- Re: i can't build fully snort 2 i think remove my subscribing null of snort because both snort can't be fully build J. Hellenthal via Snort-devel (Aug 08)
- Message not available
- Re: 自动回复: Re: i can't build fully snort 2 i think remove mysubscribing null of snort because both snort can't be fully build J. Hellenthal via Snort-devel (Aug 09)
- Message not available
- Re: i can't build fully snort 2 i think remove my subscribing null of snort because both snort can't be fully build J. Hellenthal via Snort-devel (Aug 08)