When trying to compile gaming-sources 2.4.20-r4, i get the following errors. gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gaming-r4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp -nostdinc -iwithprefix include -DKBUILD_BASENAME=agpgart_be -DEXPORT_SYMTAB -c agpgart_be.c agpgart_be.c: In function `agp_generic_create_gatt_table': agpgart_be.c:580: warning: assignment from incompatible pointer type agpgart_be.c: In function `amd_create_gatt_table': agpgart_be.c:2453: warning: assignment from incompatible pointer type agpgart_be.c:2454: warning: assignment from incompatible pointer type agpgart_be.c: In function `amd_free_gatt_table': agpgart_be.c:2480: warning: assignment from incompatible pointer type agpgart_be.c:2481: warning: assignment from incompatible pointer type agpgart_be.c: At top level: agpgart_be.c:4941: `PCI_DEVICE_ID_VIA_P4X333' undeclared here (not in a function) agpgart_be.c:4941: initializer element is not constant agpgart_be.c:4941: (near initialization for `agp_bridge_info[48].device_id') agpgart_be.c:4946: initializer element is not constant agpgart_be.c:4946: (near initialization for `agp_bridge_info[48]') agpgart_be.c:4952: initializer element is not constant agpgart_be.c:4952: (near initialization for `agp_bridge_info[49]') agpgart_be.c:4973: initializer element is not constant agpgart_be.c:4973: (near initialization for `agp_bridge_info[50]') make[4]: *** [agpgart_be.o] Error 1 make[4]: Leaving directory `/usr/src/linux-2.4.20-gaming-r4/drivers/char/agp' make[3]: *** [first_rule] Error 2 make[3]: Leaving directory `/usr/src/linux-2.4.20-gaming-r4/drivers/char/agp' make[2]: *** [_subdir_agp] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.20-gaming-r4/drivers/char' make[1]: *** [_subdir_char] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.20-gaming-r4/drivers' make: *** [_dir_drivers] Error 2
I also have received this error. My machine has the VT8363/8365 AGP chipset and my graphics card is a radeon r100. It occured both when agpgart was compiled into the kernel and as a module, and did not occur when I removed the 'VIA chipset support' option (although this stops agp working despite the kernel compiling). I assume it is related to the inclusion of the nforce2 chipset support.
just fixed this error, youll need to emerge sync, rm /usr/portage/distfiles/patches-2.4.20-gaming-r4.tar.bz2 and redownload.