LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-10-2003, 06:32 AM   #1
LordChaos
LQ Newbie
 
Registered: Jan 2003
Location: Amsterdam, The Netherlands
Distribution: Gentoo (2.4.20-gentoo-r5)
Posts: 26

Rep: Reputation: 15
Talking Nvidia drivers & Red Hat 8 (2.4.18-19.8.0)


Hi,

I tried to install the latest 41.91 drivers from Nvidia on my system using the src rpm's but it seems that I have not all necessary files on my box, see the output below:

+ export TARGET_KERNEL=2.4.18-19.8.0
+ TARGET_KERNEL=2.4.18-19.8.0
+ '[' -d /lib/modules/2.4.18-19.8.0/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.18-19.8.0/kernel/drivers/video
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-19.8.0/kernel/drivers/video
+ install -m 0444 nvidia.o /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-19.8.0/kernel/drivers/video
install: cannot stat `nvidia.o': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.50256 (%install)

nvidia.o is indeed missing, what is it and why is it not on my system ?

By the way I have the kernel sources installed:

[root@gateway800 SPECS]# rpm -qa |grep -i kernel
kernel-ntfs-2.4.18-19.8.0
kernel-pcmcia-cs-3.1.31-9
kernel-source-2.4.18-19.8.0

Compiling from tarball won't work either...:-(

Please help,

Thanks

Eric

Last edited by LordChaos; 01-10-2003 at 08:05 AM.
 
Old 01-10-2003, 06:44 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The nvidia.o file is created during driver compilation. Have you compiled the file or are you trying to install it without compiling?

Why doesn't tarball wersion work? Is there any error message?
 
Old 01-10-2003, 07:05 AM   #3
LordChaos
LQ Newbie
 
Registered: Jan 2003
Location: Amsterdam, The Netherlands
Distribution: Gentoo (2.4.20-gentoo-r5)
Posts: 26

Original Poster
Rep: Reputation: 15
File

Hi,

Thanks for your swift reply. Which file do I need to compile first ? As far as the tarball is concerned, the output is way too long to put here, but here are some of the last lines (although I'm not sure it's very helpful)

nv.c:1351: `VM_LOCKED' undeclared (first use in this function)
nv.c:1361: dereferencing pointer to incomplete type
nv.c:1379: dereferencing pointer to incomplete type
nv.c:1383: dereferencing pointer to incomplete type
nv.c:1396: dereferencing pointer to incomplete type
nv.c:1399: dereferencing pointer to incomplete type
nv.c:1402: union has no member named `usecount'
nv.c: At top level:
nv.c:1410: parse error before "poll_table"
nv.c:1411: warning: `struct file' declared inside parameter list
nv.c: In function `nv_kern_poll':
nv.c:1414: `nvl' undeclared (first use in this function)
nv.c:1418: `file' undeclared (first use in this function)
nv.c:1419: parse error before ')' token
nv.c:1425: `wait' undeclared (first use in this function)
nv.c:1428: warning: implicit declaration of function `poll_wait'
nv.c: At top level:
nv.c:1494: warning: `struct file' declared inside parameter list
nv.c:1494: warning: `struct inode' declared inside parameter list
nv.c:1495: conflicting types for `nv_kern_ioctl'
nv.c:119: previous declaration of `nv_kern_ioctl'
nv.c: In function `nv_kern_ioctl':
nv.c:1497: `nvl' undeclared (first use in this function)
nv.c:1501: parse error before ')' token
nv.c:1501: dereferencing pointer to incomplete type
nv.c:1511: warning: implicit declaration of function `atomic_set'
nv.c:1511: union has no member named `usecount'
nv.c:1519: `tnvl' undeclared (first use in this function)
nv.c:1532: warning: implicit declaration of function `copy_from_user'
nv.c:1553: warning: implicit declaration of function `copy_to_user'
nv.c:1557: warning: left-hand operand of comma expression has no effect
nv.c:1557: warning: value computed is not used
nv.c: In function `nv_kern_isr':
nv.c:1646: `nvl' undeclared (first use in this function)
nv.c: In function `nv_kern_bh':
nv.c:1663: `nvl' undeclared (first use in this function)
nv.c:1663: parse error before ')' token
nv.c: In function `nv_kern_rc_timer':
nv.c:1674: `nvl' undeclared (first use in this function)
nv.c:1674: parse error before ')' token
nv.c:1679: `jiffies' undeclared (first use in this function)
nv.c: At top level:
nv.c:1731: warning: `struct file' declared inside parameter list
nv.c:1731: warning: `struct inode' declared inside parameter list
nv.c:1732: conflicting types for `nv_kern_ctl_open'
nv.c:133: previous declaration of `nv_kern_ctl_open'
nv.c: In function `nv_kern_ctl_open':
nv.c:1734: `nvl' undeclared (first use in this function)
nv.c:1747: dereferencing pointer to incomplete type
nv.c:1749: union has no member named `usecount'
nv.c:1758: sizeof applied to an incomplete type
nv.c:1758: `GFP_KERNEL' undeclared (first use in this function)
nv.c:1761: sizeof applied to an incomplete type
nv.c: At top level:
nv.c:1788: warning: `struct file' declared inside parameter list
nv.c:1788: warning: `struct inode' declared inside parameter list
nv.c:1789: conflicting types for `nv_kern_ctl_close'
nv.c:134: previous declaration of `nv_kern_ctl_close'
nv.c: In function `nv_kern_ctl_close':
nv.c:1790: dereferencing pointer to incomplete type
nv.c:1798: `nvl' undeclared (first use in this function)
nv.c:1798: parse error before ')' token
nv.c:1807: `current' undeclared (first use in this function)
nv.c:1810: dereferencing pointer to incomplete type
nv.c:1811: dereferencing pointer to incomplete type
nv.c:1812: dereferencing pointer to incomplete type
nv.c:1814: union has no member named `usecount'
nv.c: At top level:
nv.c:1827: parse error before "poll_table"
nv.c:1828: warning: `struct file' declared inside parameter list
nv.c: In function `nv_kern_ctl_poll':
nv.c:1830: `nvl' undeclared (first use in this function)
nv.c:1834: parse error before ')' token
nv.c:1834: `file' undeclared (first use in this function)
nv.c:1837: `O_NONBLOCK' undeclared (first use in this function)
nv.c:1840: `wait' undeclared (first use in this function)
nv.c: In function `nv_set_hotkey_occurred_flag':
nv.c:1866: request for member `nv_state' in something not a structure or union
nv.c:1867: request for member `nv_state' in something not a structure or union
nv.c:1868: request for member `nv_state' in something not a structure or union
nv.c:1870: warning: implicit declaration of function `wake_up_interruptible'
nv.c:1870: request for member `event_queue' in something not a structure or union
nv.c: In function `nv_kern_read_cardinfo':
nv.c:1951: dereferencing pointer to incomplete type
nv.c:1956: warning: implicit declaration of function `sprintf'
nv.c:1971: warning: passing arg 1 of `nvos_find_agp_capability' from incompatible pointer type
nv.c: In function `nv_kern_read_agpinfo':
nv.c:2012: dereferencing pointer to incomplete type
nv.c:2016: dereferencing pointer to incomplete type
nv.c:2025: warning: passing arg 1 of `nvos_find_agp_capability' from incompatible pointer type
nv.c: In function `nv_kern_read_status':
nv.c:2067: warning: passing arg 1 of `nvos_find_agp_capability' from incompatible pointer type
nv.c:2075: warning: passing arg 1 of `nvos_find_agp_capability' from incompatible pointer type
nv.c: In function `nv_find_kernel_mapping':
nv.c:2131: parse error before ')' token
nv.c:2151: warning: return makes pointer from integer without a cast
nv.c:2158: parse error before ')' token
nv.c: In function `nv_find_agp_kernel_mapping':
nv.c:2185: parse error before ')' token
nv.c: In function `nv_get_phys_address':
nv.c:2218: `pgd_t' undeclared (first use in this function)
nv.c:2218: `pg_dir' undeclared (first use in this function)
nv.c:2219: `pmd_t' undeclared (first use in this function)
nv.c:2219: `pg_mid_dir' undeclared (first use in this function)
nv.c:2220: `pte_t' undeclared (first use in this function)
nv.c:2220: `pte__' undeclared (first use in this function)
nv.c:2220: `pte' undeclared (first use in this function)
nv.c:2220: warning: left-hand operand of comma expression has no effect
nv.c:2229: `PAGE_OFFSET' undeclared (first use in this function)
nv.c:2229: `high_memory' undeclared (first use in this function)
nv.c:2230: warning: implicit declaration of function `__pa'
nv.c:2233: `init_mm' undeclared (first use in this function)
nv.c:2235: `current' undeclared (first use in this function)
nv.c:2241: warning: implicit declaration of function `pmd_val'
nv.c:2250: parse error before ')' token
nv.c:2256: warning: implicit declaration of function `pte_val'
nv.c: In function `nv_alloc_pages':
nv.c:2279: `nvl' undeclared (first use in this function)
nv.c:2279: parse error before ')' token
nv.c: In function `nv_free_pages':
nv.c:2423: `nvl' undeclared (first use in this function)
nv.c:2423: parse error before ')' token
nv.c: In function `nv_lock_init_locks':
nv.c:2502: `nvl' undeclared (first use in this function)
nv.c:2502: parse error before ')' token
nv.c:2506: warning: implicit declaration of function `spin_lock_init'
nv.c: In function `nv_lock_rm':
nv.c:2515: `nvl' undeclared (first use in this function)
nv.c:2515: parse error before ')' token
nv.c:2517: warning: implicit declaration of function `spin_unlock_wait'
nv.c:2518: warning: implicit declaration of function `spin_lock_irq'
nv.c: In function `nv_unlock_rm':
nv.c:2525: `nvl' undeclared (first use in this function)
nv.c:2525: parse error before ')' token
nv.c:2527: warning: implicit declaration of function `spin_unlock_irq'
nv.c: In function `nv_lock_ldata':
nv.c:2534: `nvl' undeclared (first use in this function)
nv.c:2534: parse error before ')' token
nv.c:2537: warning: implicit declaration of function `spin_lock'
nv.c: In function `nv_unlock_ldata':
nv.c:2544: `nvl' undeclared (first use in this function)
nv.c:2544: parse error before ')' token
nv.c:2546: warning: implicit declaration of function `spin_unlock'
nv.c: In function `nv_lock_at':
nv.c:2554: `nvl' undeclared (first use in this function)
nv.c:2554: parse error before ')' token
nv.c: In function `nv_unlock_at':
nv.c:2564: `nvl' undeclared (first use in this function)
nv.c:2564: parse error before ')' token
nv.c: In function `nv_post_event':
nv.c:2581: `nvl' undeclared (first use in this function)
nv.c:2585: dereferencing pointer to incomplete type
nv.c:2586: parse error before ')' token
nv.c:2586: dereferencing pointer to incomplete type
nv.c: In function `nv_post_vblank':
nv.c:2603: `nvl' undeclared (first use in this function)
nv.c:2603: parse error before ')' token
nv.c: In function `nv_agp_init':
nv.c:2661: warning: implicit declaration of function `inter_module_get'
nv.c:2662: warning: implicit declaration of function `inter_module_put'
nv.c: In function `nv_agp_translate_address':
nv.c:2743: parse error before ')' token
nv.c: In function `nv_start_rc_timer':
nv.c:2789: `nvl' undeclared (first use in this function)
nv.c:2789: parse error before ')' token
nv.c:2799: `jiffies' undeclared (first use in this function)
nv.c: In function `nv_stop_rc_timer':
nv.c:2810: `nvl' undeclared (first use in this function)
nv.c:2810: parse error before ')' token
nv-linux.h: At top level:
nv-linux.h:280: storage size of `rc_timer' isn't known
nv.c:144: storage size of `nv_fops' isn't known
nv.c:1027: storage size of `nv_vm_ops' isn't known
make: *** [nv.o] Error 1

