dc3dd fails with illegal instruction on macOS 10.13
Brought to you by:
josephlininger,
mlevendo
Building dc3dd 7.2.646 from source on macOS 10.13 fails with:
Making all in man
Updating man page dc3dd.1
help2man: can't get `--version' info from dc3dd.td/dc3dd
make[2]: *** [dc3dd.1] Error 255
This is because dc3dd segfaults due to illegal instruction (Illegal instruction: 4'; '%n used in a non-immutable format string), in lib/vasnprintf.c. This “feature” was introduced by Apple, which since macOS 10.13 disallows the use of %n printf format in dynamic strings.
gnulib has been patched to avoid this (https://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00056.html), so a newer gnulib version should be imported into dc3dd.
We do not have access to a system running MacOS. can someone determine if DC3DD 7.3.1 compiles on MacOS and comment on this issue? The glib issue might have been solved since we did some work on that for version 7.3.
This doesn't appear to be an active issue for the current community. Please feel free to refile if this bug is encountered with the current version 7.3.1. Closing.