[Mesa-dev] [Bug 96770] include/GL/mesa_glinterop.h:62: error: redefinition of typedef ‘GLXContext’

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jul 1 20:44:20 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=96770

            Bug ID: 96770
           Summary: include/GL/mesa_glinterop.h:62: error: redefinition of
                    typedef ‘GLXContext’
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Keywords: bisected, regression
          Severity: normal
          Priority: medium
         Component: Mesa core
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: vlee at freedesktop.org
        QA Contact: mesa-dev at lists.freedesktop.org
                CC: emil.l.velikov at gmail.com, maraeo at gmail.com,
                    tstellar at gmail.com

mesa: 07cc838b105dd3f34526db73064f1f21b452240e (master 12.1.0-devel)

Build error with GCC 4.4.

  Compiling src/glx/dri_common_interop.c ...
In file included from src/glx/dri_common_interop.c:33:
include/GL/mesa_glinterop.h:62: error: redefinition of typedef ‘GLXContext’
include/GL/glx.h:165: note: previous declaration of ‘GLXContext’ was here


commit 8472045b16b3e4621553fe451a20a9ba9f0d44b6
Author: Emil Velikov <emil.velikov at collabora.com>
Date:   Tue May 3 12:25:34 2016 +0100

    mesa_glinterop: remove inclusion of GLX header

    Since we only need partial information about the GLX symbols we can
    forward declare them and drop the include. Obviously each user of the
    said API will needs more than what's provides, so they'll include the
    GLX header.

    If they don't, the compiler will give us a nice warning ;-)

    Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Tested-by: Tom Stellard <thomas.stellard at amd.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160701/5de69527/attachment.html>


More information about the mesa-dev mailing list