Red Hat Bugzilla – Bug 64121
Typo on line 299 of /usr/src/linux-2.4.18-0.22/include/linux/module.h
Last modified: 2007-04-18 12:42:20 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Description of problem:
I believe there is a typo on line 299 of the /usr/src/linux-2.4.18-
0.22/include/linux/module.h file. The second quotation should come just before
the semicolon and not just after the equal sign as it is in the beta test
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Edit the file and look.
Humm it actually looks correct
it basically creates a string which is "kernel_version=2.4.18-0.22";
C allows 2 string constants to be consecutive and then concatinates them
On my system the line reads:
This caused the compiler to error out with something like 'Parse error before
UTS_RELEASE' When I changed the line to read like this:
the compiler was happy.
The compiler might be happy but it's wrong.
UTS_RELEASE is a string with the kernel version number, and that needs to be
concatinated there, eg to create "kernel_version=2.4.18-0.22".
Now UTS_RELEASE is from version.h which is autogenerated at build time;
could you say how you are building the kernel since I get the idea something is
going funny there that causes a weird version.h to be present
I'm not actually building the kernel, I'm building the linux-wlan-ng package
which requires the kernel and pcmcia-cs sources (which it borrows files from).
linux-wlan-ng is broken then.
It should not ever depend on the kernel sources.
It can use the glibc headers (from glibc-devel and glibc-kernheaders).....