LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-24-2002, 05:16 AM   #1
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Rep: Reputation: 15
Updating nVidia drivers error


I have downloaded the latest nvidia drivers (2880) and tried updating my RH7.2 system, but get the following error when
running the make install command:

-------------------------------
In file included from nv.c:22:

/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: *** [nv.o] Error 1
--------------------------------

The nvidia site has this in their FAQ, but it doesn't really help a newbie like me:

Q: Installing the NVIDIA_kernel module gives an error message like:
#error Modules should never use kernel-headers system headers
#error but headers from an appropriate kernel-source

A: You need to install the source for the Linux kernel. In most
situations you can fix this problem by installing the kernel-source package for your distribution.

What do I have to do?? I have a standard installation of RH7.2 and have never messed around with the kernel (as if I knew how to )

Can someone help .... please
 
Old 04-24-2002, 09:48 AM   #2
akohlsmith
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
Try following its suggestion

It's giving you the answer in the error:

#error Change -I/usr/src/linux/include (or similar) to
#error -I/lib/modules/$(uname -r)/build/include

In the Makefile look for the -I/usr/src/linux/include line and change it to -I/lib/modules/$(uname -r)/build/include.

Offhand, it looks like the compiler is being pedantic. There's really no need for this, other than to force correctness.
 
Old 04-24-2002, 01:50 PM   #3
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Re: Updating nVidia drivers error

Quote:
Originally posted by joadoor
get the following error when
running the make install command
I have heard that Nvidia provides RPM's on their website.
 
Old 04-24-2002, 02:15 PM   #4
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
The RPM nVidia drivers will not work most of time
install the source drivers (.tar.gz or tar.bz2) instead

the installation help files are on nvidia web site
 
Old 04-25-2002, 03:28 AM   #5
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Original Poster
Rep: Reputation: 15
frustrated

ok first off, thanks for the replys.

I have tried a few things since I last posted...

I added the SYSINCLUDE=/... option to the 'Make' command as detailed in the nvidia readme, but it just gave me the same error. I wasn't too sure where the "kernel header" files were (or what they look like) so I tried about 40,000 different (slight exageration) paths like:

/lib/modules/include/
/usr/src/redhat/modules/
/usr/modules/2.4.7-10/kernel/

or something like that. Can't remember the exact paths but I know I tried all of the ones I could find relevant files in. Can someone point me in the right direction as to what these directories generally should contain??

Secondly, I gave up on trying to compile my own drivers, and thought I'd try the next thing on nvidia's list. I ran the nv_check.sh script I found somewhere which checks out my system. It passed all of the tests up until checking that the NVdriver module was installed.

So next I tried doing a modprobe NVdriver with the following results:

----------------------------------------------------------------------------------
$ modprobe NVdriver
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol _pollwait_R6dac8142
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol init_mm_Rb295fff9
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol proc_root_Rd53464da
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol irq_stat_R67732e05
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol create_proc_entry_Rb7ba90c7
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol register_chrdev_R827e2e0f
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol remove_proc_entry_Rf691595b
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol mem_map_Rfb7cd42f
----------------------------------------------------------------------------------


Thirdly, I thought I'd try the rpm package again followed by the modprobe command:

----------------------------------------------------------------------------------

$ rpm -i NVIDIA_kernel-1.0-2313.rpm
package NVIDIA_kernel-1.0-2313.rh72up is already installed

$ rpm -i NVIDIA_GLX-1.0-2313.rpm
package NVIDIA_GLX-1.0-2313 is already installed

$ modprobe NVdriver
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol _pollwait_R6dac8142
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol init_mm_Rb295fff9
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol proc_root_Rd53464da
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol irq_stat_R67732e05
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol create_proc_entry_Rb7ba90c7
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol register_chrdev_R827e2e0f
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol remove_proc_entry_Rf691595b
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: unresolved symbol mem_map_Rfb7cd42f
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: insmod /lib/modules/2.4.7-10/kernel/drivers/video/NVdriver failed
/lib/modules/2.4.7-10/kernel/drivers/video/NVdriver: insmod NVdriver failed

----------------------------------------------------------------------------------

please help ... I can't even run the Chromium game that comes with RH7.2 !! It's tooooooo slow ... how embarasing
 
