When trying to emerge the latest stable coreutils, 5.0.91-r2, the process fails with "possibly undefined macro" errors. Reproducible: Always Steps to Reproduce: 1. emerge -u coreutils Actual Results: This is displayed on screen: >>> Source unpacked. compile eutils flag-o-matic nls configure.ac:31: warning: gl_CHECK_HEADER_fcntl_ is m4_require'd but is not m4_defun'd configure.ac:31: warning: gl_CHECK_HEADER_l_h is m4_require'd but is not m4_defun'd configure.ac:31: warning: gl_CHECK_HEADER_limits_ is m4_require'd but is not m4_defun'd configure:11657: error: possibly undefined macro: gl_CHECK_HEADER_fcntl_ If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure:14049: error: possibly undefined macro: gl_CHECK_HEADER_l_h configure:26245: error: possibly undefined macro: gl_CHECK_HEADER_limits_ !!! ERROR: sys-apps/coreutils-5.0.91-r2 failed. !!! Function src_compile, Line 107, Exitcode 1 !!! (no error message) Expected Results: emerge should have installed and/or updated coreutils cleanly.
Upgrade m4 to the latest revision (sys-devel/m4-1.4-r1).
That did it, thank you! However, doesn't that mean m4 should be a dependency of coreutils? Originally emerge was trying to update m4 after coreutils.
Should be changed, yes. I have to talk to the core-maintainers. Nevertheless, this bug is fixed ;)