[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem detecting libsigsegv on gawk 4.0.0 on Solaris 9 Sparc w/Sun
From: |
Dagobert Michelsen |
Subject: |
Re: Problem detecting libsigsegv on gawk 4.0.0 on Solaris 9 Sparc w/Sun Studio 12 |
Date: |
Sat, 2 Jul 2011 12:05:23 +0200 |
Hi,
Am 02.07.2011 um 11:18 schrieb Dagobert Michelsen:
> 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.
Sorry to f'up myself, the addition of inttypes.h works only when -Xc is not
specified to the compiler (I reran a manual configure without any flags after
patching), but omitting -Xc does not set __STDC__ to 1, and that prohibits
compilation of gawk.
Best regards
-- Dago