Old 04-25-2002, 08:17 AM   #6
akohlsmith
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
unresolved symbols

unresolved symbols are almost always caused because the module does not match the kernel. In your case, you have to get the damn thing to compile.

Try changing your SYSINCLUDE to /lib/modules/[kernel version]/build/include

[kernel version] should be your kernel version (2.4.17, 2.2.12, whatever)

I have the v2880 drivers working fine with my (slackware) setup but I have never had the trouble that you are having. Mine was pretty much untar and compile.

in my driver Makefile:
KERNDIR is "/lib/modules/$(shell uname -r)"
KERNINC uses KERNDIR

I do not have SYSINCLUDE set at all, so the makefile uses KERNINC. RedHat may be different, but try "unset SYSINCLUDE" before you run make.
 
Old 04-25-2002, 08:34 AM   #7
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
One thing you can do that may help is check to see if you have the kernel source and header rpm's installed from your redhat cd. Make sure that they match the kernel version your using, do "uname -a" to check.
 
Old 04-25-2002, 10:36 AM   #8
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Original Poster
Rep: Reputation: 15
how do I check for the installation of the header files and/or rpm?
 
Old 04-25-2002, 10:51 AM   #9
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
There will be kernel source and header rpm's on the redhat cd's.
 
Old 04-25-2002, 11:10 AM   #10
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Original Poster
Rep: Reputation: 15
that's where they are, but how do I check that they are installed on my system?

also, does anyone know why the modprobe is failing when the rpm's are apparently installed??

Last edited by joadoor; 04-25-2002 at 11:14 AM.
 
Old 04-29-2002, 04:36 AM   #11
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Original Poster
Rep: Reputation: 15
I have just noticed on another post ls colors that white on flashing red is a broken link. In my /lib/modules/2.4.7-10 folder I have 'build' flashing like this.

1. Does this mean that something is missing from my install.

I installed the RH7.2 header files at the weekend from the install CD, and tried compiling the nvidia drivers again, but got the same error (your trying to compile using a different complier that was used to compile the running kernel).
I ran a dmsg(?) command (that I got from another post) and it lists everything about your system. It said that my system was compiled using RH7.1 ??
2. Is that true?

3. It mentions using the IGNORE_CC_MISMATCH command, but where and how do I type this in? I've tried:
$ make IGNORE_CC_MISMATCH


I think I may have to start from scratch and re-install RedHat and go from there, unless anyone's got any other suggestions?

Last edited by joadoor; 04-29-2002 at 04:44 AM.
 
Old 06-03-2002, 10:49 AM   #12
Dobos
LQ Newbie
 
Registered: Jun 2002
Posts: 1

Rep: Reputation: 0
The "build" directory links automagically to the directory where your linux kernel source is, once you have compiled and installed the kernel and modules.

It is best to compile and install your kernel first, then run lilo and reboot before you try building the nvidia driver.

If you get the error about a different compiler, this is probably because RedHat is using the egcs compiler for the kernel and gcc is the default compiler. You can check this using the "cat /proc/version" command for the kernel compiler and "gcc -v" for the system compiler.

It's kind of irritating that nvidia doesn't script for this and take care of it rather than giving you these confusing error messages, because you are probably unable to boot into X and kind of in a panic as it is.

If you can't get into X the easiest way to fix it is to type the command "vi Makefile" from within the nvidia directory, and scroll down with the arrow keys to a spot near the top, i.e. right after the CFLAGS section, and type "i" to go into insert mode, then type the line "CC=egcs" without the quotes. You could also hit enter a couple times to make line breaks if you need to. Then hit the escape key to get out of insert mode and type ":wq" and hit enter, that will save it.

make should now work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
updating Nvidia drivers Lleb_KCir Linux - Hardware 3 04-14-2005 02:59 PM
updating my Nvidia drivers problems... elbrens Linux - Software 6 05-22-2004 06:45 PM
ERROR running make when installing Nvidia drivers (syntax error) randyriver10 Linux - Software 5 02-21-2004 04:51 PM
error during install nvidia drivers 286 Linux - Newbie 6 11-06-2003 03:32 PM
Updating NVidia Drivers in Redhat 8 prophet665 Linux - Software 10 07-28-2003 05:40 PM


All times are GMT -5. The time now is 07:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration