http://bugs.freedesktop.org/show_bug.cgi?id=13542

           Summary: GLX header doesn't protect all functions
           Product: Mesa
           Version: unspecified
          Platform: x86 (IA32)
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: GLX
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


As another user reported here:
http://www.nabble.com/--mesa3d-Bugs-1844243---GLX-header-definition-t4944614.html

In the header glx.h, all functions declarations are not encapsulated into the
consistent definitions (e.g. "#ifndef GLX_VERSION_1_x"). All defines are set at
the beginning of the header file ("#define GLX_VERSION_1_1 1", etc) 

In a mixed environment where a project uses GLEW but depends on a library that
includes glx.h, they will get this error:

/usr/include/GL/glx.h:202: error: declaration of C function 'void
glXCopyContext(Display*, __GLXcontextRec*, __GLXcontextRec*, long unsigned
int)' conflicts with
/usr/include/GL/glxew.h:118: error: previous declaration 'void
glXCopyContext(Display*, __GLXcontextRec*, __GLXcontextRec*, GLuint)' here

The reason being that the types don't agree for the last parameter. I've filed
a bug with GLEW to fix this on their end:

http://sourceforge.net/tracker/index.php?func=detail&aid=1845264&group_id=67586&atid=523274

But I think it also makes sense to encapsulate the functions in glx.h, thus
this report.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to