hello all,
i'm a noob to mesa.when i try to compile mesa by following the documentation,it returns thousands of errors. here i quate some of them

drivers/x11/glxapi.c:1052: error: dereferencing pointer to incomplete type
drivers/x11/glxapi.c:1052: error: `pbuffer' undeclared (first use in this functi on)
drivers/x11/glxapi.c:1052: error: `buffer' undeclared (first use in this functio n)
drivers/x11/glxapi.c: At top level:
drivers/x11/glxapi.c:1057: error: syntax error before '*' token
drivers/x11/glxapi.c:1058: error: `glXDrawableAttribARB' declared as function re turning a function
drivers/x11/glxapi.c: In function `glXDrawableAttribARB':
drivers/x11/glxapi.c:1060: error: `dpy' undeclared (first use in this function)
drivers/x11/glxapi.c:1062: error: `False' undeclared (first use in this function )
drivers/x11/glxapi.c:1063: error: dereferencing pointer to incomplete type
drivers/x11/glxapi.c:1063: error: `draw' undeclared (first use in this function)
drivers/x11/glxapi.c:1063: error: `attribList' undeclared (first use in this fun ction)
drivers/x11/glxapi.c: In function `_glxapi_get_dispatch_table_size':
drivers/x11/glxapi.c:1126: error: invalid application of `sizeof' to incomplete type `_glxapi_table'

What's wrong with that?i have tried to figure it out for 1 week but nothing helps. So can someone tell me how to solve this problem?thanks in advance. anyway my system is fedora core3 and the cpu is amd duron.