Bugzilla – Bug 117759
/usr/include/linux/threads.h broken (missing CONFIG_BASE_SMALL)?
Last modified: 2006-01-17 15:20:54 UTC
I'm unable to compile linux test project in SL10 because the kernel tests are using PID_MAX_DEFAULT macro from <linux/threads.h>. However PID_MAX_DEFAULT is using CONFIG_BASE_SMALL macro which is not defined in this scope.
Fix linux test project. <linux/*> and <asm/*> header files should never be included from userland sources.
thanks. sorry for annoying. we will fix it. gernot: should I fix this somehow? The problem is in the kernel/syscall testcases. For some of the tests -1 could be used instead of PID_MAX_DEFAULT+1. However in others it would be better to use some positive value (in this way the test will test more code than just some "if (pid != -1) return -EINVAl;" constructs). Unfortunately this seems to be quite difficult. I talked with some guys from suse labs and the only thing we made up is the /proc/sys/kernel/pid_max file. However this file does not exist in 2.4 kernels (SLES8) :-)
seems to be fixed in latest ltp from /work/SRC