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

Newegg Daily Deals

Thread Tools
Old 06-16-03, 12:58 PM   #1
Registered User
Join Date: Jun 2003
Posts: 3
Unhappy Cannot complie kernel module - Debian, custom kernel...

Hey hey.
I cannot get the 4363 kernel module to compile at all - and am not well versed enough in these things to have a clue what's wrong.

I'm using a 2.5.67 kernel, so of course I applied the patch from www.minion.de ("patch < ../NVIDIA_kernel-1.0-4363-2.5.diff" from the module's source dir, correct?) .. all my kernel headers & various other config bits should be current; everything I've checked appears consistent with the running kernel.

cd to the kernel module source dir, run "make", and get the attached output:

In file included from /root/NVIDIA_kernel-1.0-4363/nv.c:14:
/root/NVIDIA_kernel-1.0-4363/nv-linux.h:160: conflicting types for `agp_kern_info'
include/linux/agp_backend.h:98: previous declaration of `agp_kern_info'
/root/NVIDIA_kernel-1.0-4363/nv-linux.h:161: conflicting types for `agp_memory'
include/linux/agp_backend.h:125: previous declaration of `agp_memory'
/root/NVIDIA_kernel-1.0-4363/nv.c:111: parse error before `nv_kern_isr'
/root/NVIDIA_kernel-1.0-4363/nv.c:111: warning: type defaults to `int' in declaration of `nv_kern_isr'
/root/NVIDIA_kernel-1.0-4363/nv.c:111: warning: data definition has no type or storage class
/root/NVIDIA_kernel-1.0-4363/nv.c: In function `nv_kern_open':
/root/NVIDIA_kernel-1.0-4363/nv.c:1091: warning: passing arg 2 of `request_irq' from incompatible pointer type
/root/NVIDIA_kernel-1.0-4363/nv.c: At top level:
/root/NVIDIA_kernel-1.0-4363/nv.c:1597: parse error before `nv_kern_isr'
/root/NVIDIA_kernel-1.0-4363/nv.c:1602: warning: return-type defaults to `int'
/root/NVIDIA_kernel-1.0-4363/nv.c: In function `nv_kern_isr':
/root/NVIDIA_kernel-1.0-4363/nv.c:1614: `IRQ_HANDLED' undeclared (first use in this function)
/root/NVIDIA_kernel-1.0-4363/nv.c:1614: (Each undeclared identifier is reported only once
/root/NVIDIA_kernel-1.0-4363/nv.c:1614: for each function it appears in.)
/root/NVIDIA_kernel-1.0-4363/nv.c:1615: warning: control reaches end of non-void function
make[2]: *** [/root/NVIDIA_kernel-1.0-4363/nv.o] Error 1
make[1]: *** [/root/NVIDIA_kernel-1.0-4363] Error 2
make: *** [module] Error 1
skweek is offline   Reply With Quote
Old 06-16-03, 04:02 PM   #2
Registered User
Join Date: Jun 2003
Posts: 3

I know nobody answered this, but for anybody reading.. fixed now
The offender was "nv-linux.h"; at around about line 161, there are a couple of #ifdefs - one relating to kernel versions, one relating to AGPGART (if I remember rightly) - which practically needed their directions reversing to resolve the duplicate/non-existant definitions of various things as reported in the errors in the first post.

Then the sodding driver wanted to link with things under the kernel source tree, and I had a clean source tree, not one in which a compile had been performed... easily fixed though (copy relevant config file out of /boot, then do "make clean/oldconfig/bzImage").

Am now running the latest version - I get the feeling the minion.de patch wasn't tested specifically on 2.5.67... shall have to see if there have been improvements worth upgrading for again yet.
skweek is offline   Reply With Quote
Old 06-16-03, 08:59 PM   #3
Registered User
Join Date: Sep 2002
Posts: 2,262

Might want to send your patches to the minion.de folks, they'd probably be interested.

Glad you at least got it working, though.
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 06-18-03, 01:16 AM   #4
Registered User
Join Date: Jun 2003
Posts: 3

maybe... if I knew diff/patch better I didn't check the original nv-linux.h, just the one post-patching, so I don't know if the code at fault was from minion.de or the original file. Plus with 2.5 being a development kernel, and me not using the latest version, it's iffy... I didn't look to see if the directives in the relevant #ifdefs were correct for other purposes, either, I just tweaked things until it compiled.

Anyway - doing a dist-upgrade to unstable as we speak, and couldn't help noticing a Debian-patched 2.5.69 kernel source package (I'm running 2.5.67), so I'll be reconfiguring and recompiling all sorts of things, NVIDIA drivers included.

3y3 h4v m4d 1inUx 5ki11z
skweek is offline   Reply With Quote

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
X Failed to load NVdriver c00lr4c3r NVIDIA Linux 13 10-22-02 01:44 PM
Error messages... HELP!!!! Imperito NVIDIA Linux 3 09-24-02 10:46 PM

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

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