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

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

-Paul


On Fri, Oct 24, 2014 at 1:45 PM, Edgar Gabriel <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> 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
>>> Subscription: 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
>>>
>>
>>
>>
> --
> Edgar Gabriel
> Associate Professor
> Parallel Software Technologies Lab      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                  Fax: +1 (713) 743-3335
> _______________________________________________
> 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/
> 16090.php
>



-- 
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

Reply via email to