LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-29-2003, 05:16 PM   #1
stofferthebest
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Rep: Reputation: 0
Problem installing nvidia driver!


I have a problem, when I try to install the nvidia driver. When it try to compile the driver, it says that it can't find the kernel headers. Im use Debian wirh kernel 2.5.73 and my GFX is a Geforce4 mx440.
What to do?

greetings
stofferthebest

Last edited by stofferthebest; 06-29-2003 at 05:29 PM.
 
Old 06-29-2003, 05:17 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
you have to install the source for you kernel
 
Old 06-29-2003, 05:36 PM   #3
stofferthebest
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Im not sure, but I have just compilet the kernel, are the source not include when im compile the kernel? And where to download the kernel source or kernel headers?
 
Old 06-29-2003, 05:38 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
well you can type rpm -qa|grep -i kernel and you will see if the source package is there, and if not you have to get it....my only idea would be for you to go to kernel.org and find it there...
 
Old 06-30-2003, 07:02 AM   #5
stofferthebest
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
okay, I have the source, it was the source I compile the kernel from. What can the problem so be?
 
Old 06-30-2003, 07:07 AM   #6
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
It might be that your kernel is non-stable. How'd you get it, did you grab it from kernel.org or did you install it by other means (the kernel)?

Where is /usr/src/linux pointing? What does uname -r report? Which version of the nvidia drivers are you trying to install? Is it giving you the option for it to download and use a kernel from it's server, and if so, have you tried using that option?



Cool
 
