View Full Version : Can't install NVIDIA_kernel.XXXX.XXXX.src or regular rpm
noeffort
07-28-02, 07:26 PM
I get different messages depending upon the way Im trying to compile or use rpm.
I have mainly tracked it down to the inability for the compiler to reference the file:
/usr/lib/asm/fixmap.h
OhhhhK...
I have searched and searched. Im no dummy, I have a meaningful understanding of how this stuff works, and have compiled before. but if I dont have the right header file, then I dont have it!
Where do I get it?
Or, is there a "safe" workaround. Before I started delving into editing the reference .c's and .h's that point to fixmap.h I figured I better start asking around first.
I have 2.4.18-3 kernel that came with RedHat 7.3
I have removed any attempts to apply packages, updates (had updated to -5 but reverted and uninstalled that kernel)
I'm wondering if I need to reinstall RedHat with the full complement of development tools, libraries and headers (there's a big duh...) But I would like to avoid that if possible.
Anyone got any thoughts?
Have you tried the .tar.gz version?
noeffort
07-28-02, 07:40 PM
Yes sir
:):)
I just booted back into Linux right now after posting cuz i realized I didnt have my error messages, Ill post them now
noeffort
07-28-02, 07:41 PM
Here is the full message text of errors
root@dogma NVIDIA_kernel-1.0-2960]# make install -i
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from /usr/include/linux/vmalloc.h:8,
from nv-linux.h:29,
from nv.c:27:
/usr/include/asm/pgtable.h:17:24: asm/fixmap.h: No such file or directory
In file included from nv-linux.h:53,
from nv.c:27:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from nv.c:41:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
In file included from nv.c:42:
/usr/include/linux/interrupt.h:44:25: asm/hardirq.h: No such file or directory
/usr/include/linux/interrupt.h:45:25: asm/softirq.h: No such file or directory
nv.c:57:53: asm/uaccess.h: No such file or directory
nv.c:59:51: asm/softirq.h: No such file or directory
In file included from /usr/include/linux/highmem.h:5,
from nv.c:63:
/usr/include/asm/pgalloc.h:6:24: asm/fixmap.h: No such file or directory
make: [nv.o] Error 1 (ignored)
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960 -I. -I/usr/src/linux/include -Wno-cast-qual os-interface.c
In file included from /usr/include/linux/vmalloc.h:8,
from nv-linux.h:29,
from os-interface.c:39:
/usr/include/asm/pgtable.h:17:24: asm/fixmap.h: No such file or directory
In file included from nv-linux.h:53,
from os-interface.c:39:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from os-interface.c:45:
/usr/include/linux/interrupt.h:44:25: asm/hardirq.h: No such file or directory
/usr/include/linux/interrupt.h:45:25: asm/softirq.h: No such file or directory
In file included from os-interface.c:46:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
os-interface.c:58:73: asm/uaccess.h: No such file or directory
make: [os-interface.o] Error 1 (ignored)
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960 -I. -I/usr/src/linux/include -Wno-cast-qual os-registry.c
In file included from /usr/include/linux/module.h:20,
from os-registry.c:45:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
make: [os-registry.o] Error 1 (ignored)
ld -r -o Module-linux nv.o os-interface.o os-registry.o
ld: cannot open nv.o: No such file or directory
make: [Module-linux] Error 1 (ignored)
ld -r -o NVdriver Module-linux Module-nvkernel
ld: cannot open Module-linux: No such file or directory
make: [NVdriver] Error 1 (ignored)
size NVdriver
size: NVdriver: No such file or directory
make: [NVdriver] Error 1 (ignored)
/usr/bin/install: cannot stat `NVdriver': No such file or directory
make: [package-install] Error 1 (ignored)
[root@dogma NVIDIA_kernel-1.0-2960]#
noeffort
07-28-02, 07:44 PM
Pardon, the path/to/includes/ =
/usr/include/linux
however I have down a full search of the entire drive and the gcc is correct is stating it cannot find not only the fixmap.h but the others listed there is the error message output.
noeffort
07-28-02, 07:51 PM
Ok, let me restart :)
First, the autoconf.h only has the one line:
#error Invalid kernel header included in userspace
Second, broken references to headers as noted by error message:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
Third, missing header files:
fixmap.h
/usr/include/linux/interrupt.h:44:25: asm/hardirq.h: No such file or directory
/usr/include/linux/interrupt.h:45:25: asm/softirq.h: No such file or directory
etc etc etc...
TIA
Have you installed the kernel source and header rpm's that match your kernel version fron the redhat cd?
noeffort
07-28-02, 07:53 PM
That was what I was wondering in the first original question...
Thinking I need to pop in the CD's and choose a full install of all dev files
Is that what you mean?
Cuz I believe I can "add files" rather than having to wipe out this install, correct?
And just add all package includes for kernel headers and src.rpm headers...
I figure that is what you mean, correct?
Thanks you all for quick replies! I found a new home!!!!
:)
Install the kernel-dev and kdenel-src rpm's that have the same version as your working kernel (check with the command "uname -a"). You can install individual rpm's with the command "rpm -Ivh <file-name>.rpm"
noeffort
07-28-02, 08:01 PM
Thanks Bern...
/shuffles around looking for those darn install discs
:)
noeffort
07-30-02, 12:07 AM
Bern, you were exactly correct.
The libraries needed to be installed, since I went with a light weight (PHP and perl only) dev package, I didnt get the libs for everything else.
Thanks... all running on the first try.
:)
Knew it had to be something that we make say "doy" /smack head!
hi every body,
I have had the same problem.
I have the src kernel installed, but what is the kernel-dev??
Andy Mecham
12-17-02, 09:51 AM
This is covered in the README. You need to install your kernel sources. It's often called kernel-source-VERSION.rpm.
--andy
As I said, I have the kernel source already installed
-------------------------------------------------
$ rpm -qa | grep kernel
kernel-2.4.18-14
kernel-source-2.4.18-18.8.0
kernel-utils-2.4-8.13
kernel-pcmcia-cs-3.1.31-9
kernel-doc-2.4.18-14
kernel-debug-2.4.18-14
kernel-2.4.18-18.8.0
kernel-uml-2.4.18-14
Since you have another thread going on this problem, please do not add replies in this one, as we can all see all the threads here. Thank you very much, I'm sure you understand that it makes tracking problems, suggestions, and such much easier when they're all in one place.
And I have replied to your other thread.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.