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

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-25-06, 10:10 PM   #1
jack_perry
Registered User
 
Join Date: Jul 2006
Posts: 5
Default Can't install NVIDIA drivers

Hi,

I can't seem to install the nvidia driver to SUSE 10.1 for the life of me. (Trying 6629 legacy for TNT2.) I get a number of errors along the lines of,
error: implicit declaration of function (such-and-such)

where (such-and-such) can be:
  • pci_find_class
  • pm_register
  • pm_unregister
  • remap_page_range
  • inter_module_get

In addition, I get "error: `CONFIG_NR_CPUS' undeclared here (not in a function)", which I also get with my modem driver. (They haven't figured that one out either...)

Suggestions would be greatly appreciated.

regards

(Sorry I can't attach the log file. SUSE really bombed with 10.1, so neither my modem nor my USB key work.)
jack_perry is offline   Reply With Quote
Old 07-25-06, 10:34 PM   #2
acreal
Registered User
 
acreal's Avatar
 
Join Date: Nov 2003
Posts: 24
Default Re: Can't install NVIDIA drivers

It seems to be a problem related to SMP kernels and User Mode Linux where it define CONFIG_SMP but not CONFIG_NR_CPUS.

Selecting another kernel from your distro will most probably fix the problem. If this is not an option, there's a patch if you want. I'm not sure this is the exact same problem as you have, but this is most likely it.
acreal is offline   Reply With Quote
Old 07-25-06, 10:42 PM   #3
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: Can't install NVIDIA drivers

1.0-6629 is quite old, and is no longer supported. The latest legacy driver is 1.0-7182. If you experience problems with 1.0-7182, I'll need to see the installer log.

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 07-26-06, 07:11 AM   #4
jack_perry
Registered User
 
Join Date: Jul 2006
Posts: 5
Unhappy Re: Can't install NVIDIA drivers

Quote:
Originally Posted by netllama
The latest legacy driver is 1.0-7182. If you experience problems with 1.0-7182, I'll need to see the installer log.
I'm copying the log to the bottom of this message. You'll notice that the same errors appear that I cited before.
Quote:
Originally Posted by acreal
If this is not an option, there's a patch if you want. I'm not sure this is the exact same problem as you have, but this is most likely it.
I have seen this before, and I'd like to try it, but (a) I don't know how to use it, and (b) when I peruse the source files referenced, it appears that the kernel already has these patches.

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

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Jul 26 07:54:44 2006

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 : true
no questions : true
silent : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> 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)
ERROR: Unable to connect to download.nvidia.com (unknown host)
-> 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.
-> Performing CC test with CC="cc".
-> Kernel source path: '/lib/modules/2.6.16.13-4-default/source'
-> Kernel output path: '/lib/modules/2.6.16.13-4-default/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.16.13-4-def
ault/source SYSOUT=/lib/modules/2.6.16.13-4-default/build'...

NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.16.13-4-default/build KBUILD_VERBO
SE=1 -C /lib/modules/2.6.16.13-4-default/source SUBDIRS=/tmp/selfgz4592/NVID
IA-Linux-x86-1.0-7182-pkg1/usr/src/nv modules
make -C /lib/modules/2.6.16.13-4-default/build \
KBUILD_SRC=/usr/src/linux-2.6.16.13-4 \
KBUILD_EXTMOD="/tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src/nv" -f
/usr/src/linux-2.6.16.13-4/Makefile modules
rm -rf /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src/nv/.tmp_versio
ns
mkdir -p /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src/nv/.tmp_vers
ions
make -f /usr/src/linux-2.6.16.13-4/scripts/Makefile.build obj=/tmp/selfgz459
2/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz4592/NVI
DIA-Linux-x86-1.0-7182-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src/nv/.nv.o
.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.1.0/include -D__KERNEL
__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.16.13-4/include -include /usr/s
rc/linux-2.6.16.13-4-obj/i386/default/include/linux/autoconf.h -I/tmp/selfg
z4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src/nv -Wall -Wundef -Wstrict-prot
otypes -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-alia
sing -fno-common -ffreestanding -Os -fomit-frame-pointer -pipe -msoft-float
-mpreferred-stack-boundary=2 -march=i586 -mtune=generic -mregparm=3 -Iinclud
e/asm-i386/mach-default -I/usr/src/linux-2.6.16.13-4/include/asm-i386/mach-d
efault -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/selfgz4592/NVI
DIA-Linux-x86-1.0-7182-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswi
tch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar
-Werror -O -fno-common -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE
_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAM
ES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATC
HLEVEL=7182 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDE
BUG -U_DEBUG -DNDEBUG -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLAS
S_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_REM
AP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DMODULE -D"KBUILD_STR(s)
=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia
)" -c -o /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src/nv/.tmp_nv.o
/tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src/nv/nv.c
In file included from include2/asm/percpu.h:4,
from include2/asm/processor.h:24,
from include2/asm/thread_info.h:17,
from /usr/src/linux-2.6.16.13-4/include/linux/thread_info.h
:21,
from /usr/src/linux-2.6.16.13-4/include/linux/preempt.h:10,
from /usr/src/linux-2.6.16.13-4/include/linux/spinlock.h:52
,
from /usr/src/linux-2.6.16.13-4/include/linux/capability.h:
45,
from /usr/src/linux-2.6.16.13-4/include/linux/sched.h:7,
from /usr/src/linux-2.6.16.13-4/include/linux/module.h:10,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv.c:14:
/usr/src/linux-2.6.16.13-4/include/asm-generic/percpu.h:8: error: тАШCONFIG_
NR_CPUSтАЩ undeclared here (not in a function)
In file included from /usr/src/linux-2.6.16.13-4/include/linux/sched.h:15,
from /usr/src/linux-2.6.16.13-4/include/linux/module.h:10,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv.c:14:
/usr/src/linux-2.6.16.13-4/include/linux/cpumask.h:241:5: warning: "CONFIG_N
R_CPUS" is not defined
/usr/src/linux-2.6.16.13-4/include/linux/cpumask.h:316:5: warning: "CONFIG_N
R_CPUS" is not defined
/usr/src/linux-2.6.16.13-4/include/linux/cpumask.h:385:5: warning: "CONFIG_N
R_CPUS" is not defined
In file included from /usr/src/linux-2.6.16.13-4/include/linux/list.h:7,
from /usr/src/linux-2.6.16.13-4/include/linux/wait.h:23,
from include2/asm/semaphore.h:41,
from /usr/src/linux-2.6.16.13-4/include/linux/sched.h:20,
from /usr/src/linux-2.6.16.13-4/include/linux/module.h:10,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv.c:14:
/usr/src/linux-2.6.16.13-4/include/linux/prefetch.h: In function тАШprefetch
_rangeтАЩ:
/usr/src/linux-2.6.16.13-4/include/linux/prefetch.h:62: warning: pointer of
type тАШvoid *тАЩ used in arithmetic
In file included from /usr/src/linux-2.6.16.13-4/include/linux/slab.h:97,
from /usr/src/linux-2.6.16.13-4/include/linux/percpu.h:5,
from /usr/src/linux-2.6.16.13-4/include/linux/sched.h:34,
from /usr/src/linux-2.6.16.13-4/include/linux/module.h:10,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv.c:14:
/usr/src/linux-2.6.16.13-4/include/linux/kmalloc_sizes.h:22:6: warning: "CON
FIG_NR_CPUS" is not defined
In file included from /usr/src/linux-2.6.16.13-4/include/linux/module.h:10,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv.c:14:
/usr/src/linux-2.6.16.13-4/include/linux/sched.h:255:5: warning: "CONFIG_NR_
CPUS" is not defined
In file included from /usr/src/linux-2.6.16.13-4/include/linux/poll.h:11,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv-linux.h:60,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv.c:14:
/usr/src/linux-2.6.16.13-4/include/linux/mm.h:245:5: warning: "CONFIG_NR_CPU
S" is not defined
/usr/src/linux-2.6.16.13-4/include/linux/mm.h:816:5: warning: "CONFIG_NR_CPU
S" is not defined
In file included from /usr/src/linux-2.6.16.13-4/include/linux/dmapool.h:14,
from /usr/src/linux-2.6.16.13-4/include/linux/pci.h:524,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv-linux.h:71,
from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv.c:14:
include2/asm/io.h: In function тАШcheck_signatureтАЩ:
include2/asm/io.h:258: warning: wrong type argument to increment
In file included from /tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv/nv.c:14:
/tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src/nv/nv-linux.h: At top
level:
/tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src/nv/nv-linux.h:667: er
ror: conflicting types for тАШpm_message_tтАЩ
/usr/src/linux-2.6.16.13-4/include/linux/pm.h:143: error: previous declarati
on of тАШpm_message_tтАЩ was here
/tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src/nv/nv.c:292: warning:
initialization from incompatible pointer type
make[4]: *** [/tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src/nv/nv.o
] Error 1
make[3]: *** [_module_/tmp/selfgz4592/NVIDIA-Linux-x86-1.0-7182-pkg1/usr/src
/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> 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.
jack_perry is offline   Reply With Quote
Old 07-26-06, 08:08 AM   #5
acreal
Registered User
 
acreal's Avatar
 
Join Date: Nov 2003
Posts: 24
Default Re: Can't install NVIDIA drivers

Remember, if an option at all, use a kernel from your distribution, or the kernel sources from your distribution.

Now, to patch source, just get the patch, go to your kernel source path and do as follows (and make sure the source tree you use is clean)

Code:
cd /patch/to/kernel/sources
patch -p1 --dry-run < /path/to/the/patch # check if everything seems compatible
patch -p1 < /path/to/the/patch # apply the patch
then just copy over your current configuration, and build and install the new kernel

Code:
zcat /proc/config.gz >.config
make all modules_install
cp arch/{your-arch, probably i386 or x86_64}/boot/bzImage /kernels/location/vmlinuz-new_kernel_version (loc. is probably / or /boot)
Then you will need to update your bootloader to use the new kernel. To do so, edit /boot/grub/menu.lst and copy the block describing your current kernel, and just change the kernel path to the path of your new kernel, and the title of course.

For example, if you have something like this:

Code:
title  SuSE 2.6.16.13-4-default
root (hd0,0)
kernel /boot/vmlinuz-2.6.16.13-4-default root=/dev/xxx vga=ext
Copy it at the first place (but below the timeout, default, etc directives) and change the path of the kernel:

Code:
title  SuSE new_kernel_version
root (hd0,0)
kernel /boot/vmlinuz-new_kernel_version root=/dev/xxx vga=ext
Well this was a bit verbose, if you feel uncomfortable about all this, just ignore this and try to get an update for your kernel by your distribution, which is the best way IMO.

Good luck.

Last edited by acreal; 07-26-06 at 08:52 AM.
acreal is offline   Reply With Quote
Old 07-26-06, 11:23 AM   #6
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: Can't install NVIDIA drivers

It looks like your kernel source is in an inconsistant state:
/usr/src/linux-2.6.16.13-4/include/asm-generic/percpu.h:8: error: тАШCONFIG_
NR_CPUSтАЩ undeclared here (not in a function)

Where did you obtain this kernel source?

-Lonni
netllama is offline   Reply With Quote
Old 07-27-06, 07:46 PM   #7
jack_perry
Registered User
 
Join Date: Jul 2006
Posts: 5
Default Re: Can't install NVIDIA drivers

Quote:
Where did you obtain this kernel source?
Using YAST, I selected the kernel-source package from the installation disks that come with SUSE 10.1. Was I supposed to get it from somewhere else?
jack_perry is offline   Reply With Quote
Old 07-27-06, 07:59 PM   #8
jack_perry
Registered User
 
Join Date: Jul 2006
Posts: 5
Default Re: Can't install NVIDIA drivers

Quote:
Originally Posted by acreal
Remember, if an option at all, use a kernel from your distribution, or the kernel sources from your distribution.
Or get a new distribution. I have by now spent so many hours on this "upgrade" that (at the rate I get paid) I could have worked instead, and bought a new modem AND a new video card, or heck even Windows XP.

Quote:
Code:
patch -p1 --dry-run < /path/to/the/patch # check if everything seems compatible
Hmm.
Quote:
Reversed (or previously applied patch detected! Assume -R? [n]
appears three times. I have a feeling I shouldn't mess with this.
jack_perry is offline   Reply With Quote

Old 07-27-06, 08:47 PM   #9
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: Can't install NVIDIA drivers

jack_perry, have you made any changes to the kernel source since it was installed?

I do know that the 1.0-8762 driver installs just fine on SuSE-10.1, so something has clearly happened to your system that makes it different.
netllama is offline   Reply With Quote
Old 07-27-06, 10:01 PM   #10
jack_perry
Registered User
 
Join Date: Jul 2006
Posts: 5
Default Re: Can't install NVIDIA drivers

Quote:
Originally Posted by netllama
jack_perry, have you made any changes to the kernel source since it was installed?
The best I can answer is this:
  • I installed the sources so that I could install a driver for my modem;
  • the driver's installation program failed to work (same errors), and suggested I run a script;
  • that srcipt removed my kernel headers;
  • I re-installed the kernel headers.
That really is all I have done. The kernel headers are stored in /usr/src/linux-2.6.16.13-4/ and there is a symlink to that directory from /usr/src/linux
jack_perry is offline   Reply With Quote
Old 07-29-06, 06:41 AM   #11
acreal
Registered User
 
acreal's Avatar
 
Join Date: Nov 2003
Posts: 24
Default Re: Can't install NVIDIA drivers

Quote:
I have a feeling I shouldn't mess with this.
You're right, don't. Seems i got it all wrong, sorry.

Quote:
  • The best I can answer is this:
    * I installed the sources so that I could install a driver for my modem;
    * the driver's installation program failed to work (same errors), and suggested I run a script;
    * that srcipt removed my kernel headers;
    * I re-installed the kernel headers.
The best way to go is to check against other kernel(-headers) versions (newer or older) in your distribution.

In last resort, either try to ask support from SuSE, contact your driver provider to notice them about the issue, etc. and/or download the latest stable kernel from kernel.org, untar it and update the /usr/src/linux link. Then just :

[code]cd /usr/src/linux
zcat /proc/config.gz >.config
make oldconfig
make menuconfig # if you need to do further modifications
make all modules_install
cp arch/{your_arch}/boot/bzImage /boot/vmlinuz-kernel_version # adapt place and name to SuSEs' standards.

Then update your bootloader, reboot the new kernel and try to install the drivers.

Good luck
acreal 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
How to quickly Install NVIDIA R302.11 Drivers Under Linux Mint 13 News Archived News Items 0 06-12-12 06:40 AM
Radeon 9700 not all that? sancheuz Other Desktop Graphics Cards 200 10-12-02 09:31 PM
Red Hat null(limbo beta 3), guide to install Nvidia Drivers utiel NVIDIA Linux 21 09-30-02 05:32 PM
NVIDIA drivers won't install... Dnzauker NVIDIA Linux 6 09-12-02 06:47 AM
NVIDIA 2960 Drivers & RH 7.3 W/2.4.18-5 XASCompuGuy NVIDIA Linux 6 08-02-02 11:53 AM

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


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