|
|
#1 | |
|
Registered User
Join Date: Sep 2002
Posts: 5
|
I have downloaded the kernel SRPM and GLX RPM. When trying rpm --rebuild NVIDIA_kernel...SRPM, I receive this error (excerpt - whole error message attached (result.txt)):
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header" /usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules." /usr/include/linux/version.h:5:2: #error "" /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined" /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)" /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the" /usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be" /usr/include/linux/version.h:10:2: #error "included via other system header files - user space" /usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or" /usr/include/linux/version.h:12:2: #error "<asm/*.h> as well." /usr/include/linux/version.h:13:2: ..then follows an explanation of what I should do with the makefile (see attached file result.txt). I am not an expert on this. What is wrong? What should I do? Is there only to wait for the prebuild RPM from NVIDIA? |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Sep 2002
Posts: 5
|
...I forgot: this is regarding the NVIDIA GeForce2Go, on a freshly installed Mandrake Linux 9.0.
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Sep 2002
Posts: 2,262
|
There seem to be a lot of people getting this error.
Do you have kernel-source installed? rpm -qa | grep kernel should have it listed.
__________________
Registered Linux User #219692 |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Sep 2002
Posts: 5
|
...rpm -qa | grep kernel gave this output
kernel-2.4.19.16mdk-1-1mdk kernel-headers-2.4.18-41mdk ...does that mean that the source is installed? |
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Sep 2002
Posts: 7
|
I believe it does. And add me to the list of people suffering from this error. :/
|
|
|
|
|
|
#6 | |
|
Registered User
|
install the kernel-source as suggested. you have the
headers, and the kernel-image, but no sources... do a "ls -lad /lib/modules/`uname -r`/build" what do you see? cheers |
|
|
|
|
|
|
#7 |
|
Registered User
Join Date: Sep 2002
Posts: 7
|
Well, if that's not the whole problem, it's a big honkin' chunk of it. When I did as you asked, I got information that build was a symbolic link, and pointed to "../../../usr/src/linux-2.4.19-16mdk" Sensing something was amiss (the symlink had a red background--broken) I went to /usr/src/ and found only an RPM directory, no linux anything.
This really irritates the crap out of me, as I specifically selected development when installing Mandrake 9, and got 500 MB worth of files. I've always had kernel sources installed before when installing Mandrake, and don't know why, with 9, I wouldn't. Well, I'm off to try and install those sources... thanks very much, and I'll come back and whine some more if this doesn't help. ![]() |
|
|
|
|
|
#8 |
|
Registered User
|
devel environment doesn't necessarily mean kernel sources to be included.
if you're curious about the kernel version mandrake (and probably RH) took to build glibc do "/lib/libc.so.6". they also changed some content of those includes, therefore the error messages during compile. cheers |
|
|
|
|
|
#9 |
|
Registered User
Join Date: Sep 2002
Posts: 7
|
Well, after looking all over both CD-ROMs, I haven't been able to locate the source for the kernel... which could explain why it wasn't installed. RPMfind.net appears to be down, so I can't find the kernel source package there, and Mandrake's website doesn't seem to be helpful either. I could get the 2.4.19 source code elsewhere, but it wouldn't be the mdk version, and I don't really want to be using sources from a different version of the kernel for compiling--and I'm DEFINITELY not comfortable building and replacing my kernel myself to make it match...
So, anyone have an idea of where I can find the source for 2.4.19-16mdk? |
|
|
|
|
|
#10 |
|
Registered User
Join Date: Sep 2002
Posts: 5
|
The kernel-source rpm is found on the 3rd download ISO. if you do urpmi -ivh kernel-source..blabla.rpm, then you see that libncurses-develop-something.rpm is needed too. You find it on CD #2. After the kernel-source was installed, the NVIDIA-kernel-rpm built just fine. So it works great!
Thanks a lot for your help! ![]() |
|
|
|
|
|
#11 |
|
Registered User
Join Date: Sep 2002
Posts: 7
|
I second that. Installing the kernel sources solved all of the problems, thanks all for your help. What I wanna know is why, on an operating system where a LOT of software is compiled by the end user, they'd not make the source install by default.
![]() Thanks again! |
|
|
|
|
|
#12 |
|
Registered User
|
easy answer: the "end user" is not meant to build/compile software
that tinkers with the hardware, way toooo complicated ![]() seems to be the way distributors think (nb: kernel sources are not default on RH, SuSE, Debian...) cheers |
|
|
|
![]() |
| Thread Tools | |
|
|