Może to pomoże...
root@laptop:/lib/modules/fglrx/build_mod# cat make.sh.log
ATI module generator V 2.0
==========================
initializing...
build_date =pią mar 31 13:58:41 CEST 2006
uname -a =Linux laptop 2.4.31 #8 Sun Jun 5 19:08:07 PDT 2005 i686 unknown unknown GNU/Linux
uname -s =Linux
uname -m =i686
uname -r =2.4.31
uname -v =#8 Sun Jun 5 19:08:07 PDT 2005
uid=0(root) gid=0(root) grupy=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy)
.
drwxr-xr-x 118 root root 8192 2006-03-28 15:27 /usr/include
.
razem 16
drwxr-xr-x 2 root root 4096 2006-03-28 15:27 ATI
lrwxrwxrwx 1 root root 12 2006-03-28 00:28 linux -> linux-2.4.31
drwxr-xr-x 15 root root 4096 2005-06-06 03:17 linux-2.4.31
drwxr-xr-x 7 root root 4096 2003-10-29 07:08 rpm
drwxr-xr-x 2 root root 4096 2005-06-06 03:25 speakup-2.4.31
.
file /lib/modules/2.4.31/build/include/linux/agp_backend.h says: AGP=1
assuming default: SMP=0
assuming default: MODVERSIONS=0
.
CC=gcc
cc_version=3.3.6
found major but not minor version match for gcc and the ip-library
ls -l ./libfglrx_ip.a
lrwxrwxrwx 1 root root 20 2006-03-31 13:58 ./libfglrx_ip.a -> ./libfglrx_ip.a.GCC3
.
cleaning...
patching 'highmem.h'...
probing for VMA API version...
cc_ret_vma_240 = 0
cc_ret_vma_253 = 1
def_vma_api_version=-DFGL_LINUX240_VMA_API
doing script based build for kernel 2.4.x and similar
compiling './agpgart_be.c'...
gcc -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -O2 -D__KERNEL__ -DMODULE -fomit-frame-pointer -DATI_AGP_HOOK -DATI -DFGL -DFGL_RX -DFGL_CUSTOM_MODULE -DPAGE_ATTR_FIX=0 -Dfglrx -Ipatch/include -I/lib/modules/2.4.31/build/include -c ./agpgart_be.c -o agpgart_be.o
compiling './agp3.c'...
gcc -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -O2 -D__KERNEL__ -DMODULE -fomit-frame-pointer -DATI_AGP_HOOK -DATI -DFGL -DFGL_RX -DFGL_CUSTOM_MODULE -DPAGE_ATTR_FIX=0 -Dfglrx -Ipatch/include -I/lib/modules/2.4.31/build/include -c ./agp3.c -o agp3.o
compiling './i7505-agp.c'...
gcc -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -O2 -D__KERNEL__ -DMODULE -fomit-frame-pointer -DATI_AGP_HOOK -DATI -DFGL -DFGL_RX -DFGL_CUSTOM_MODULE -DPAGE_ATTR_FIX=0 -Dfglrx -Ipatch/include -I/lib/modules/2.4.31/build/include -c ./i7505-agp.c -o i7505-agp.o
compiling './nvidia-agp.c'...
gcc -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -O2 -D__KERNEL__ -DMODULE -fomit-frame-pointer -DATI_AGP_HOOK -DATI -DFGL -DFGL_RX -DFGL_CUSTOM_MODULE -DPAGE_ATTR_FIX=0 -Dfglrx -Ipatch/include -I/lib/modules/2.4.31/build/include -c ./nvidia-agp.c -o nvidia-agp.o
compiling './firegl_public.c'...
gcc -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -O2 -D__KERNEL__ -DMODULE -fomit-frame-pointer -DATI_AGP_HOOK -DATI -DFGL -DFGL_RX -DFGL_CUSTOM_MODULE -DPAGE_ATTR_FIX=0 -Dfglrx -DFGL_LINUX240_VMA_API -D__AGP__ -Ipatch/include -I/lib/modules/2.4.31/build/include -I/lib/modules/fglrx/build_mod -c ./firegl_public.c -o firegl_public.o
firegl_public.c:3621: warning: initialization from incompatible pointer type
firegl_public.c:3622: warning: initialization from incompatible pointer type
firegl_public.c:3623: warning: initialization from incompatible pointer type
firegl_public.c:3624: warning: initialization from incompatible pointer type
firegl_public.c:3625: warning: initialization from incompatible pointer type
firegl_public.c:3626: warning: initialization from incompatible pointer type
firegl_public.c:3627: warning: initialization from incompatible pointer type
firegl_public.c:3628: warning: initialization from incompatible pointer type
firegl_public.c:3630: warning: initialization from incompatible pointer type
firegl_public.c:3640: warning: function declaration isn't a prototype
firegl_public.c: In function `__ke_agp_allocate_memory_phys_list':
firegl_public.c:3970: warning: passing arg 3 of pointer to function makes integer from pointer without a cast
firegl_public.c: In function `__ke_agp_bind_memory':
firegl_public.c:4009: warning: passing arg 1 of pointer to function from incompatible pointer type
firegl_public.c: In function `__ke_agp_unbind_memory':
firegl_public.c:4022: warning: passing arg 1 of pointer to function from incompatible pointer type
linking of fglrx kernel module...
ld -r firegl_public.o agpgart_be.o agp3.o i7505-agp.o nvidia-agp.o ./libfglrx_ip.a -o fglrx.o
.
duplicating results into driver repository...
target location: /lib/modules/fglrx
copying fglrx.o
copying logfile of build
*** end of build log ***