Skip to content
Prev 14443 / 15075 Next

Symbol not found: _timespec_get

On 04/04/2023 18:45, Tomas Kalibera wrote:
'they' probably cannot run R to run sessionInfo().  Use 'About this Mac' 
from the Apple menu to find the version without R.

The header has

__API_AVAILABLE(macosx(10.15), ios(13.0), tvos(13.0), watchos(6.0))
int timespec_get(struct timespec *ts, int base);

which says timespec_get is available from macOS 10.15 (Catalina)

We have had trouble with this before: configure.ac says

## timespec_get is C11.
## macOS added timespec_get in 10.15 but used 10.15's SDK for 10.14 
(Darwin 18)

and it skips detection for Darwin <= 18.
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford