Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-28-02, 08:26 PM   #1
noeffort
Guest
 
Posts: n/a
Default UPDATE: Thank you Bern....<Cannot install NVIDIA_kernel.XXXX.XXXX.src or regular rpm>

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?
  Reply With Quote
Old 07-28-02, 08:35 PM   #2
Bern
Slacker
 
Bern's Avatar
 
Join Date: Jul 2002
Location: Brisvegas, Antipodes
Posts: 15
Send a message via ICQ to Bern
Default

Have you tried the .tar.gz version?
__________________
p-two.net
Bern is offline   Reply With Quote
Old 07-28-02, 08:40 PM   #3
noeffort
Guest
 
Posts: n/a
Default

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
  Reply With Quote
Old 07-28-02, 08:41 PM   #4
noeffort
Guest
 
Posts: n/a
Default

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]#
  Reply With Quote
Old 07-28-02, 08:44 PM   #5
noeffort
Guest
 
Posts: n/a
Default

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.
  Reply With Quote
Old 07-28-02, 08:51 PM   #6
noeffort
Guest
 
Posts: n/a
Default

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
  Reply With Quote
Old 07-28-02, 08:51 PM   #7
Bern
Slacker
 
Bern's Avatar
 
Join Date: Jul 2002
Location: Brisvegas, Antipodes
Posts: 15
Send a message via ICQ to Bern
Default

Have you installed the kernel source and header rpm's that match your kernel version fron the redhat cd?
__________________
p-two.net
Bern is offline   Reply With Quote
Old 07-28-02, 08:53 PM   #8
noeffort
Guest
 
Posts: n/a
Default

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!!!!

  Reply With Quote

Old 07-28-02, 09:00 PM   #9
Bern
Slacker
 
Bern's Avatar
 
Join Date: Jul 2002
Location: Brisvegas, Antipodes
Posts: 15
Send a message via ICQ to Bern
Default

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"
__________________
p-two.net
Bern is offline   Reply With Quote
Old 07-28-02, 09:01 PM   #10
noeffort
Guest
 
Posts: n/a
Default

Thanks Bern...

/shuffles around looking for those darn install discs

  Reply With Quote
Old 07-30-02, 01:07 AM   #11
noeffort
Guest
 
Posts: n/a
Default

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!
  Reply With Quote
Old 12-17-02, 09:03 AM   #12
saqer
Registered User
 
Join Date: Dec 2002
Location: USA
Posts: 81
Default

hi every body,

I have had the same problem.

I have the src kernel installed, but what is the kernel-dev??
saqer is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Windows 8 upgrade install experience News Archived News Items 0 10-25-12 02:10 PM
Mageia 2 Cannot Install 71.86.15 for Riva TNT/TNT2 kbulgrien NVIDIA Linux 3 06-29-12 09:27 AM
Redhat 8.0 NVIDIA works - INSTRUCTIONS STEEL1 NVIDIA Linux 267 04-15-03 07:48 PM
nForce + RedHat 7.3 Success Story rtz NVIDIA Linux 47 02-15-03 03:20 AM
Red Hat null(limbo beta 3), guide to install Nvidia Drivers utiel NVIDIA Linux 21 09-30-02 06:32 PM

All times are GMT -5. The time now is 04:50 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.