Error when cross-compiling makekeys
Submitted by Ross Burton
Assigned to Xorg Project Team
When cross-compiling makekeys on an older host (CentOS 5, for example):
makekeys-makekeys.o: In function
main': makekeys.c:(.text+0x85): undefined reference to__isoc99_sscanf'
makekeys.c:(.text+0xa7): undefined reference to `__isoc99_sscanf'
makekeys.c doesn't include config.h (as that has target information, not host) and this old libc doesn't expose these functions without _GNU_SOURCE.
We're working around this by passing -D_GNU_SOURCE when compiling makekeys, but Daniel Stone informed me that won't be acceptable upstream as it could potentially break/not work on Solaris.