Removed deny_severity,allow_severity defs from filan.c and procan.c to make gcc version 10 happy

This commit is contained in:
Gerhard Rieger 2020-11-14 17:33:58 +01:00
parent b62ff0c005
commit a850582908
3 changed files with 8 additions and 8 deletions

View file

@ -12,6 +12,14 @@ Corrections:
quotes
Test: UNBALANCED_QUOTE
Porting:
In gcc version 10 the default changed from -fcommon to -fno-common.
Consequently, linking filan and procan failed with error
"multiple definition of `deny_severity'" and `allow_severity'
Fixed by removing definitions in filan.c and procan.c
Debian issue 957823
Thanks to László Böszörményi and others for reporting this issue.
Testing:
test.sh now produces a list of tests that could not be performed for
any reason. This helps to analyse these cases.

View file

@ -28,10 +28,6 @@ struct sockopt {
static int filan_streams_analyze(int fd, FILE *outfile);
/* dirty workaround so we dont get an error on AIX when being linked with
libwrap */
int allow_severity, deny_severity;
/* global variables for configuring filan */
bool filan_followsymlinks;
bool filan_rawoutput;

View file

@ -19,10 +19,6 @@
#include "procan.h"
/* dirty workaround so we dont get an error on AIX when getting linked with
libwrap */
int allow_severity, deny_severity;
int procan(FILE *outfile) {