Skip to contentSkip to conversation

package/samba4: fix build with uclibc

PATCH New Fabrice Fontaine 2 participants 3 messages Dec 15, 2019 – Dec 22, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/samba4: fix build with uclibc

Fixes:
- autobuild.buildroot.org/results/9507739b3d5d51024ee9c60b74c2f85d5004e7e2

---
 ...0010-Include-stdint.h-before-cmoka.h.patch | 134 ++++++++++++++++++
 1 file changed, 134 insertions(+)
 create mode 100644 package/samba4/0010-Include-stdint.h-before-cmoka.h.patch
package/samba4/0010-Include-stdint.h-before-cmoka.h.patch new file +134 -0
new file mode 100644
index 0000000000..71a79abbf8
@@ -0,0 +1,134 @@
+From 512dff011cd1bce9ca48c20fd9470dbc05dd2449 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Sun, 15 Dec 2019 17:08:24 +0100
+Subject: [PATCH] Include stdint.h before cmoka.h
+
+This fix the following build failures:
+
+[2466/3864] Linking bin/default/lib/ldb/ldbmodify
+In file included from /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/lib/gcc/mips64el-buildroot-linux-uclibc/5.5.0/include/stdint.h:9:0,
+                 from ../../lib/tevent/tevent.h:31,
+                 from ../../lib/ldb/include/ldb.h:51,
+                 from ../../lib/ldb/tests/test_ldb_dn.c:25:
+/home/buildroot/autobuild/instance-0/output-1/host/mips64el-buildroot-linux-uclibc/sysroot/usr/include/stdint.h:122:27: error: conflicting types for 'uintptr_t'
+ typedef unsigned long int uintptr_t;
+                           ^
+In file included from ../../lib/ldb/tests/test_ldb_dn.c:23:0:
+/home/buildroot/autobuild/instance-0/output-1/host/mips64el-buildroot-linux-uclibc/sysroot/usr/include/cmocka.h:132:28: note: previous declaration of 'uintptr_t' was here
+       typedef unsigned int uintptr_t;
+                            ^
+
+In file included from /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/lib/gcc/mips64el-buildroot-linux-uclibc/5.5.0/include/stdint.h:9:0,
+                 from ../../lib/tevent/tevent.h:31,
+                 from ../../lib/ldb/tests/ldb_key_value_test.c:48:
+/home/buildroot/autobuild/instance-0/output-1/host/mips64el-buildroot-linux-uclibc/sysroot/usr/include/stdint.h:122:27: error: conflicting types for 'uintptr_t'
+ typedef unsigned long int uintptr_t;
+                           ^
+In file included from ../../lib/ldb/tests/ldb_key_value_test.c:43:0:
+/home/buildroot/autobuild/instance-0/output-1/host/mips64el-buildroot-linux-uclibc/sysroot/usr/include/cmocka.h:132:28: note: previous declaration of 'uintptr_t' was here
+       typedef unsigned int uintptr_t;
+                            ^
+
+Fixes:
+ - http://autobuild.buildroot.org/results/9507739b3d5d51024ee9c60b74c2f85d5004e7e2
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[Upstream status:
+https://gitlab.com/samba-team/samba/merge_requests/1003]
+---
+ lib/ldb/tests/ldb_key_value_sub_txn_test.c | 1 +
+ lib/ldb/tests/ldb_key_value_test.c         | 1 +
+ lib/ldb/tests/ldb_lmdb_size_test.c         | 1 +
+ lib/ldb/tests/ldb_lmdb_test.c              | 1 +
+ lib/ldb/tests/ldb_no_lmdb_test.c           | 1 +
+ lib/ldb/tests/test_ldb_dn.c                | 1 +
+ source4/utils/oLschema2ldif/test.c         | 1 +
+ 7 files changed, 7 insertions(+)
+
+diff --git a/lib/ldb/tests/ldb_key_value_sub_txn_test.c b/lib/ldb/tests/ldb_key_value_sub_txn_test.c
+index e71f81b866e..1eafd2d79e9 100644
+--- a/lib/ldb/tests/ldb_key_value_sub_txn_test.c
++++ b/lib/ldb/tests/ldb_key_value_sub_txn_test.c
+@@ -37,6 +37,7 @@
+  */
+ #include <stdarg.h>
+ #include <stddef.h>
++#include <stdint.h>
+ #include <setjmp.h>
+ #include <cmocka.h>
+ 
+diff --git a/lib/ldb/tests/ldb_key_value_test.c b/lib/ldb/tests/ldb_key_value_test.c
+index 3f31bb98350..458452e5dc4 100644
+--- a/lib/ldb/tests/ldb_key_value_test.c
++++ b/lib/ldb/tests/ldb_key_value_test.c
+@@ -39,6 +39,7 @@
+  */
+ #include <stdarg.h>
+ #include <stddef.h>
++#include <stdint.h>
+ #include <setjmp.h>
+ #include <cmocka.h>
+ 
+diff --git a/lib/ldb/tests/ldb_lmdb_size_test.c b/lib/ldb/tests/ldb_lmdb_size_test.c
+index c0c4fe87204..95eba878ba7 100644
+--- a/lib/ldb/tests/ldb_lmdb_size_test.c
++++ b/lib/ldb/tests/ldb_lmdb_size_test.c
+@@ -43,6 +43,7 @@
+  */
+ #include <stdarg.h>
+ #include <stddef.h>
++#include <stdint.h>
+ #include <setjmp.h>
+ #include <cmocka.h>
+ 
+diff --git a/lib/ldb/tests/ldb_lmdb_test.c b/lib/ldb/tests/ldb_lmdb_test.c
+index 78758bbbe16..798a1916281 100644
+--- a/lib/ldb/tests/ldb_lmdb_test.c
++++ b/lib/ldb/tests/ldb_lmdb_test.c
+@@ -40,6 +40,7 @@
+  */
+ #include <stdarg.h>
+ #include <stddef.h>
++#include <stdint.h>
+ #include <setjmp.h>
+ #include <cmocka.h>
+ 
+diff --git a/lib/ldb/tests/ldb_no_lmdb_test.c b/lib/ldb/tests/ldb_no_lmdb_test.c
+index 8e5a6eee8d2..be23d744004 100644
+--- a/lib/ldb/tests/ldb_no_lmdb_test.c
++++ b/lib/ldb/tests/ldb_no_lmdb_test.c
+@@ -40,6 +40,7 @@
+  */
+ #include <stdarg.h>
+ #include <stddef.h>
++#include <stdint.h>
+ #include <setjmp.h>
+ #include <cmocka.h>
+ 
+diff --git a/lib/ldb/tests/test_ldb_dn.c b/lib/ldb/tests/test_ldb_dn.c
+index 109ee53c8ab..6faff9b7de7 100644
+--- a/lib/ldb/tests/test_ldb_dn.c
++++ b/lib/ldb/tests/test_ldb_dn.c
+@@ -19,6 +19,7 @@
+ 
+ #include <stdarg.h>
+ #include <stddef.h>
++#include <stdint.h>
+ #include <setjmp.h>
+ #include <cmocka.h>
+ 
+diff --git a/source4/utils/oLschema2ldif/test.c b/source4/utils/oLschema2ldif/test.c
+index 6748ce08c33..3834ea462fd 100644
+--- a/source4/utils/oLschema2ldif/test.c
++++ b/source4/utils/oLschema2ldif/test.c
+@@ -19,6 +19,7 @@
+ 
+ #include <stdarg.h>
+ #include <stddef.h>
++#include <stdint.h>
+ #include <setjmp.h>
+ #include <cmocka.h>
+ 
+-- 
+2.24.0
+
Signature · 1 line
2.24.0
#1 lore raw

PATCH 1/1 package/samba4: fix build with uclibc

Quoted 2 lines · On Sun, 15 Dec 2019 18:34:31 +0100 Fabrice Fontaine…

Fixes:
- autobuild.buildroot.org/results/9507739b3d5d51024ee9c60b74c2f85d5004e7e2

URL should start with http://autobuild.buildroot.org and not just autobuild.buildroot.org, otherwise it's not picked up by our statistics.

No need to resend, can be fixed when applying.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/samba4: fix build with uclibc

In reply to Fabrice Fontaine
Quoted 8 lines · On Sun, 15 Dec 2019 18:34:31 +0100 Fabrice Fontaine…

Fixes:
- autobuild.buildroot.org/results/9507739b3d5d51024ee9c60b74c2f85d5004e7e2

---
 ...0010-Include-stdint.h-before-cmoka.h.patch | 134 ++++++++++++++++++
 1 file changed, 134 insertions(+)
 create mode 100644 package/samba4/0010-Include-stdint.h-before-cmoka.h.patch

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com