bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Error compiling on Mac OS X 10.13.6


From: Dr . Jürgen Sauermann
Subject: Re: [Bug-apl] Error compiling on Mac OS X 10.13.6
Date: Mon, 29 Apr 2019 18:41:23 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

Hi,

after investigating the link below that was kindly provided by Jay, it seems like
sem_init() is not only deprecated on Darwin, but entirely broken.

I have changed the implementation in SVN 1144 to use named semaphores on
all systems that raise a warning when sem_init() is being used (supposedly including
Darwin but maybe other Apples as well).

In order to to properly detect if sem_init() works on your system, the warning
-Wdeprecated MUST NOT BE DISABLED (e.g. by means of -Wno
deprecated
or similar).

For this change, ./configure is needed after updating from SVN.

GNU/Linux systems are not affected by this problem.

Best Regards,
/// Jürgen


On 4/29/19 11:36 AM, Dr. Jürgen Sauermann wrote:
Hi Jay,

thanks a lot. I will look into using sem_open() instead of sem_init().

/// Jürgen


On 4/29/19 10:15 AM, Jay Foad wrote:
According to stackoverflow, Darwin doesn't support unnamed semaphores, so sem_init is deprecated and always returns failure, and you should use named semaphores (sem_open) instead.


Jay.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]