From 9848c5e56cd7627c5cc5df36bc8dfd3e142f9a5e Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Sun, 19 Feb 2023 21:51:50 +0100 Subject: [PATCH] fix build by including missing headers --- dyninst.spec | 2 ++ missing-includes.patch | 51 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 missing-includes.patch diff --git a/dyninst.spec b/dyninst.spec index 3afa219..179a517 100644 --- a/dyninst.spec +++ b/dyninst.spec @@ -11,6 +11,7 @@ Source0: https://github.com/dyninst/dyninst/archive/v%{version}/%{name}-%{versio Patch0: %{name}-libname.patch Patch1: %{name}-x32.patch Patch2: %{name}-tbb.patch +Patch3: missing-includes.patch URL: https://dyninst.org/dyninst # libiberty BuildRequires: binutils-devel @@ -81,6 +82,7 @@ Statyczne biblioteki dyninst. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build export CXXFLAGS="%{rpmcxxflags} -DTBB_DEFINE_STD_HASH_SPECIALIZATIONS" diff --git a/missing-includes.patch b/missing-includes.patch new file mode 100644 index 0000000..94aa1e3 --- /dev/null +++ b/missing-includes.patch @@ -0,0 +1,51 @@ +diff -ur dyninst-12.2.1.orig/dataflowAPI/src/AbslocInterface.C dyninst-12.2.1/dataflowAPI/src/AbslocInterface.C +--- dyninst-12.2.1.orig/dataflowAPI/src/AbslocInterface.C 2022-11-21 20:46:38.000000000 +0100 ++++ dyninst-12.2.1/dataflowAPI/src/AbslocInterface.C 2023-02-19 21:34:34.799852999 +0100 +@@ -45,6 +45,8 @@ + #include "parseAPI/h/CFG.h" + #include "parseAPI/h/CodeObject.h" + ++#include ++ + using namespace Dyninst; + using namespace Dyninst::InstructionAPI; + extern int df_debug_stackanalysis; +diff -ur dyninst-12.2.1.orig/instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.h dyninst-12.2.1/instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.h +--- dyninst-12.2.1.orig/instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.h 2022-11-21 20:46:38.000000000 +0100 ++++ dyninst-12.2.1/instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.h 2023-02-19 21:33:54.774376195 +0100 +@@ -33,6 +33,9 @@ + #include "Immediate.h" + #include "dyn_regs.h" + ++#include ++#include ++ + namespace Dyninst { + namespace InstructionAPI { + +diff -ur dyninst-12.2.1.orig/instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.h dyninst-12.2.1/instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.h +--- dyninst-12.2.1.orig/instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.h 2022-11-21 20:46:38.000000000 +0100 ++++ dyninst-12.2.1/instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.h 2023-02-19 21:33:48.364566725 +0100 +@@ -33,6 +33,9 @@ + #include "Immediate.h" + #include "dyn_regs.h" + ++#include ++#include ++ + namespace Dyninst { + namespace InstructionAPI { + +diff -ur dyninst-12.2.1.orig/instructionAPI/src/InstructionDecoder-aarch64.h dyninst-12.2.1/instructionAPI/src/InstructionDecoder-aarch64.h +--- dyninst-12.2.1.orig/instructionAPI/src/InstructionDecoder-aarch64.h 2022-11-21 20:46:38.000000000 +0100 ++++ dyninst-12.2.1/instructionAPI/src/InstructionDecoder-aarch64.h 2023-02-19 21:33:39.774822043 +0100 +@@ -33,6 +33,9 @@ + #include "Immediate.h" + #include "dyn_regs.h" + ++#include ++#include ++ + namespace Dyninst { + namespace InstructionAPI { + -- 2.44.0