Old 06-30-2003, 08:22 AM   #7
stofferthebest
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Now I have try to install with this script:
sh NVID.....run --kernel-include-path=/usr/src/kernel-2.5.73/include
And Now it try to compile the kernel, but it stop and says "Unable to build the NVIDIA kernel module"
Here is the log file nvidia-install.log:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Jun 30 15:18:37 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 : /usr/src/linux-2.5.73/include
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-
4363). As part of installing this driver (version: 1.0-4363), 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.
-> Using the kernel include path '/usr/src/linux-2.5.73/include' as specified
by the '--kernel-include-dir' commandline option.
-> Kernel include path: '/usr/src/linux-2.5.73/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=/usr/src/linux-2.5.73/
include'...
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -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=4363 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/us
r/src/linux-2.5.73/include -Wno-cast-qual nv.c
In file included from /usr/src/linux-2.5.73/include/asm/smp.h:17,
from /usr/src/linux-2.5.73/include/linux/smp.h:17,
from /usr/src/linux-2.5.73/include/linux/sched.h:22,
from /usr/src/linux-2.5.73/include/linux/module.h:10,
from nv-linux.h:28,
from nv.c:14:
/usr/src/linux-2.5.73/include/asm/mpspec.h:5:25: mach_mpspec.h: No such file
or directory
In file included from /usr/src/linux-2.5.73/include/asm/smp.h:17,
from /usr/src/linux-2.5.73/include/linux/smp.h:17,
from /usr/src/linux-2.5.73/include/linux/sched.h:22,
from /usr/src/linux-2.5.73/include/linux/module.h:10,
from nv-linux.h:28,
from nv.c:14:
/usr/src/linux-2.5.73/include/asm/mpspec.h:7: error: `MAX_MP_BUSSES' undecla
red here (not in a function)
/usr/src/linux-2.5.73/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undecla
red here (not in a function)
/usr/src/linux-2.5.73/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undecla
red here (not in a function)
/usr/src/linux-2.5.73/include/asm/mpspec.h:11: error: `MAX_MP_BUSSES' undecl
ared here (not in a function)
/usr/src/linux-2.5.73/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared
here (not in a function)
/usr/src/linux-2.5.73/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undecl
ared here (not in a function)
/usr/src/linux-2.5.73/include/asm/mpspec.h:20: error: conflicting types for
`mp_bus_id_to_type'
/usr/src/linux-2.5.73/include/asm/mpspec.h:7: error: previous declaration of
`mp_bus_id_to_type'
/usr/src/linux-2.5.73/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' unde
clared here (not in a function)
/usr/src/linux-2.5.73/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undecl
ared here (not in a function)
/usr/src/linux-2.5.73/include/asm/mpspec.h:24: error: conflicting types for
`mp_bus_id_to_pci_bus'
/usr/src/linux-2.5.73/include/asm/mpspec.h:11: error: previous declaration o
f `mp_bus_id_to_pci_bus'
In file included from /usr/src/linux-2.5.73/include/asm/smp.h:19,
from /usr/src/linux-2.5.73/include/linux/smp.h:17,
from /usr/src/linux-2.5.73/include/linux/sched.h:22,
from /usr/src/linux-2.5.73/include/linux/module.h:10,
from nv-linux.h:28,
from nv.c:14:
/usr/src/linux-2.5.73/include/asm/io_apic.h:103: error: `MAX_IRQ_SOURCES' un
declared here (not in a function)
/usr/src/linux-2.5.73/include/asm/io_apic.h:103: error: conflicting types fo
r `mp_irqs'
/usr/src/linux-2.5.73/include/asm/mpspec.h:22: error: previous declaration o
f `mp_irqs'
In file included from /usr/src/linux-2.5.73/include/linux/smp.h:17,
from /usr/src/linux-2.5.73/include/linux/sched.h:22,
from /usr/src/linux-2.5.73/include/linux/module.h:10,
from nv-linux.h:28,
from nv.c:14:
/usr/src/linux-2.5.73/include/asm/smp.h:93:26: mach_apicdef.h: No such file
or directory
In file included from /usr/src/linux-2.5.73/include/linux/smp.h:17,
from /usr/src/linux-2.5.73/include/linux/sched.h:22,
from /usr/src/linux-2.5.73/include/linux/module.h:10,
from nv-linux.h:28,
from nv.c:14:
/usr/src/linux-2.5.73/include/asm/smp.h: In function `hard_smp_processor_id'
:
/usr/src/linux-2.5.73/include/asm/smp.h:97: warning: implicit declaration of
function `GET_APIC_ID'
In file included from /usr/src/linux-2.5.73/include/asm/percpu.h:4,
from /usr/src/linux-2.5.73/include/linux/percpu.h:7,
from /usr/src/linux-2.5.73/include/linux/sched.h:30,
from /usr/src/linux-2.5.73/include/linux/module.h:10,
from nv-linux.h:28,
from nv.c:14:
/usr/src/linux-2.5.73/include/asm-generic/percpu.h: In function `percpu_modc
opy':
/usr/src/linux-2.5.73/include/asm-generic/percpu.h:24: warning: pointer of t
ype `void *' used in arithmetic
/usr/src/linux-2.5.73/include/asm-generic/percpu.h:24: warning: pointer of t
ype `void *' used in arithmetic
In file included from nv.c:14:
nv-linux.h:48:4: #error This driver does not support 2.5.x development kerne
ls!
In file included from /usr/src/linux-2.5.73/include/linux/irq.h:19,
from /usr/src/linux-2.5.73/include/asm/hardirq.h:6,
from /usr/src/linux-2.5.73/include/linux/interrupt.h:10,
from nv-linux.h:79,
from nv.c:14:
/usr/src/linux-2.5.73/include/asm/irq.h:16:25: irq_vectors.h: No such file o
r directory
In file included from /usr/src/linux-2.5.73/include/asm/hardirq.h:6,
from /usr/src/linux-2.5.73/include/linux/interrupt.h:10,
from nv-linux.h:79,
from nv.c:14:
/usr/src/linux-2.5.73/include/linux/irq.h: At top level:
/usr/src/linux-2.5.73/include/linux/irq.h:69: error: `NR_IRQS' undeclared he
re (not in a function)
In file included from /usr/src/linux-2.5.73/include/linux/irq.h:71,
from /usr/src/linux-2.5.73/include/asm/hardirq.h:6,
from /usr/src/linux-2.5.73/include/linux/interrupt.h:10,
from nv-linux.h:79,
from nv.c:14:
/usr/src/linux-2.5.73/include/asm/hw_irq.h:27: error: `NR_IRQS' undeclared h
ere (not in a function)
/usr/src/linux-2.5.73/include/asm/hw_irq.h:30: error: `NR_IRQS' undeclared h
ere (not in a function)
In file included from nv.c:14:
nv-linux.h:167:2: #error "Couldn't determine number of arguments expected by
remap_page_range!"
In file included from nv.c:14:
nv-linux.h: In function `NV_IRQL_IS_RAISED':
nv-linux.h:255: warning: implicit declaration of function `__save_flags'
nv.c: In function `nv_kern_vma_open':
nv.c:922: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/l
inux-2.5.73/include/linux/module.h:478)
nv.c: In function `nv_kern_vma_release':
nv.c:956: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/l
inux-2.5.73/include/linux/module.h:490)
nv.c: In function `nv_kern_open':
nv.c:1079: error: invalid operands to binary &
nv.c:1083: error: invalid operands to binary &
nv.c:1091: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/
linux-2.5.73/include/linux/module.h:478)
nv.c:1124: warning: passing arg 2 of `request_irq' from incompatible pointer
type
nv.c:1160: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/
linux-2.5.73/include/linux/module.h:490)
nv.c: In function `nv_kern_close':
nv.c:1182: error: invalid operands to binary &
nv.c:1185: error: invalid operands to binary &
nv.c:1249: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/
linux-2.5.73/include/linux/module.h:490)
nv.c: In function `nv_kern_mmap':
nv.c:1295: warning: implicit declaration of function `NV_REMAP_PAGE_RANGE'
nv.c:1416: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/
linux-2.5.73/include/linux/module.h:478)
nv.c: In function `nv_kern_ioctl':
nv.c:1525: error: structure has no member named `uc'
nv.c: In function `nv_kern_isr':
nv.c:1669: warning: implicit declaration of function `mark_bh'
nv.c:1669: error: `IMMEDIATE_BH' undeclared (first use in this function)
nv.c:1669: error: (Each undeclared identifier is reported only once
nv.c:1669: error: for each function it appears in.)
nv.c: In function `nv_kern_ctl_open':
nv.c:1763: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/
linux-2.5.73/include/linux/module.h:478)
nv.c: In function `nv_kern_ctl_close':
nv.c:1828: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/
linux-2.5.73/include/linux/module.h:490)
nv.c: In function `nv_kern_read_agpinfo':
nv.c:1963: error: structure has no member named `name'
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.
 
Old 07-29-2003, 12:37 PM   #8
malcidragon
Member
 
Registered: Feb 2002
Location: Leeds UK
Distribution: Fedora Core 3
Posts: 67

Rep: Reputation: 15
This appears to be a problem with the 2.6 kernel too.
I'm trying to get the ATI drivers working on 2.6 and getting the
same errors, if anyone has a solution to this I'd be interested.
I'll keep looking in the mean time
 
Old 03-18-2006, 10:29 PM   #9
waggy401
LQ Newbie
 
Registered: Jan 2005
Location: Merced, CA
Distribution: Red Hat Fedora
Posts: 8

Rep: Reputation: 0
Problems with nvidia driver

There has been a solution developed by Livna.org. I followed this procedure on Fedora Core 5 test 3, and it worked beautifully.

http://clunixchit.blogspot.com/2006/...uccessful.html

Thanks to jens from Belgium for this information.
 
Old 03-18-2006, 10:31 PM   #10
waggy401
LQ Newbie
 
Registered: Jan 2005
Location: Merced, CA
Distribution: Red Hat Fedora
Posts: 8

Rep: Reputation: 0
Wow. I guess I need to check the dates on these before I post. Stupid newbies. . .
 
Old 03-19-2006, 12:54 AM   #11
DrEwMoNeY
Member
 
Registered: Jan 2006
Location: Vulcan
Distribution: *buntu - Slackware - Anything on USB
Posts: 254

Rep: Reputation: 30
I noticed this post had been viewed over 1200 times. Just think of it like this, you just made a good piece of reference material, that much better!

 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
help editing xf86config for nvidia geforce mx440 after installing nvidia driver linguist Linux - Newbie 11 06-13-2006 07:31 AM
installing an nvidia driver... poetic_assassin Linux - Newbie 21 03-14-2005 04:50 PM
Problem installing NVidia driver 6629 on linux 2.6.11 punx120 Debian 2 03-03-2005 06:52 AM
need help installing NVIDIA driver kenoichi Linux - Newbie 8 04-10-2004 03:16 AM
Problem after installing nvidia driver RobertoBech Mandriva 3 12-17-2003 12:50 PM


All times are GMT -5. The time now is 05:53 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