strace-4.6 failed to build with clang-3.0
kolesen.a at gmail.com
Sun Jan 15 16:27:36 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 configure.ac file:
> $ cat configure.ac
> $ autoconf && ./configure
> If it fails to test stdbool.h properly, please contact bug-autoconf
> mailing list.
Regeneration of ./configure script with autotools before running fixes the issue.
Now strace builds with clang successfully.
More information about the Strace-devel