On Mon, Nov 24, 2014 at 11:53:11AM -0500, Stephan, Richard wrote:

> Thank you for your help in diagnosing the problem.  And the information about 
> not putting additional software in /opt/local.
> 
> The make process unfortunately failed again.
> 
> Making all in src
> make[1]: Entering directory '/home/rstephan/hdf5-1.8.14/src'
> make  all-am
> make[2]: Entering directory '/home/rstephan/hdf5-1.8.14/src'
>   CC       H5detect.o
> H5detect.c:115:19: warning: size of 'd_g' is 12800 bytes [-Wlarger-than=]
> H5detect.c:149:1: error: unknown type name 'sigjmp_buf'
> H5detect.c: In function 'sigsegv_handler':
> 
> ***********
> # grep sigjmp_buf /usr/include/setjmp.h
> typedef long sigjmp_buf[_SIGJBLEN];
> typedef int sigjmp_buf[_SIGJBLEN];
> extern int sigsetjmp(sigjmp_buf, int) __RETURNS_TWICE;
> extern void siglongjmp(sigjmp_buf, int) __NORETURN;
> 
> # grep setjmp.h src/H5detect.c
> 
> ************

> There seems to be more issues with missing includes.

Yep.  You'll need to include that.  You'll also need to make sure the
right compilation flags are being used; if simply including that header
doesn't help, you need to make sure that either:

- you're not using C99 here (i.e., you don't have -std=c99), or
- you have -D_POSIX_C_SOURCE=200112L in your preprocessor flags.

This is because, as required by standards, this type is exposed only
when __XOPEN_OR_POSIX or __EXTENSIONS__ are defined.  See
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/setjmp.h.html
and
http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_02.html.

If just including it works, then the authors have already addressed
these concerns.

Welcome to porting!


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to