slibtoolize fails on macOS in slbt_realpath #83
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Building and running slibtoolize 0.7.3 on a macOS system results in the following error:
This was compiled on a macOS system using:
(On macOS, it appears that
-D_XOPEN_SOURCE=700is not sufficient to makestrftime_lavailable,-D_USE_EXTENDED_LOCALES_is needed.)I think the error in
slibtoolizeis due to/procfilesystem not being present in macOS, which theslbt_realpathimplementation assumes is present. I confirmed I was able to work around this after adding an early return using POSIXrealpath(3).After recompiling, execution seems to work:
The seemingly obvious (to me) fix is to use POSIX realpath when it's available, but I'm wondering if there's some reason that this would not be suitable.