Thanks,

Eric
 
Old 01-10-2003, 07:53 AM   #4
LordChaos
LQ Newbie
 
Registered: Jan 2003
Location: Amsterdam, The Netherlands
Distribution: Gentoo (2.4.20-gentoo-r5)
Posts: 26

Original Poster
Rep: Reputation: 15
RPM

Hi,

Using the ordinary rpm I get the following result:

[root@gateway800 downloads]# rpm -Uvh NVIDIA_kernel-1.0-4191.rh80up.i686.rpm
Preparing... ########################################### [100%]
1:NVIDIA_kernel ########################################### [100%]
modprobe: Can't locate module nvidia

Failed to install nvidia.o

Eric
 
Old 01-10-2003, 08:00 AM   #5
LordChaos
LQ Newbie
 
Registered: Jan 2003
Location: Amsterdam, The Netherlands
Distribution: Gentoo (2.4.20-gentoo-r5)
Posts: 26

Original Poster
Rep: Reputation: 15
Talking Solved

Okay,

I found the problem, there was a symbolic link called "linux-2.4" in /usr/src instead of the usual "linux" symbolic link. Stupid I didn't think earlier about this. So the kernel sources couldn't been found :-).

Cheers,

Eric
 
Old 01-11-2003, 03:11 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Is everything correct now?
 
