Bug 14218 - Build failure on uclibc with samba 4.11
Summary: Build failure on uclibc with samba 4.11
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.11.2
Hardware: All Linux
: P5 critical (vote)
Target Milestone: ---
Assignee: Karolin Seeger
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-16 09:17 UTC by Fabrice Fontaine
Modified: 2020-01-15 09:28 UTC (History)
1 user (show)

See Also:


Attachments
fix for 4.11.next (6.77 KB, patch)
2019-12-19 21:09 UTC, Uri Simchoni
asn: review+
uri: ci-passed+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabrice Fontaine 2019-12-16 09:17:09 UTC
stdint.h must be included before cmoka.h to avoid the following build failures on uclibc:

[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;
                            ^

More information can be found here: http://autobuild.buildroot.org/results/9507739b3d5d51024ee9c60b74c2f85d5004e7e2

Merge Request can be found here: https://gitlab.com/samba-team/samba/merge_requests/1003
Comment 1 Uri Simchoni 2019-12-19 21:09:54 UTC
Created attachment 15715 [details]
fix for 4.11.next
Comment 2 Uri Simchoni 2019-12-20 18:53:04 UTC
Assigning to Karolin for 4.11.next
Comment 3 Karolin Seeger 2020-01-14 08:22:40 UTC
(In reply to Uri Simchoni from comment #2)
Pushed to autobuild-v4-11-test.
Comment 4 Karolin Seeger 2020-01-15 09:28:42 UTC
(In reply to Karolin Seeger from comment #3)
Pushed to v4-11-test.
Closing out bug report.

Thanks!