From 82eb13bd04fb07e38fa8bd87be32d8afe3e4fd62 Mon Sep 17 00:00:00 2001 From: Wook Song Date: Fri, 7 Jun 2024 12:56:05 +0900 Subject: [PATCH] Dist/Tizen: Fix build errors with gcc-14 This patch fixes build errors from pthread_create() with gcc-14. Change-Id: I804241cd985aeda5cc2312588b4d14d6b0d98f59 Signed-off-by: Wook Song --- ...Console-Add-a-missing-header-include.patch | 29 +++++++++++++++++++ packaging/libmvnc.spec | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 packaging/0005-API-XLinkConsole-Add-a-missing-header-include.patch diff --git a/packaging/0005-API-XLinkConsole-Add-a-missing-header-include.patch b/packaging/0005-API-XLinkConsole-Add-a-missing-header-include.patch new file mode 100644 index 0000000..254acc1 --- /dev/null +++ b/packaging/0005-API-XLinkConsole-Add-a-missing-header-include.patch @@ -0,0 +1,29 @@ +From cf7dbfc47f0c1cfa8931e6fb914d66fe77b7e04e Mon Sep 17 00:00:00 2001 +From: Wook Song +Date: Fri, 7 Jun 2024 11:46:32 +0900 +Subject: [PATCH] [API/XLinkConsole] Add a missing header include, pthread.h + +This patch fixes a compile error related to the implicit declaration of +function 'pthread_create'. + +Change-Id: Id4e2a2a8c33082589073d676db97071c9daa76d3 +Signed-off-by: Wook Song +--- + api/src/common/components/XLinkConsole/pc/XLinkConsole.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/api/src/common/components/XLinkConsole/pc/XLinkConsole.c b/api/src/common/components/XLinkConsole/pc/XLinkConsole.c +index 8e46f04..6524e95 100644 +--- a/api/src/common/components/XLinkConsole/pc/XLinkConsole.c ++++ b/api/src/common/components/XLinkConsole/pc/XLinkConsole.c +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + #define MVLOG_UNIT_NAME xLinkConsole + #include "mvLog.h" + +-- +2.34.1 + diff --git a/packaging/libmvnc.spec b/packaging/libmvnc.spec index a508221..2d4fc15 100644 --- a/packaging/libmvnc.spec +++ b/packaging/libmvnc.spec @@ -20,6 +20,7 @@ Patch0: 0001-API-Makefile-Revise-Makefile-for-API.patch Patch1: 0002-API-Makefile-Generalize-Makefile.patch Patch2: 0003-API-Makefile-Modifies-Makefile-to-generate-libmvnc.p.patch Patch3: 0004-API-Makefile-Add-flag-to-skip-.-get_mvcmd.sh-when-it.patch +Patch4: 0005-API-XLinkConsole-Add-a-missing-header-include.patch Requires(post): %{_sbindir}/udevadm %{_sbindir}/ldconfig Requires(postun): %{_sbindir}/udevadm %{_sbindir}/ldconfig Requires: mvnc-2450-firmware @@ -48,6 +49,7 @@ This package provides headers and other miscellaneous files required to use NCSD %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 cp %{SOURCE1} . cp %{SOURCE1001} . cp %{SOURCE1002} . -- 2.34.1