From f3896525994fe94222e20d0cfd6a59629bf29811 Mon Sep 17 00:00:00 2001 From: jpzhang187 Date: Fri, 27 Aug 2021 11:40:51 +0800 Subject: [PATCH] fix undefined symbol --- sblim-sfcb-1.4.9-fix-undefined-symbol.patch | 24 +++++++++++++++++++++ sblim-sfcb.spec | 8 +++++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 sblim-sfcb-1.4.9-fix-undefined-symbol.patch diff --git a/sblim-sfcb-1.4.9-fix-undefined-symbol.patch b/sblim-sfcb-1.4.9-fix-undefined-symbol.patch new file mode 100644 index 0000000..e45acc3 --- /dev/null +++ b/sblim-sfcb-1.4.9-fix-undefined-symbol.patch @@ -0,0 +1,24 @@ +diff --git a/providerMgr.c b/providerMgr.c +index 53fed57..23deaaf 100644 +--- a/providerMgr.c ++++ b/providerMgr.c +@@ -54,6 +54,7 @@ + #endif + + sigset_t mask, old_mask; ++const char *sfcBrokerStart; + + static pthread_mutex_t resultsocketMutex = PTHREAD_MUTEX_INITIALIZER; + +diff --git a/sfcBroker.c b/sfcBroker.c +index 5133cc4..e15a637 100644 +--- a/sfcBroker.c ++++ b/sfcBroker.c +@@ -52,7 +52,6 @@ + #include "config.h" + #endif + +-const char *sfcBrokerStart; + + int sfcBrokerPid = 0; + diff --git a/sblim-sfcb.spec b/sblim-sfcb.spec index 2caec54..ff7dc50 100644 --- a/sblim-sfcb.spec +++ b/sblim-sfcb.spec @@ -2,8 +2,8 @@ Name: sblim-sfcb Summary: Small Footprint CIM Broker (SFCB) URL: http://sblim.sourceforge.net/wiki/index.php/Sfcb Version: 1.4.9 -Release: 16 -License: EPL +Release: 17 +License: EPL-1.0 Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2 Source1: sfcb.service @@ -15,6 +15,7 @@ Patch3: sblim-sfcb-1.4.9-fix-null-deref.patch Patch4: sblim-sfcb-1.4.9-fix-null-content-type-crash.patch Patch5: sblim-sfcb-1.4.9-sfcbrepos-schema-location.patch Patch6: sblim-sfcb-1.4.9-fix-multiple-definition.patch +Patch7: sblim-sfcb-1.4.9-fix-undefined-symbol.patch Provides: cim-server = 0 Requires: cim-schema sblim-sfcCommon @@ -90,6 +91,9 @@ fi; %files -f _pkg_list %changelog +* Fri Aug 27 2021 zhangjiapeng - 1.4.9-17 +- fix undefined symbol + * Fri Jul 30 2021 yaokai13 - 1.4.9-16 - Fix failure caused by GCC upgrade to 10