!4 修改由于gcc升级导致编译失败问题。

From: @liheavy
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2021-08-02 15:41:28 +00:00 committed by Gitee
commit 4bf5c94ca5
2 changed files with 19 additions and 1 deletions

View File

@ -9,7 +9,7 @@
Name: amanda
Version: 3.5.1
Release: 18
Release: 19
Summary: A backup solution over network to disk
License: BSD and GPLv3+ and GPLv2+ and GPLv2
URL: http://www.amanda.org
@ -24,6 +24,7 @@ Source15: kamanda.socket
Source16: kamanda@.service
Patch5: patch-tirpc
Patch6: fix-multiple-definition.patch
BuildRequires: automake autoconf libtool dump xfsdump cups
BuildRequires: samba-client tar grep gcc-c++ readline-devel libtirpc-devel
@ -193,6 +194,9 @@ make check
%{_mandir}/man*
%changelog
* Fri Jul 30 2021 Haiwei Li <lihaiwei8@huawei.com> - 3.5.1-19
- Fix multiple definition tu_debugging_enabled
* Sat Feb 29 2020 Ling Yang <lingyang2@huawei.com> - 3.5.1-18
- Fixed build error

View File

@ -0,0 +1,14 @@
diff --git a/common-src/testutils.h b/common-src/testutils.h
index 31f8973..3bb376f 100644
--- a/common-src/testutils.h
+++ b/common-src/testutils.h
@@ -75,7 +75,7 @@ typedef struct TestUtilsTest {
#define tu_dbg(...) if (tu_debugging_enabled) { g_fprintf(stderr, __VA_ARGS__); }
/* Is debugging enabled for this test run? (set internally) */
-int tu_debugging_enabled;
+extern int tu_debugging_enabled;
/*
* Main loop