Old 01-13-2003, 10:14 AM   #7
LordChaos
LQ Newbie
 
Registered: Jan 2003
Location: Amsterdam, The Netherlands
Distribution: Gentoo (2.4.20-gentoo-r5)
Posts: 26

Original Poster
Rep: Reputation: 15
Thumbs up Working okay

Yep,

Everything is working fine now, thanks for your help.

Eric

Last edited by LordChaos; 01-13-2003 at 10:16 AM.
 
Old 01-18-2003, 08:10 AM   #8
Sunspot101
LQ Newbie
 
Registered: Jan 2003
Location: Philippines
Distribution: Mandrake 9
Posts: 1

Rep: Reputation: 0
Re: Solved

Quote:
Originally posted by LordChaos
Okay,

I found the problem, there was a symbolic link called "linux-2.4" in /usr/src instead of the usual "linux" symbolic link. Stupid I didn't think earlier about this. So the kernel sources couldn't been found :-).

Cheers,

Eric


excuse me, may you please explain further this part?
actually i am having the same problem that you have encountered and i was glad that i wasn't the only one in this world experiencing it.

the problem really was that X won't start when I type startx at the prompt. the monitor would just go black and the computer will hang (even though that i have entered right specs from the monitor manual in the setup). tried configuring settings by using xf86config but to no avail. tried the one that membrax suggested but still, nothing happens. tried to update nvidia drivers but nvidia.o problems emerged (it said it was missing or it doesn't exist).

