Re: [OMPI devel] [1.8.2rc3] Build failure on FreeBSD (missing header)

2014-08-01 Thread Ralph Castain
Thanks Paul - added and cmr'd


On Jul 31, 2014, at 11:23 PM, Paul Hargrove  wrote:

> 
> /home/phargrov/OMPI/openmpi-1.8.2rc3-freebsd10-amd64/openmpi-1.8.2rc3/orte/mca/ess/base/ess_base_std_app.c:412:36:
>  error: use of undeclared identifier 'S_IRUSR'
> fd = open(myfile, O_CREAT, S_IRUSR);
>^
> 
> To fix this it was sufficient to add the following 3 lines in the obvious 
> place in ess_base_std_app.c
> 
> #ifdef HAVE_SYS_STAT_H
> #include 
> #endif
> 
> 
> -Paul
> 
> 
> -- 
> Paul H. Hargrove  phhargr...@lbl.gov
> Future Technologies Group
> Computer and Data Sciences Department Tel: +1-510-495-2352
> Lawrence Berkeley National Laboratory Fax: +1-510-486-6900
> ___
> devel mailing list
> de...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post: 
> http://www.open-mpi.org/community/lists/devel/2014/08/15435.php



[OMPI devel] [1.8.2rc3] Build failure on FreeBSD (missing header)

2014-08-01 Thread Paul Hargrove
/home/phargrov/OMPI/openmpi-1.8.2rc3-freebsd10-amd64/openmpi-1.8.2rc3/orte/mca/ess/base/ess_base_std_app.c:412:36:
error: use of undeclared identifier 'S_IRUSR'
fd = open(myfile, O_CREAT, S_IRUSR);
   ^

To fix this it was sufficient to add the following 3 lines in the obvious
place in ess_base_std_app.c

#ifdef HAVE_SYS_STAT_H
#include 
#endif


-Paul


-- 
Paul H. Hargrove  phhargr...@lbl.gov
Future Technologies Group
Computer and Data Sciences Department Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory Fax: +1-510-486-6900