Trying to get accelerated R350 working, cannot even compile

David D. Hagood wowbagger at sktc.net
Mon May 1 04:30:12 PDT 2006


I am trying to get the Free drivers for the R350 working (as I am so 
damn tired of the non-free drivers not tracking anything recent e.g. 
modular X), but I cannot get them to work.

I pulled the latest Mesa from CVS, built it, and installed it, but none 
of my programs will run direct rendering. In the X log I get:

drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 12, (OK)
drmOpenByBusid: drmOpenMinor returns 12
drmOpenByBusid: drmGetBusid reports pci:0000:02:00.0
(EE) AIGLX error: Calling driver entry point failed(EE) AIGLX: reverting 
to software rendering
(II) Loading local sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/lib/xorg/modules/extensions/libGLcore.so
(II) Module GLcore: vendor="X.Org Foundation"
         compiled for 7.0.0, module version = 1.0.0
         ABI class: X.Org Server Extension, version 0.3
(II) GLX: Initialized MESA-PROXY GL provider for screen 0

OK, so I tried to pull modular X from anoncvs.freedesktop.org, and build 
it. First I ran square into a problem in the kenrnel headers 
(/usr/include/linux/input.h using a kernel typedef kernel_ulong_t in 
struct input_device_id, but kernel_ulong_t is only defined if compiling 
the kernel). OK, so I protected the input_device_id with a #ifdef 
__KERNEL__, and that allowed compilation to proceed a bit further.

However, I now am getting the following errors:

  gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXFree86Server -DIN_MODULE 
-DXFree86Module -DXFree86LOADER -I/tmp/modular/include/xorg 
-I/tmp/modular/include -march=athlon-xp -mfpmath=sse,387 -O3 -MT 
ast_vgatool.lo -MD -MP -MF .deps/ast_vgatool.Tpo -c ast_vgatool.c  -fPIC 
-DPIC -o .libs/ast_vgatool.o
In file included from ast.h:23,
                  from ast_vgatool.c:58:
/usr/include/string.h:293: error: conflicting types for 'xf86memmove'
/usr/include/string.h:44: error: previous declaration of 'xf86memmove' 
was here
/usr/include/string.h:296: error: conflicting types for 'xf86bzero'
/tmp/modular/include/xorg/xf86_ansic.h:295: error: previous declaration 
of 'xf86bzero' was here
In file included from /usr/include/stdlib.h:438,
                  from ast.h:24,
                  from ast_vgatool.c:58:
/usr/include/sys/types.h:62: error: conflicting types for 'xf86dev_t'
/tmp/modular/include/xorg/xf86_libc.h:87: error: previous declaration of 
'xf86dev_t' was here
/usr/include/sys/types.h:110: error: conflicting types for 'xf86ssize_t'
/tmp/modular/include/xorg/xf86_libc.h:86: error: previous declaration of 
'xf86ssize_t' was here
In file included from /usr/include/stdlib.h:438,
                  from ast.h:24,
                  from ast_vgatool.c:58:
/usr/include/sys/types.h:151: error: duplicate 'unsigned'
In file included from ast.h:24,
                  from ast_vgatool.c:58:
/usr/include/stdlib.h:445:29: error: macro "random" passed 1 arguments, 
but takes just 0
/usr/include/stdlib.h:628:24: error: macro "abort" passed 1 arguments, 
but takes just 0
make[2]: *** [ast_vgatool.lo] Error 1
make[2]: Leaving directory 
`/home/wowbaggr/src/xorg/driver/xf86-video-ast/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/wowbaggr/src/xorg/driver/xf86-video-ast'

This is all under Fedora Core Rawhide.

Am I the only one seeing this?



More information about the xorg mailing list