Alan Coopersmith wrote:
> Brian Paul wrote:
> 
>> Alan Coopersmith wrote:
>>
>>> When trying to build 6.5.2 I'm getting these errors when linking libGL:
>>>
>>> ../../../bin/mklib -o GL -linker 'gcc' \
>>>          -major 1 -minor 2  \
>>>          -install ../../../lib -L/usr/X11/lib -R/usr/X11/lib -lX11 
>>> -lXext -lm -lpthread -lXxf86vm 
>>> -L/export/dev/alanc/XW_S11_7.2/open-src/lib/mesa/../../../proto-i386-svr4/usr/X11/lib
>>>  
>>> -R/usr/X11/lib -ldrm -lc glcontextmodes.o clientattrib.o compsize.o 
>>> eval.o glxcmds.o glxext.o glxextensions.o indirect.o indirect_init.o 
>>> indirect_size.o indirect_window_pos.o indirect_transpose_matrix.o 
>>> indirect_vertex_array.o indirect_vertex_program.o pixel.o 
>>> pixelstore.o render2.o renderpix.o single2.o singlepix.o vertarr.o 
>>> xfont.o glx_pbuffer.o glx_query.o glx_texture_compression.o dri_glx.o 
>>> XF86dri.o ../../../src/mesa/main/dispatch.o 
>>> ../../../src/mesa/glapi/glapi.o ../../../src/mesa/glapi/glthread.o
>>>
>>> mklib: Making SunOS shared library:  libGL.so
>>> ld: fatal: symbol `glAreTexturesResidentEXT' is multiply-defined:
>>>          (file indirect.o type=FUNC; file 
>>> ../../../src/mesa/main/dispatch.o type=FUNC);
>>
>>
>>
>> Which configuration are you building with?
> 
> 
> Well, um, solaris-x86-gcc-dri which I'm working on writing.   It worked
> fine with Mesa 6.5.1, but failed with 6.5.2.   I've attached it in its
> current form in case that helps explain anything.   Did I miss something
> in my config?
> 


Try adding -DGLX_INDIRECT_RENDERING to your CFLAGS.

In glapitemp.h (which is included by dispatch.c) there's tests like 
this for some functions:

#ifndef GLX_INDIRECT_RENDERING
KEYWORD1 GLboolean KEYWORD2 NAME(AreTexturesResidentEXT)(GLsizei n, 
const GLuint * textures, GLboolean * residences)
{
    RETURN_DISPATCH(AreTexturesResident, (n, textures, residences), 
(F, "glAreTexturesResidentEXT(%d, %p, %p);\n", n, (const void *) 
textures, (const void *) residences));
}
#endif /* GLX_INDIRECT_RENDERING */


I think the deal is GLX_INDIRECT_RENDERING is releted to whether or 
not we're building indirect GLX encoder functions (see 
src/glx/x11/indirect.c).  Since you are building a GLX-aware libGL 
with indirect rendering, you need to set that flag.


Ian could probably give a better explanation.

-Brian

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to