Hi,
I am trying to compile gawk 4.0.0 on Solaris 9 Sparc with Sun Studio 12 and
noticed that the presence of libsigsegv is not properly detected:
> configure:9825: checking for libsigsegv
> configure:9847: /opt/SUNWspro/bin/cc -o conftest -xO3 -m32 -xarch=386 -Xc
> -I/opt/csw/include -m32 -xarch=386 -L/opt/csw/lib conftest.c
> /opt/csw/lib/libsigsegv.so -R/opt/csw/lib -lm >&5
> "/usr/include/ia32/sys/reg.h", line 297: syntax error before or at: uint64_t
This is due to a missing include in the detection code as a definition of
uint64_t
is missing. This could be solved by including inttypes.h in the testcode.
> | #define HAVE_LIBM 1
> | /* end confdefs.h. */
> | #include <sigsegv.h>
#include <inttypes.h> <- adding this works
> | int
> | main ()
> | {
> | sigsegv_deinstall_handler();
> | ;
> | return 0;
> | }
As this is the expansion of gl_LIBSIGSEGV I cc'ed bug-gnulib.
Best regards
-- Dago
--
"You don't become great by trying to be great, you become great by wanting to
do something,
and then doing it so hard that you become great in the process." - xkcd #896