[Xcb] Generated extensions (e.g., render.c) fail to build on Sol.
Travis Spencer
tspencer+xcb at cs.pdx.edu
Fri Apr 1 18:20:57 PST 2005
The C code that XML-XCB generates fails to build on Solaris 9. The
code that is creates causes a parsing error when compiled w/ gcc 3.4.
I've attached a diff of what I had to change to get it to compile.
I'm not sure if the altered code will break other things or not.
The general form of the errant code is this:
XCBExtension XCBXevieId = { "{@extension-xname" }};
The extra closing brace causes the compilation to fail. I would
suspect that line should read
XCBExtension XCBXevieId = { "{@extension-xname}" };
I'm not sure why this is happening on Solaris and not Linux. Perhaps
its the version of xsltproc that I'm using. My version "was compiled
against libxml 20423, libxslt 10019 and libexslt 710" (from the output
of xsltproc when run w/ the --version flag). I'll get a new version
of xsltproc if you guys suspect that this is the cause.
--
Regards,
Travis Spencer
-------------- next part --------------
*** bigreq.c~ Fri Apr 1 11:13:23 2005
--- bigreq.c Fri Apr 1 11:19:48 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "bigreq.h"
! XCBExtension XCBBigRequestsId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBBigRequestsInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "bigreq.h"
! XCBExtension XCBBigRequestsId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBBigRequestsInit(XCBConnection *c)
{
*** composite.c~ Fri Apr 1 11:13:23 2005
--- composite.c Fri Apr 1 11:19:49 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "composite.h"
! XCBExtension XCBCompositeId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBCompositeInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "composite.h"
! XCBExtension XCBCompositeId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBCompositeInit(XCBConnection *c)
{
*** damage.c~ Fri Apr 1 11:13:24 2005
--- damage.c Fri Apr 1 11:19:54 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "damage.h"
! XCBExtension XCBDamageId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBDamageInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "damage.h"
! XCBExtension XCBDamageId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBDamageInit(XCBConnection *c)
{
*** dpms.c~ Fri Apr 1 11:13:29 2005
--- dpms.c Fri Apr 1 11:20:13 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "dpms.h"
! XCBExtension XCBDPMSId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBDPMSInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "dpms.h"
! XCBExtension XCBDPMSId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBDPMSInit(XCBConnection *c)
{
*** glx.c~ Fri Apr 1 11:13:25 2005
--- glx.c Fri Apr 1 11:19:57 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "glx.h"
! XCBExtension XCBGLXId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBGLXInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "glx.h"
! XCBExtension XCBGLXId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBGLXInit(XCBConnection *c)
{
*** randr.c~ Fri Apr 1 11:13:26 2005
--- randr.c Fri Apr 1 11:20:07 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "randr.h"
! XCBExtension XCBRandRId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBRandRInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "randr.h"
! XCBExtension XCBRandRId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBRandRInit(XCBConnection *c)
{
*** render.c~ Fri Apr 1 11:13:29 2005
--- render.c Fri Apr 1 11:20:10 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "render.h"
! XCBExtension XCBRenderId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBRenderInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "render.h"
! XCBExtension XCBRenderId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBRenderInit(XCBConnection *c)
{
*** shape.c~ Fri Apr 1 11:13:26 2005
--- shape.c Fri Apr 1 11:20:04 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "shape.h"
! XCBExtension XCBShapeId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBShapeInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "shape.h"
! XCBExtension XCBShapeId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBShapeInit(XCBConnection *c)
{
*** shm.c~ Fri Apr 1 11:13:25 2005
--- shm.c Fri Apr 1 11:20:00 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "shm.h"
! XCBExtension XCBShmId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBShmInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "shm.h"
! XCBExtension XCBShmId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBShmInit(XCBConnection *c)
{
*** sync.c~ Fri Apr 1 11:13:30 2005
--- sync.c Fri Apr 1 11:20:15 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "sync.h"
! XCBExtension XCBSyncId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBSyncInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "sync.h"
! XCBExtension XCBSyncId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBSyncInit(XCBConnection *c)
{
*** xc_misc.c~ Fri Apr 1 11:13:30 2005
--- xc_misc.c Fri Apr 1 11:20:18 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "xc_misc.h"
! XCBExtension XCBXCMiscId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBXCMiscInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "xc_misc.h"
! XCBExtension XCBXCMiscId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBXCMiscInit(XCBConnection *c)
{
*** xevie.c~ Fri Apr 1 11:13:30 2005
--- xevie.c Fri Apr 1 11:20:21 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "xevie.h"
! XCBExtension XCBXevieId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBXevieInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "xevie.h"
! XCBExtension XCBXevieId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBXevieInit(XCBConnection *c)
{
*** xf86dri.c~ Fri Apr 1 11:13:30 2005
--- xf86dri.c Fri Apr 1 11:20:24 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "xf86dri.h"
! XCBExtension XCBXF86DriId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBXF86DriInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "xf86dri.h"
! XCBExtension XCBXF86DriId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBXF86DriInit(XCBConnection *c)
{
*** xfixes.c~ Fri Apr 1 11:13:32 2005
--- xfixes.c Fri Apr 1 11:20:26 2005
***************
*** 8,14 ****
#include "xcbext.h"
#include "xfixes.h"
! XCBExtension XCBXFixesId = { "{@extension-xname" }};
const XCBQueryExtensionRep *XCBXFixesInit(XCBConnection *c)
{
--- 8,14 ----
#include "xcbext.h"
#include "xfixes.h"
! XCBExtension XCBXFixesId = { "{@extension-xname" };
const XCBQueryExtensionRep *XCBXFixesInit(XCBConnection *c)
{
More information about the xcb
mailing list