Control: tags -1 moreinfo unreproducible

Hi,

On Tue, 2016-04-19 at 20:36 +0900, K.Ohta wrote:
>  I made a small program below and link to -lX11 -lGL at amd64;
> ---
> #include <stdio.h>
> #include <GL/glx.h>
> 
> int main(int argc, char *argv[])
> {
>    void *p1;
>    void *p2;
>    
>    p1 = (void *)glXGetProcAddress("glGetDebugMessageLog");
>    p2 = (void *)glXGetProcAddress("glGetDebugMessageLogARB");
>    
>    printf("glGetDebugMessageLog: %llx\n", p1);
>    printf("glGetDebugMessageLogARB: %llx\n", p2);

Your test program is faulty, you should use %p in these two printfs.

> But, with i386 (gcc -m32) , these addresses are different.
> ---
> glGetDebugMessageLog: f7fe8b1df7fd2000
> glGetDebugMessageLogARB: f7fe8b1df7fd2010
> ---
> I wonder this differents, addresses of amd64 are same, i386 are not
> :-(

On my system, those two symbols are aliases in libGL.so:

$ nm -D /usr/lib/i386-linux-gnu/libGL.so | grep glGetDebugMessageLog
0006dc30 T glGetDebugMessageLog
0006dc30 T glGetDebugMessageLogARB

and the corrected test program prints the same address.

Back onto the main bug report, I cannot reproduce this issue. Are you
totally sure you are using mesa libGL?

James

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to