From 7ff22c698a0ddb5a4424f09368c5523c2058c1a4 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 12 Jul 2022 18:28:16 +0200 Subject: [PATCH] package/unixodbc: fix build without threads Fix the following build failure without threads raised since bump to version 2.3.11 in commit 9b4914cc4ccdc30e239cd3e2e0e61b8ca5d24bab and https://github.com/lurcher/unixODBC/commit/6df155fb213896b9507b421c58856e4376647ae1: /home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: ../DriverManager/.libs/libodbc.so: undefined reference to `pool_timedwait' /home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: ../DriverManager/.libs/libodbc.so: undefined reference to `pool_signal' Fixes: - http://autobuild.buildroot.org/results/131eafaddfc956c7d54c81ed72a31baf28ab1ab6 Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- ...ivermanager.h-fix-build-without-thre.patch | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 package/unixodbc/0001-DriverManager-drivermanager.h-fix-build-without-thre.patch diff --git a/package/unixodbc/0001-DriverManager-drivermanager.h-fix-build-without-thre.patch b/package/unixodbc/0001-DriverManager-drivermanager.h-fix-build-without-thre.patch new file mode 100644 index 0000000000..9d54bbf5ef --- /dev/null +++ b/package/unixodbc/0001-DriverManager-drivermanager.h-fix-build-without-thre.patch @@ -0,0 +1,34 @@ +From 119cab666646cd9210439d4696a4bfa18343a2c6 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Tue, 12 Jul 2022 00:29:28 +0200 +Subject: [PATCH] DriverManager/drivermanager.h: fix build without threads + +Fix the following build failure without threads raised since version +2.3.10 and commit 6df155fb213896b9507b421c58856e4376647ae1: + +/home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: ../DriverManager/.libs/libodbc.so: undefined reference to `pool_timedwait' +/home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: ../DriverManager/.libs/libodbc.so: undefined reference to `pool_signal' + +Fixes: + - http://autobuild.buildroot.org/results/131eafaddfc956c7d54c81ed72a31baf28ab1ab6 + +Signed-off-by: Fabrice Fontaine +[Retrieved from: +https://github.com/lurcher/unixODBC/commit/119cab666646cd9210439d4696a4bfa18343a2c6] +--- + DriverManager/drivermanager.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/DriverManager/drivermanager.h b/DriverManager/drivermanager.h +index 9528fae..abd324b 100644 +--- a/DriverManager/drivermanager.h ++++ b/DriverManager/drivermanager.h +@@ -808,6 +808,8 @@ void pool_signal(); + + #define thread_protect(a,b) + #define thread_release(a,b) ++#define pool_timedwait(a) ++#define pool_signal() + + #endif +