[Bug 733248] New: gl: GLintptr/GLsizeiptr/etc typechecks ignore GL_CFLAGS, potentially causing typedef redefinition errors from gst-libs/gst/gl/glprototypes/gstgl_compat.h at buildtime

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jul 16 06:18:06 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=733248
  GStreamer | gst-plugins-bad | 1.3.91

           Summary: gl: GLintptr/GLsizeiptr/etc typechecks ignore
                    GL_CFLAGS, potentially causing typedef redefinition
                    errors from
                    gst-libs/gst/gl/glprototypes/gstgl_compat.h at
                    buildtime
    Classification: Platform
           Product: GStreamer
           Version: 1.3.91
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: leio at gentoo.org
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


configure.ac is checking for GLintptr, GLsizeiptr and others with
AC_CHECK_TYPES without GL_CFLAGS, so if opengl headers are not in /usr/include
then they are not found and gstreamer compat typedefs are used for those.
However at buildtime of gst-libs/gl GL_CFLAGS IS used, so both headers are
included, and on some platforms those definitions aren't compatible, and it
will error out.

This happens to me on RPi with raspberrypi-userland patched to provide
pkg-config files, while shipping into a /opt/vc prefix still, with the
pkg-config files pointing there.
That also relies on including EGL_CFLAGS in GL_CFLAGS, which doesn't seem to be
the case right now, as they are always or almost always empty in the hardcoded
checks and while EGL_LIBS is added to GL_LIBS, EGL_CFLAGS is not added to
GL_CFLAGS; so I have an additional patch for that.

All this is needed so I can cleanly package it up for Gentoo Linux.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list