Description: Fix FTBFS when compiling linking by making hex_lookup static
Author: Javier Fernandez-Sanguino <jfs@debian.org>
Last-Update: 2020-12-06


--- a/src/sfutil/util_jsnorm.c
+++ b/src/sfutil/util_jsnorm.c
@@ -90,7 +90,7 @@
     ACT_UNESCAPE
 } ActionJSNorm;
 
-int hex_lookup[256];
+static int hex_lookup[256]; // Defined as static to avoid clash with /src/preprocessors/spp_httpinspect.c
 int valid_chars[256];
 
 char decoded_out[6335];
--- a/src/preprocessors/Stream6/stream_paf.h
+++ b/src/preprocessors/Stream6/stream_paf.h
@@ -68,7 +68,7 @@
 uint16_t s5_paf_port_registration_all (void* pv, uint16_t port, bool c2s, bool flush);
 uint16_t s5_paf_service_registration (void* pv, uint16_t service, bool c2s, bool flush);
 
-enum FlushMode
+static enum FlushMode
 {
     FLUSH_MODE_NORMAL = 0,
     FLUSH_MODE_PRE_DISCARD,
--- a/src/detection-plugins/sp_session.c
+++ b/src/detection-plugins/sp_session.c
@@ -80,7 +80,7 @@
 #include "snort.h"
 #include "profiler.h"
 #ifdef PERF_PROFILING
-PreprocStats sessionPerfStats;
+extern PreprocStats sessionPerfStats;
 extern PreprocStats ruleOTNEvalPerfStats;
 #endif
 
