On Mon, 29 Mar 2004 11:34:43 +0200 Sem vd Wal <[EMAIL PROTECTED]> wrote:
> >On Mon, 29 Mar 2004 09:54:35 UT > >[EMAIL PROTECTED] wrote: > >[snip] > > > > > >>>>**** > >>>> > >>>> > >>>>libGL: XF86DRIGetClientDriverName: 6.5.3 mach64 (screen 0) > >>>> > >>>> > >>>>libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/mach64_dri.so > >>>> > >>>> > >>>>libGL error: dlopen /usr/X11R6/lib/modules/dri/mach64_dri.so failed > >>>> > >>>> > >>>(/usr/X11R6/lib/modules/dri/mach64_dri.so: undefined symbol: > >>> > >>> > >>>_swrast_alloc_aux_buffers) > >>> > >>> > >>>>libGL error: unable to find driver: mach64_dri.so > >>>> > >>>> > >>>>**** > >>>> > >>>> > >>>If you compiled from source try "make Everything" or "make World". There > >>> > >>> > >>>are a few new source files that need to be compiled and linked to the > >>> > >>> > >>>driver, so the Makefiles must be regenerated. > >>> > >>> > >> > >>I used "make World" for the compiling and then "make install" for installing :P. > >> > >>I followed the building tutorial from the dri.sourceforge.net site. > >> > >> > >[snip] > > > > > >>Could you tell me where this _swrast_alloc_aux_buffers comes from? Is it a library > >>outside of XFree86 wich i'm missing? > >> > >> > >> > > > >It's part of mesa and should get linked to the 3D driver. So it is > >outside the Xserver. That's why it should never crash the server. What > >happens is that libGL tries to load the mach64 3D driver. The driver has > >a missing symbol which means that s_auxbuffer.o was not linked to the 3D > >driver. So it fails with the error message you got. > > > >Make sure that you have up-to-date Mesa and DRI sources. Then after make > >World you should have symbolic links from > >xc/lib/GL/mesa/swrast/s_auxbuffer.c and s_auxbuffer.h to the respective > >Mesa source files, and there should be a s_auxbuffer.o in the same > >directory. In world.log in the command line that links mach64.so you > >should find s_auxbuffer.o > > > > > > > Your're absolutely right. That is the problem, there are no links to > those files in xc/lib/GL/mesa/swrast/. > And the name s_auxbuffer.o does not exist in the world.log file. > > So now I know what the problem is, but what do I do about it? Because as > far as I know, I used the latest sources (via "cvs -z3 > -d:pserver:[EMAIL PROTECTED]:/cvs/mesa co Mesa"), I > downloaded these sources after downloading the DRI sources. > > For dri sources I used "cvs -z3 > -d:pserver:[EMAIL PROTECTED]:/cvs/dri co > -rmach64-0-0-7-branch xc" > I did not download anything, should i have downloaded the xc module (no > branch) too? That's the problem. The Imakefile was updated on the DRI trunk, but not on the branch. I don't have that branch here. Can someone update xc/lib/GL/mesa/swrast/Imakefile.inc? Sem, you can update that file manually for now. I'm attaching a patch. > > Sem Felix > [snip]
Index: Imakefile.inc =================================================================== RCS file: /cvs/dri/xc/xc/lib/GL/mesa/swrast/Imakefile.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- a/Imakefile.inc 9 Dec 2003 15:33:41 -0000 1.2 +++ b/Imakefile.inc 21 Mar 2004 21:18:43 -0000 1.3 @@ -11,6 +11,7 @@ $(MESASWRASTBUILDDIR)s_accum.c \ $(MESASWRASTBUILDDIR)s_alpha.c \ $(MESASWRASTBUILDDIR)s_alphabuf.c \ + $(MESASWRASTBUILDDIR)s_auxbuffer.c \ $(MESASWRASTBUILDDIR)s_bitmap.c \ $(MESASWRASTBUILDDIR)s_blend.c \ $(MESASWRASTBUILDDIR)s_buffers.c \ @@ -48,6 +49,8 @@ LinkSourceFile(s_alpha.h, $(MESASRCDIR)/src/mesa/swrast) LinkSourceFile(s_alphabuf.c, $(MESASRCDIR)/src/mesa/swrast) LinkSourceFile(s_alphabuf.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_auxbuffer.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_auxbuffer.h, $(MESASRCDIR)/src/mesa/swrast) LinkSourceFile(s_bitmap.c, $(MESASRCDIR)/src/mesa/swrast) LinkSourceFile(s_blend.c, $(MESASRCDIR)/src/mesa/swrast) LinkSourceFile(s_blend.h, $(MESASRCDIR)/src/mesa/swrast) @@ -101,6 +104,7 @@ $(MESASWRASTBUILDDIR)s_accum.o \ $(MESASWRASTBUILDDIR)s_alpha.o \ $(MESASWRASTBUILDDIR)s_alphabuf.o \ + $(MESASWRASTBUILDDIR)s_auxbuffer.o \ $(MESASWRASTBUILDDIR)s_bitmap.o \ $(MESASWRASTBUILDDIR)s_blend.o \ $(MESASWRASTBUILDDIR)s_buffers.o \ @@ -131,6 +135,7 @@ $(MESASWRASTBUILDDIR)unshared/s_accum.o \ $(MESASWRASTBUILDDIR)unshared/s_alpha.o \ $(MESASWRASTBUILDDIR)unshared/s_alphabuf.o \ + $(MESASWRASTBUILDDIR)unshared/s_auxbuffer.o \ $(MESASWRASTBUILDDIR)unshared/s_bitmap.o \ $(MESASWRASTBUILDDIR)unshared/s_blend.o \ $(MESASWRASTBUILDDIR)unshared/s_buffers.o \ @@ -163,6 +168,7 @@ $(MESASWRASTBUILDDIR)debugger/s_accum.o \ $(MESASWRASTBUILDDIR)debugger/s_alpha.o \ $(MESASWRASTBUILDDIR)debugger/s_alphabuf.o \ + $(MESASWRASTBUILDDIR)debugger/s_auxbuffer.o \ $(MESASWRASTBUILDDIR)debugger/s_bitmap.o \ $(MESASWRASTBUILDDIR)debugger/s_blend.o \ $(MESASWRASTBUILDDIR)debugger/s_buffers.o \ @@ -192,6 +198,7 @@ $(MESASWRASTBUILDDIR)profiled/s_accum.o \ $(MESASWRASTBUILDDIR)profiled/s_alpha.o \ $(MESASWRASTBUILDDIR)profiled/s_alphabuf.o \ + $(MESASWRASTBUILDDIR)profiled/s_auxbuffer.o \ $(MESASWRASTBUILDDIR)profiled/s_bitmap.o \ $(MESASWRASTBUILDDIR)profiled/s_blend.o \ $(MESASWRASTBUILDDIR)profiled/s_buffers.o \