[PATCH 1/1] Fix uClibc build on 64bit platforms by including stdint.h

Volker Lendecke Volker.Lendecke at SerNet.DE
Sun Jan 28 17:26:44 UTC 2018

On Sun, Jan 28, 2018 at 12:35:14PM +0100, Bernd Kuhls via samba-technical wrote:
> Fixes an error detected by buildroot autobuilders:
> http://autobuild.buildroot.net/results/573/573e2268e205e10d1352fa81122d8f225fdb4575/build-end.log
> /home/rclinux/rc-buildroot-test/scripts/instance-1/output/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_msg.c:17:0:
> ../third_party/cmocka/cmocka.h:126:28: note: previous declaration of 'uintptr_t' was here
>        typedef unsigned int uintptr_t;
> The define __WORDSIZE is missing when cmocka.h decides how to
> define uintptr_t, this patch includes stdint.h when needed.

Isn't that a bug in cmocka? Shouldn't cmocka include stdint.h itself?
I'm asking because our "replace.h" include already contains stdint.h,
we should never have to include that explicitly.


Besuchen Sie die verinice.XP 2018 in Berlin,
Anwenderkonferenz für Informationssicherheit
vom 21.-23.03.2018 im Sofitel Kurfürstendamm
Info & Anmeldung hier: http://veriniceXP.org

SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de

More information about the samba-technical mailing list