Add missing extern variable in .c file

fix downstream undefined reference problem
This commit is contained in:
王勇 2021-08-06 15:11:31 +08:00
parent c24d626bf6
commit 21f28f7d9d
2 changed files with 18 additions and 1 deletions

13
Fix-missing-extern.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/psm_utils.c b/psm_utils.c
index 87e522b..6b7c0d1 100644
--- a/psm_utils.c
+++ b/psm_utils.c
@@ -57,6 +57,8 @@
#include "psm_mq_internal.h"
#include "psm_am_internal.h"
+uint32_t psmi_cpu_model;
+
int psmi_ep_device_is_enabled(const psm2_ep_t ep, int devid);
struct psmi_epid_table psmi_epid_table;

View File

@ -1,6 +1,6 @@
Name: libpsm2
Version: 10.3.58
Release: 8
Release: 9
Summary: Intel PSM Libraries
License: BSD or GPLv2
URL: https://github.com/01org/opa-psm2/
@ -10,6 +10,7 @@ Source0: https://github.com/intel/opa-psm2/archive/PSM2_10.3.58.tar.gz
Patch0: 0000-extend-fdesc-array.patch
Patch1: fix-stringop-truncation-build-error.patch
Patch2: Fix-opa-psm2-gcc10.patch
Patch3: Fix-missing-extern.patch
ExclusiveArch: x86_64
BuildRequires: libuuid-devel numactl-devel gcc systemd-udev
@ -74,6 +75,9 @@ rm -f %{buildroot}%{_libdir}/*.a
%{_sysconfdir}/modprobe.d/libpsm2-compat.conf
%changelog
* Fri Aug 06 2021 wangyong <wangyong187@huawei.com> - 10.3.58-9
- Fix downstream missing lib problem
* Mon Aug 02 2021 wangyong <wangyong187@huawei.com> - 10.3.58-8
- Fix build error caused by GCC upgrade to GCC-10