From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Jones Subject: [PATCH] audit: fix external header definitions for gcc10 Date: Fri, 10 Jan 2020 16:03:47 -0800 Message-ID: <20200111000346.GA22149@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 323292026D67 for ; Sat, 11 Jan 2020 00:04:02 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E7B55185AB8D for ; Sat, 11 Jan 2020 00:04:01 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com Content-Disposition: inline To: linux-audit@redhat.com List-Id: linux-audit@redhat.com Header definitions need to be external when building with -fno-common (which is default in GCC 10). (.text+0x0): multiple definition of `event_node_list'; ausearch.o (symbol from plugin):(.text+0x0): first defined here [ 60s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: ausearch-time.o (symbol from plugin): in function `lookup_time': Fixes: ff25054df7ed --- src/ausearch-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ausearch-common.h b/src/ausearch-common.h index 6669203..3040547 100644 --- a/src/ausearch-common.h +++ b/src/ausearch-common.h @@ -50,7 +50,7 @@ extern pid_t event_pid; extern int event_exact_match; extern uid_t event_uid, event_euid, event_loginuid; extern const char *event_tuid, *event_teuid, *event_tauid; -slist *event_node_list; +extern slist *event_node_list; extern const char *event_comm; extern const char *event_filename; extern const char *event_hostname; -- 2.21.0