strace-4.6 failed to build with clang-3.0

Dmitry V. Levin ldv at
Sun Jan 15 00:52:06 UTC 2012


On Sun, Jan 15, 2012 at 03:12:50AM +0300, Alexander Kolesen wrote:
> Hello.
> I've tried to build strace-4.6 with clang-3.0 and got the following
> error:
>   /usr/bin/clang -DHAVE_CONFIG_H -I.  -I./linux/x86_64 -I./linux -I./linux  -Wall -Wwrite-strings -O2 -pipe -MT strace.o -MD -MP -MF .deps/strace.Tpo -c -o strace.o strace.c
>   strace.c:102:8: error: unknown type name 'bool'
>   static bool daemonized_tracer = 0;
> When the configure script was running, i've got:
>   checking for stdbool.h that conforms to C99... no
> It happens because configure test for stdbool.h is failing on
> clang-3.0. I've attached the patch that fixes the issue.

The test for stdbool.h is implemented by autoconf's AC_HEADER_STDBOOL.

Try this simple file:
$ cat 

$ autoconf && ./configure

If it fails to test stdbool.h properly, please contact bug-autoconf
mailing list.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <>

More information about the Strace-devel mailing list