Created attachment 451154 [details] emerge --info output Trying to emerge dosemu (stable on amd64), it fails with this error message: configure: error: Sorry, you need glibc-2.1.3 or newer. But the version of glibc installed on this system is newer: glibc: Installed versions: 2.22-r4 Attaching emerge --info and also the file work/dosemu/config.log as prompted by the bug message.
Created attachment 451156 [details] work/dosemu/config.log
config.log unfortunately doesn't cache values for its glibc version test. What does 'printf '%b\n' '#include <features.h>\nXXAaZZ __GLIBC__ XXBbZZ __GLIBC_MINOR__'|gcc -E -|awk '/XXAaZZ/ {print $2 " " $4}'' return ?
Thanks. The command returns nothing, an empty line.
Same here. Is your /bin/sh non-bash by chance? Seems default-configure needs /bin/bash, not just /bin/sh. I'll tweak it.
Oh, the real bug here is how preprocessor returns a value nowadays: $ printf '%b\n' '#include <features.h>\nXXAaZZ __GLIBC__ XXBbZZ __GLIBC_MINOR__'|cc -E - # 2 "<stdin>" 2 XXAaZZ # 2 "<stdin>" 3 4 2 # 2 "<stdin>" XXBbZZ # 2 "<stdin>" 3 4 23 The awk '/XXAaZZ/ {print $2 " " $4}' won't be able to catch it because it assumes result will take single line.
There was another issue with extern inline function on modern gcc on old dosemu version. Ive stabilized new version and removed old completely: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0f5913304145e6ddcf949b75eafc347a98e781f