glapi_x86.S is the trouble maker, it explicity generates calls to
_glapi_Dispatch.

A little snippet from the output from the preprocessor for this file
looks like this

     .balign 16; .globl mglNewList ; .type mglNewList, function;
mglNewList: movl _glapi_Dispatch,%eax ; testl %eax,%eax ; je 1f ; jmp *4
* 0(%eax) ; 1: call _x86_get_dispatch ; jmp *4 * 0(%eax)


You'll note the mention of _glapi_Dispatch, It is glapi_x86.S  that I
modified to make it output _mglapi_Dispatch instead.

Heath.


-----Original Message-----
From: Brian Paul [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 03, 2006 12:30 PM
To: Heath Feather
Cc: [email protected]
Subject: Re: [Mesa3d-dev] glx_mangle.h seems to be missing entries and
_glapi_Dispatch not defined

Heath Feather wrote:
> (BTW, I'm using 6.5.1, forgot to mention that in the earlier message)
> 
> I added glapi.h in glthread.h, but I still find _glapi_Dispatch
> undefined when I "nm -oB" the mangled libraries. However the
> _mglapi_Dispatch is there and defined, so I think the issue is that it
> "_glapi_Dispatch" is being referenced elsewhere in Mesa (glapi_x86,
when
> the mangled one should be instead.
> 
> This is the link error that leads me to believe this.
> 
>
../../output/tarkits/linux86_32/gcc323/opt/liblgoMesa0651/lib/32bit/libl
> goMesaGLm.a(glapi_x86.o): In function `mglNewList':
> glapi_x86.o(.text+0x21): undefined reference to `_glapi_Dispatch'
> 
> I messed around with this glapi_x86.S assembly module, and changed all
> occurences in which `_glapi_Dispatch' was referenced to
> _mglapi_Dispatch, and now I can link. Still need to do more testing to
> see if it is actually working however.
> 
> So I am not sure as to whether the issue is that _mglapi_Dispatch is
> supposed to be the one called when running in mangled mode, or if
> _glapi_Dispatch is also supposed to be defined, and it isn't ?

It's suppsed to be _mglapi_Dispatch in mangled mode.

Maybe you can run 'nm' on the .o files to see which one is getting 
_glap_Dispatch.

-Brain

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to