Description of problem: /usr/include/asm/param.h (included in glibc-kernheaders-2.4-8.36) defines HZ as sysconf(_SC_CLK_TCK) but doesn't include unistd.h, where the _SC_CLK_TCK is defined. This at least breaks the compilation of graphviz 1.10. To Fix: apply this patch @@ -2,6 +2,7 @@ #define _ASMi386_PARAM_H #ifndef HZ +#include <unistd.h> #define HZ sysconf(_SC_CLK_TCK) #endif Version-Release number of selected component (if applicable): glibc-kernheaders-2.4-8.36 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
I'd like to make the observation that this change (now appearing in glibc-kernheaders-2.4-8.41) breaks the compilation of inetutils-1.4.2 from ftp.gnu.org revoke.c:15: error: conflicting types for `revoke' /usr/include/unistd.h:810: error: previous declaration of `revoke' make[2]: *** [revoke.o] Error 1 This would suggest that the change may be bogus. Or it may just mean the inetutils package is broken.
inetutils is broken I suspect; after all why include a private kernel header if you can't deal with a posix namespace...
Yep, I've looked into it a bit deeper. Your suspicions are correct. This header change just exposed a latent bug in inetutils methinks. Every other package I've compiled so far has been fine. Sorry for wasting your time.
This issue has been fixed in glibc-kernheaders from at least release 2.4-8.41.