Indeed, those warnings were seen on a Mac running Yosemite.

> On Oct 24, 2014, at 2:04 PM, Paul Hargrove <phhargr...@lbl.gov> wrote:
> 
> I can shed some light on these warnings.
> 
> sem_init() and sem_destroy() are POSIX-defined interfaces for UNNAMED 
> semaphores.
> There are also POSX interfaces, sem_{open,close,unlink}(), that operate on 
> NAMED semaphores.
> See for more info:
>    http://pubs.opengroup.org/onlinepubs/009695399/basedefs/semaphore.h.html 
> <http://pubs.opengroup.org/onlinepubs/009695399/basedefs/semaphore.h.html>
> 
> According to the following link Mac OSX only implements the NAMED semaphores 
> and I would guess they are now deprecating the ones that just return -1 and 
> set errno=ENOSYS:
>   http://stackoverflow.com/questions/1413785/sem-init-on-os-x 
> <http://stackoverflow.com/questions/1413785/sem-init-on-os-x>
> 
> -Paul
> 
> 
> On Fri, Oct 24, 2014 at 1:45 PM, Edgar Gabriel <gabr...@cs.uh.edu 
> <mailto:gabr...@cs.uh.edu>> wrote:
> Yes, will have a look at it next week.
> 
> Thanks
> Edgar
> 
> On 10/24/2014 12:01 PM, Jeff Squyres (jsquyres) wrote:
> Edgar -- can you have a look?
> 
> 
> On Oct 24, 2014, at 12:04 PM, Ralph Castain <r...@open-mpi.org 
> <mailto:r...@open-mpi.org>> wrote:
> 
> I’m not sure who owns that framework, but I’m seeing this warning:
> 
> sharedfp_sm_file_open.c: In function 'mca_sharedfp_sm_file_open':
> sharedfp_sm_file_open.c:159:5: warning: 'sem_init' is deprecated (declared at 
> /usr/include/sys/semaphore.h:55) [-Wdeprecated-declarations]
>       if(sem_init(&sm_offset_ptr->mutex, 1, 1) != -1){
>       ^
> sharedfp_sm_file_open.c: In function 'mca_sharedfp_sm_file_close':
> sharedfp_sm_file_open.c:214:13: warning: 'sem_destroy' is deprecated 
> (declared at /usr/include/sys/semaphore.h:53) [-Wdeprecated-declarations]
>               sem_destroy(&file_data->sm_offset_ptr->mutex);
>               ^
> 
> 
> This is with gcc (MacPorts gcc49 4.9.1_0) 4.9.1
> Ralph
> 
> _______________________________________________
> devel mailing list
> de...@open-mpi.org <mailto:de...@open-mpi.org>
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel 
> <http://www.open-mpi.org/mailman/listinfo.cgi/devel>
> Link to this post: 
> http://www.open-mpi.org/community/lists/devel/2014/10/16088.php 
> <http://www.open-mpi.org/community/lists/devel/2014/10/16088.php>
> 
> 
> 
> -- 
> Edgar Gabriel
> Associate Professor
> Parallel Software Technologies Lab      http://pstl.cs.uh.edu 
> <http://pstl.cs.uh.edu/>
> Department of Computer Science          University of Houston
> Philip G. Hoffman Hall, Room 524        Houston, TX-77204, USA
> Tel: +1 (713) 743-3857 <tel:%2B1%20%28713%29%20743-3857>                  
> Fax: +1 (713) 743-3335 <tel:%2B1%20%28713%29%20743-3335>
> _______________________________________________
> devel mailing list
> de...@open-mpi.org <mailto:de...@open-mpi.org>
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel 
> <http://www.open-mpi.org/mailman/listinfo.cgi/devel>
> Link to this post: 
> http://www.open-mpi.org/community/lists/devel/2014/10/16090.php 
> <http://www.open-mpi.org/community/lists/devel/2014/10/16090.php>
> 
> 
> 
> -- 
> Paul H. Hargrove                          phhargr...@lbl.gov 
> <mailto: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/10/16091.php

Reply via email to