Home
>
linux > Compiling Linux 2.6.33 on Ubuntu
Compiling Linux 2.6.33 on Ubuntu
When trying to compile a 2.6.33 kernel on Ubuntu nowadays, you’ll run into this problem:
The UTS Release version in include/linux/version.h
""
does not match current version:
"2.6.33-<appended-string>"
Please correct this.
This would not be soo bad, if it wouldn’t fail after compiling (and by that wasting a lot of cpu time …).
To avoid this error, fix the file /usr/share/kernel-package/ruleset/misc/version_vars.mk
And replace this code
UTS_RELEASE_HEADER=$(call doit,if [ -f include/linux/utsrelease.h ]; then \
echo include/linux/utsrelease.h; \
else \
echo include/linux/version.h ; \
fi)
with this one
UTS_RELEASE_HEADER=$(call doit,if [ -f include/generated/utsrelease.h ]; then \
echo include/generated/utsrelease.h; \
elif [ -f include/linux/utsrelease.h ]; then \
echo include/linux/utsrelease.h; \
else \
echo include/linux/version.h; \
fi)
(Source: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561569 )
When trying to compile a 2.6.33 kernel on Ubuntu nowadays, you'll run into this problem:
The UTS Release version in include/linux/version.h
""
does not match current version:
"2.6.33-<appended-string>"
Please correct this.
This would not be soo bad, if it wouldn't fail after compiling (and by that wasting a lot of cpu time ...).
To avoid this error, fix the file /usr/share/kernel-package/ruleset/misc/version_vars.mk
And replace this code
UTS_RELEASE_HEADER=$(call doit,if [ -f include/linux/utsrelease.h ]; then \
echo include/linux/utsrelease.h; \
else \
echo include/linux/version.h ; \
fi)
with this one
UTS_RELEASE_HEADER=$(call doit,if [ -f include/generated/utsrelease.h ]; then \
echo include/generated/utsrelease.h; \
elif [ -f include/linux/utsrelease.h ]; then \
echo include/linux/utsrelease.h; \
else \
echo include/linux/version.h; \
fi)
(Source: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561569 )
Great, helped me a lot. Thanks
Hi,
this is not a bug in the linux kernel but in in kernel-package. Therefore you should install the latest version of kernel-package rather than change the kernel to work with the bug
cu
mathias
@mathiase
This IS a fix for kernel-package (have a look at the edited file), an update of kernel-package is still not officially available for Ubuntu karmic.
Good news for those of you, who use the proprietary nVidia driver (which previously failed to build on 2.6.33):
The certified version 195.36.15 now checks for the correct files! Use this to avoid problems.
thanks robert helped me a lot …