Bug 20457 - Missing <X11/X.h> include in X11/extensions/render.h ?
Summary: Missing <X11/X.h> include in X11/extensions/render.h ?
Status: RESOLVED DUPLICATE of bug 12578
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xrender (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-04 05:16 UTC by Rémi Cardona
Modified: 2009-03-04 06:09 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Rémi Cardona 2009-03-04 05:16:00 UTC
Here's a simple test-case that mimics what xulrunner does.

=============================
#include <X11/extensions/render.h>

int main (int argc, char** argv)
{
        return 0;
}
=============================

Here's the build result :

$ gcc render.c -o render-test `pkg-config --libs --cflags xrender`
In file included from render.c:1:
/usr/include/X11/extensions/render.h:29: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Glyph’
/usr/include/X11/extensions/render.h:30: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GlyphSet’
/usr/include/X11/extensions/render.h:31: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Picture’
/usr/include/X11/extensions/render.h:32: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PictFormat’

Adding a #include <X11/X.h> fixes the build issue (for the test case and xulrunner), but I haven't tried building anything else (mainly the server).

FTR, here's the Gentoo bug report : http://bugs.gentoo.org/238665

Thanks
Comment 1 Julien Cristau 2009-03-04 06:09:12 UTC

*** This bug has been marked as a duplicate of bug 12578 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.