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

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-18-03, 11:11 AM   #1
simpleadmin
Registered User
 
Join Date: Sep 2003
Posts: 1
Question How do I build Driver V.4496 on kernel 2.4.20 on a RH9?

I've recently upgraded my Redhat 9 system to the kernel version 2.4.20-20.9.
I downloaded and tried to build nVidia's latest driver NVIDIA-Linux-x86-1.0-4496-pkg2.run.
After telling it were my kernel source was, it still failed.
Can anyone help?
simpleadmin is offline   Reply With Quote
Old 09-18-03, 02:59 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default

Please post /var/log/nvidia-installer.log, it will give us a better idea of what's wrong.
zander is offline   Reply With Quote
Old 09-18-03, 11:06 PM   #3
sttroopers
Registered User
 
Join Date: Aug 2003
Posts: 4
Default

I'm having the exact same problem with RH9 and the 4496's (and the 4363's as well).

Here's my installer.log:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Sep 18 23:18:56 2003

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel include path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system (version: 1.0-
4496). As part of installing this driver (version: 1.0-4496), the existing
driver will be uninstalled. Are you sure you want to continue? ('no' will a
bort installation) (Answer: Yes)
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Kernel include path: '/lib/modules/2.4.20-20.9/build/include'
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f nv.o os-agp.o os-interface.o os-registry.o nv-linux.o nv_compiler.h *
.d NVdriver nvidia.o
-> Building kernel module:
executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/lib/modules/2.4.20-20
.9/build/include'...
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > nv_compiler.h
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
arentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -
DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D_
_KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVE
L=4496 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DREMAP_PA
GE_RANGE_5 -I. -I/lib/modules/2.4.20-20.9/build/include -Wno-cast-qual nv.c
In file included from nv-linux.h:27,
from nv.c:14:
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:60: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:60: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:61: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:61: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:62: `panic_R_ver_str'
declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:68: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:68: `simple_strtoul_R_
ver_str' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:69: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:69: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:69: `simple_strtol_R_v
er_str' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:70: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:70: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:70: `simple_strtoull_R
_ver_str' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:72: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:72: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:73: `sprintf_R_ver_str
' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:74: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:74: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:74: `vsprintf_R_ver_st
r' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:75: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:75: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:76: `snprintf_R_ver_st
r' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:77: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:77: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:77: `vsnprintf_R_ver_s
tr' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:79: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:79: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:80: `sscanf_R_ver_str'
declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:81: `vsscanf_R_ver_str
' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:81: warning: parameter
names (without types) in function declaration
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:83: `get_option_R_ver_
str' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:83: warning: parameter
names (without types) in function declaration
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:84: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:84: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:84: `get_options_R_ver
_str' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:85: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:85: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:85: `memparse_R_ver_st
r' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:91: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:91: parse error before
numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:92: `printk_R_ver_str'
declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:108: parse error befor
e numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:109: warning: paramete
r names (without types) in function declaration
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:114: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:114: parse error befor
e numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:114: `dump_stack_R_ver
_str' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:191: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:191: parse error befor
e numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/kernel.h:191: `__out_of_line_bu
g_R_ver_str' declared as function returning a function
In file included from /lib/modules/2.4.20-20.9/build/include/linux/prefetch.
h:13,
from /lib/modules/2.4.20-20.9/build/include/linux/list.h:6,
from /lib/modules/2.4.20-20.9/build/include/linux/module.h:
12,
from nv-linux.h:28,
from nv.c:14:
/lib/modules/2.4.20-20.9/build/include/asm/processor.h:60: warning: paramete
r names (without types) in function declaration
/lib/modules/2.4.20-20.9/build/include/asm/processor.h:60: field `loops_per_
jiffy_R_ver_str' declared as a function
/lib/modules/2.4.20-20.9/build/include/asm/processor.h:83: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/asm/processor.h:83: parse error befor
e numeric constant
/lib/modules/2.4.20-20.9/build/include/asm/processor.h:266: invalid suffix o
n integer constant
/lib/modules/2.4.20-20.9/build/include/asm/processor.h:266: parse error befo
re numeric constant
/lib/modules/2.4.20-20.9/build/include/asm/processor.h:270: warning: paramet
er names (without types) in function declaration
In file included from nv-linux.h:28,
from nv.c:14:
/lib/modules/2.4.20-20.9/build/include/linux/module.h:183: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/module.h:183: parse error befor
e numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/module.h:183: `inter_module_reg
ister_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/module.h:184: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/module.h:184: parse error befor
e numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/module.h:184: `inter_module_unr
egister_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/module.h:185: `inter_module_get
_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/module.h:185: warning: paramete
r names (without types) in function declaration
/lib/modules/2.4.20-20.9/build/include/linux/module.h:186: `inter_module_get
_request_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/module.h:186: warning: paramete
r names (without types) in function declaration
/lib/modules/2.4.20-20.9/build/include/linux/module.h:187: invalid suffix on
integer constant
/lib/modules/2.4.20-20.9/build/include/linux/module.h:187: parse error befor
e numeric constant
/lib/modules/2.4.20-20.9/build/include/linux/module.h:187: `inter_module_put
_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/module.h:196: `try_inc_mod_coun
t_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-20.9/build/include/linux/module.h:196: warning: paramete
r names (without types) in function declaration
In file included from /lib/modules/2.4.20-20.9/build/include/linux/fs.h:19,
from /lib/modules/2.4.20-20.9/build/include/linux/capabilit
y.h:17,
from /lib/modules/2.4.20-20.9/build/include/linux/binfmts.h
:4,
from /lib/modules/2.4.20-20.9/build/include/linux/sched.h:1
0,
from /lib/modules/2.4.20-20.9/build/include/linux/mm.h:22,
from /lib/modules/2.4.20-20.9/build/include/linux/slab.h:14
,
from nv-linux.h:71,
from nv.c:14:
/lib/modules/2.4.20-20.9/build/include/linux/dcache.h: In function `dget':
/lib/modules/2.4.20-20.9/build/include/linux/dcache.h:254: warning: implicit
declaration of function `__out_of_line_bug_R8b0fd3c5'
In file included from nv.c:14:
nv-linux.h: In function `pgprot_noncached':
nv-linux.h:508: `boot_cpu_data_R0657d037' undeclared (first use in this func
tion)
nv-linux.h:508: (Each undeclared identifier is reported only once
nv-linux.h:508: for each function it appears in.)
nv.c: In function `nvos_proc_create':
nv.c:623: warning: implicit declaration of function `sprintf_R1d26aa98'
nv.c: In function `nv_agp_init':
nv.c:2700: warning: implicit declaration of function `inter_module_get_Rf6a0
ce24'
nv.c:2701: warning: implicit declaration of function `inter_module_put_R6b99
f7d8'
make: *** [nv.o] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
sttroopers is offline   Reply With Quote
Old 09-19-03, 12:34 AM   #4
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default

It looks like your kernel source tree isn't configured properly (the modversion information seems broken).
zander is offline   Reply With Quote
Old 09-19-03, 12:32 PM   #5
sttroopers
Registered User
 
Join Date: Aug 2003
Posts: 4
Default

Anyone have a relatively simple solution? I'm assuming anyone running RedHat 9 with kernel 2.4.20-20.9 is gonna have the same problem.
sttroopers is offline   Reply With Quote
Old 09-19-03, 02:01 PM   #6
dboyer
Registered User
 
Join Date: Sep 2003
Posts: 1
Default I hate to thread-squat...

Normally I don't jump into other peoples threads, but I am having the "same" problem.

I'm using RH9, and was able to install the drivers just fine on the default kernel (2.4.20-8), but when i updated my kernel (2.4.20-20.9) I couldn't use the drivers without compiling a custom one... "no prob" i think... i downloaded the kernel src rpm from redhat... and i THINK i install it (ill get back to that) but the nvidia installer says it cant find the kernel header file... so i did a locate, found it in /usr/include/linux/kernel.h... so i ran the installer with the:

--kernel-include-path /usr/include/

option, and it seemed to have found the file... however, it still puked, and the log says that it couldn't find "storage size of" rctimer, nvfops, and nv_vm_ops....

eh?

plus, rpm -qa doesn't list the kernel header rpm, and it seems more than happy to reinstall repeatedly (as far as i know, rpms bitch if you try and reinstall them) so logically, that is failing... somehow.... a -ivh looks like it completes successfully, however...

I suppose "how do i compile my own drivers" is a sort of FAQ... is there one somewhere to read?
dboyer is offline   Reply With Quote
Old 09-20-03, 03:17 AM   #7
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default

Chances are this is the most frequently asked question (in some form or another), but unfortunately, there is no answer that will "just work(tm)". In general, you will need to have the kernel source package matching the running kernel installed. In this context, "matching" means that the version must be identical, but it also means that the kernel source tree must be configured correctly, i.e. using the same kernel configuration file used to build the running kernel.

Since distributors usually take care of this using more or less sophisticated mechanisms or packaging, users typically only need to locate and install the correct kernel source package. Unfortunately, this doesn't always work. In this case, it seems that the 2.4.20-20.9 source tree has gotten into a funny state somehow (there seems to be a problem related to modversions).

RedHat ships the kernel configuration files for their different kernel variants (i586, i686, UP/SMP, ...) in a configs/ directory (relative to the top-level kernel source directory); you could try to locate the correct configuration file for the running kernel (uname -a, /proc/version) and reconfigure the kernel source tree using something like make mrproper; cp configs/config-... .config; make oldconfig depend clean (where config-... is the correct configuration file).
zander 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
Corrupted display - 302.17 - Dell Precision T3500 (G98 [Quadro NVS 295]) gbailey NVIDIA Linux 1 06-27-12 10:24 AM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
Diablo 3 build guide: Barbarian, Demon Hunter, Monk, Witch Doctor and Wizard News Archived News Items 0 05-12-12 12:00 PM
Crash when logout from X TGL NVIDIA Linux 10 09-13-02 08:22 PM

All times are GMT -5. The time now is 07:42 AM.


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