Subject: | unknown type name 'sigjmp_buf' Solaris 10, gcc 4.7.2 |
Still installing on perl 5.16.3 built with GNU tools, among which gcc 4.7.2
Getting now (once passed the unknown type name 'off64_t' error):
Compress-Bzip2-2.13> gcc -c -D_REENTRANT -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O -DVERSION=\"2.13\" -DXS_VERSION=\"2.13\" -fPIC -I/vobs/cello/cade_A_tools_perl/lib/5.16.3/arch-thread-multi/CORE -I/usr/include -std=c89 Bzip2.c
In file included from /vobs/cello/cade_A_tools_perl/lib/5.16.3/arch-thread-multi/CORE/perl.h:3447:0,
from Bzip2.xs:4:
/vobs/cello/cade_A_tools_perl/lib/5.16.3/arch-thread-multi/CORE/cop.h:34:5: error: unknown type name 'sigjmp_buf'
Now, I cannot see what to do.
Show quoted text
CORE> grep -l sigjmp_buf *
config.h
uconfig.h
Show quoted textCORE> grep -nB2 sigjmp_buf config.h
2300-#define HAS_SIGSETJMP /**/
2301-#ifdef HAS_SIGSETJMP
2302:#define Sigjmp_buf sigjmp_buf
and the definition comes from /usr/include/setjmp.h
#if defined(_LP64) || defined(_I32LPx)
typedef long sigjmp_buf[_SIGJBLEN];
#else
typedef int sigjmp_buf[_SIGJBLEN];
#endif
There is a condition (even assuming __STDC__):
#if !defined(_STRICT_STDC) || defined(__XOPEN_OR_POSIX) || \
defined(__EXTENSIONS__)
Marc