From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.1-0.1.9 i686) I was attempting to compile some drivers code on RC1 and it returned following errors for #include <linux/modversions.h>. The /usr/include/linux/modversions.h file contains only these lines: #error Modules should never use kernel-headers system headers, #error but headers from an appropriate kernel-source I downloaded Kerbel 2.4.2 code from kernel.org and compiled it myself and it produced a modversion.h file with proper incldues. My question? Has RedHat decided to delete the contents of modversions.h file and pack it with kernel RPM? This is really weird because it breaks a lot of source code which use #include <linux/modversions.h>. Suhaib Reproducible: Always Steps to Reproduce: 1.compile nidia kernel driver code 2. 3. Actual Results: I was attempting to compile some drivers code on RC1 and it returned following errors for #include <linux/modversions.h>. The /usr/include/linux/modversions.h file contains only these lines: #error Modules should never use kernel-headers system headers, #error but headers from an appropriate kernel-source I downloaded Kerbel 2.4.2 code from kernel.org and compiled it myself and it produced a modversion.h file with proper incldues. My question? Has RedHat decided to delete the contents of modversions.h file and pack it with kernel RPM? This is really weird because it breaks a lot of source code which use #include <linux/modversions.h>. Suhaib Expected Results: the contents of /usr/include/linux/modversions.h should not be deleted. End user need it to compile code, or every RedHat Linux end user will end up installing Kernel sources and recompiling it to generate a proper modversions file. Fix it please!!!!!!!!!!!!!!!!!!!! You will be breaking millions/zillions and trillions of source code out there!!!!
The Linux industry standard, which Red Hat Linux follows, uses /lib/modules/`uname -r`/build/include as the include directory for building modules.