my distro is RH8, kernel 2.4.18-14 on i686
nVidia A7N266-VM motherboard

i will just post more info if needed.

thanx in advance. =)
 
Old 01-18-2003, 03:58 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You need to have kernel-source package installed. Then, look if you have /usr/src/linux directory. If not, make it a symlink to the dir with the source (/usr/src/linux-2.4 in LordChaos' case), or just copy it . Then the compilation should start without problems.
 
Old 02-18-2003, 08:50 AM   #10
bobster666
Member
 
Registered: Jan 2003
Location: London, U.K.
Distribution: RH 8.0
Posts: 30

Rep: Reputation: 15
hi, ive also been having the same problem with installing the nvidia drivers on redhat 8, and when rpm -ivh the kernel rpm i get the message:

rpm -ivh NVIDIA_kernel-1.0-4191.rh80up_2.4.18_18.8.0.i686.rpm
Preparing... ########################################### [100%]
1:NVIDIA_kernel ########################################### [100%]
modprobe: Can't locate module nvidia

Failed to install nvidia.o

error: %post(NVIDIA_kernel-1.0-4191.rh80up_2.4.18_18.8.0) scriptlet failed, exit status 1


My src code is also in /usr/src/linux-2.4.18-14, so i set up a new link as you said in the /usr/src directory from /usr/src/linux to /usr/src/linux-2.4.18-14. (A link from linux-2.4 in the same dir already exists to that source code dir)

Unfortunately im still getting the same message if i try to rpm the file. I have already run NVchooser to ensure it is the right rpm. If I check the contents of the linux source directory now i get the following list, if that is any use:



[root@chameleon linux]# dir
abi CREDITS fs kernel mm Rules.make
arch crypto include lib net scripts
configs Documentation init MAINTAINERS README
COPYING drivers ipc Makefile REPORTING-BUGS
 
Old 02-18-2003, 02:57 PM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
If you use customized kernel use source version of Nvidia driver.
Quote:
rpm -ivh NVIDIA_kernel-1.0-4191.rh80up_2.4.18_18.8.0.i686.rpm
and
Quote:
My src code is also in /usr/src/linux-2.4.18-14
so it's not the same version. It looks that the module is copied to the module directory of older kernel and that's the main problem.
 
Old 02-19-2003, 03:21 AM   #12
bobster666
Member
 
Registered: Jan 2003
Location: London, U.K.
Distribution: RH 8.0
Posts: 30

Rep: Reputation: 15
thanks a lot! that did it! Ive finally got them running
 
  


Reply



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
nvidia ethernet drivers and Red Hat Kernel (2.4.20-28.9) apoc013 Linux - Newbie 2 01-22-2004 03:41 PM
Red Hat 9 & NVIDIA valued customer Red Hat 1 09-21-2003 08:43 PM
nvidia drivers w/ red hat 9 Norky Linux - Hardware 4 06-24-2003 10:41 PM
problems installing Nvidia drivers on Red hat 8.0 Kilahchris Linux - Hardware 1 01-26-2003 09:09 PM
Installing Nvidia Drivers on Red Hat 6.2 tracyjts Linux - Software 1 06-06-2001 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration