Closed
Description
Per thread starting here: http://www.open-mpi.org/community/lists/devel/2014/10/16088.php, remove / update the deprecated calls. These warnings were seen in the new OS X release (Yosemite):
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);
^
@PHHargrove mentions:
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