Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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
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 :-).
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.