nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   kernel compile error (http://www.nvnews.net/vbulletin/showthread.php?t=14055)

vikool 06-28-03 12:43 PM

kernel compile error
 
i wonder if anyone has seen this before. When i recompile my kernel, after selecting, /dev/agpgart (AGP Support) as a module
my 'make modules' exits with the following error :

make -C agp modules
make[3]: Entering directory `/usr/src/linux-2.4.20-8/drivers/char/agp'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-8/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=agpgart_fe -c -o agpgart_fe.o agpgart_fe.c
In file included from /usr/src/linux-2.4.20-8/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.20-8/include/linux/list.h:6,
from /usr/src/linux-2.4.20-8/include/linux/module.h:12,
from agpgart_fe.c:31:
/usr/src/linux-2.4.20-8/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /usr/src/linux-2.4.20-8/include/linux/modversions.h:132,
from <command line>:1:
/usr/src/linux-2.4.20-8/include/linux/modules/i386_ksyms.ver:92:1: warning: this is the location of the previous definition
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-8/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=agpgart_be -DEXPORT_SYMTAB -c agpgart_be.c
In file included from /usr/src/linux-2.4.20-8/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.20-8/include/linux/list.h:6,
from /usr/src/linux-2.4.20-8/include/linux/module.h:12,
from agpgart_be.c:34:
/usr/src/linux-2.4.20-8/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /usr/src/linux-2.4.20-8/include/linux/modversions.h:132,
from <command line>:1:
/usr/src/linux-2.4.20-8/include/linux/modules/i386_ksyms.ver:92:1: warning: this is the location of the previous definition
agpgart_be.c: In function `nvidia_generic_setup':
agpgart_be.c:4347: structure has no member named `num_of_masks'
make[3]: *** [agpgart_be.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/char/agp'
make[2]: *** [_modsubdir_agp] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/char'
make[1]: *** [_modsubdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/drivers'
make: *** [_mod_drivers] Error 2

Any help would be appreciated.

thanks

bwkaz 06-28-03 04:21 PM

Re: kernel compile error
 
No, I haven't seen it before, but I'll take a shot anyway. ;)

Quote:

Originally posted by vikool
agpgart_be.c: In function `nvidia_generic_setup':
agpgart_be.c:4347: structure has no member named `num_of_masks'

I assume you've tried turning off AGPGART, and if you do that, you don't get this error, right?

Where did you get this kernel, 2.4.20-8, from?

If you look at agpgart_be.c, on line 4347, what does it say?

How is the agp_bridge_data struct defined, in the drivers/char/agp/agp.h file? Does it have a num_of_masks member according to that file?

You didn't patch your kernel before compiling it, did you? If you did, where'd you get the patch? (because in my 2.4.20 tree, the num_of_masks member is there, but in my 2.4.21, it's gone -- that, plus the fact that this is an nvidia initializing function (for the nForce AGP, I'd assume), makes me think you or RedHat applied the 2.4.20 nForce AGP patch against their not-close-enough-to-2.4.20 kernel).

boeckelr 09-23-03 08:19 PM

bwkaz,

did you ever figure out how to fix this problem?

this is the exact same thing that happened to me.

btw kernel 2.4.20-8 is what the install gave me. i havent done anything to it.

so does anyone know what bwkaz did wrong, and how to do it right? if so i am a newbie w/linux.

thanks,
mike


All times are GMT -5. The time now is 02:11 PM.

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