strace-4.6 failed to build with clang-3.0

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


Hi,

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 configure.ac file:
$ cat configure.ac 
AC_INIT
AC_HEADER_STDBOOL

with
$ autoconf && ./configure

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


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20120115/b12f4a64/attachment.bin>


More information about the Strace-devel mailing list