LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 05-23-2006, 09:32 AM   #1
mohamedkaabi
LQ Newbie
 
Registered: May 2006
Posts: 6

Rep: Reputation: 0
`X_' undeclared error while compiling GTK


Hello all,

I'm compiling GTK+-2.8.17 under solaris and while compiling I get the following error:

Code:
gdkasync.c: In function `_gdk_x11_send_client_message_async':
gdkasync.c:259: error: `X_' undeclared (first use in this function)
gdkasync.c:259: error: (Each undeclared identifier is reported only once
gdkasync.c:259: error: for each function it appears in.)
gdkasync.c:259: error: parse error before "GetInputFocus"
gdkasync.c: In function `_gdk_x11_set_input_focus_safe':
gdkasync.c:352: error: `X_' undeclared (first use in this function)
gdkasync.c:352: error: parse error before "GetInputFocus"
make[4]: *** [gdkasync.lo] Error 1
make[4]: Leaving directory `/sw/master/gtk/gtk+-2.8.17/gdk/x11'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/sw/master/gtk/gtk+-2.8.17/gdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/sw/master/gtk/gtk+-2.8.17/gdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sw/master/gtk/gtk+-2.8.17'
make: *** [all] Error 2


I lloked around on Internet and I found this tip:

Quote:
Turns out the X11 header file /usr/include/X11/Xlibint.h contains the
following macro definition:

#define GetEmptyReq(name, req) \
WORD64ALIGN\
if ((dpy->bufptr + SIZEOF(xReq)) > dpy->bufmax)\
_XFlush(dpy);\
req = (xReq *) (dpy->last_req = dpy->bufptr);\
req->reqType = X_/**/name;\
req->length = 1;\
dpy->bufptr += SIZEOF(xReq);\
dpy->request++

This causes the variable GetInputFocus to be rendered by the preprocessor
as "X_ GetInputFocus" instead of "X_GetInputFocus", and boom.

The kludge workaround is to add #define ANSICPP above the #include for
X11/Xlibint.h.

Not sure what the real fix is - there may be a Solaris patch for it, not
sure.
First, I didn't find where is the #include for X11/Xlibint.h
and secondly, I'm not sure this is the solution!

Could anyone please help me?

Thanks and regards,
Mohamed
 
Old 05-24-2006, 01:56 AM   #2
mohamedkaabi
LQ Newbie
 
Registered: May 2006
Posts: 6

Original Poster
Rep: Reputation: 0
problem while compiling CAIRO with X support

Hello all,

I hope, I will see the end of the installation of GTK soon

I found the file containing the "#include <X11/Xlibint.h>

It's /GTK_Source_DIR/gdk/x11/gdkasync.c

So I added the #define ANSICPP and the problem was gone.

But then the make was looking cairo-xlib.h which was not there because Cairo was installed without the support of X

So I want back to re-install cairo with X support but this time I get the following error:
Code:
In file included from /sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:33,
                 from ../src/cairo-xlib-xrender.h:44,
                 from cairo-test.c:378:
/usr/include/X11/Xutil.h:117: error: parse error before "Bool"
/usr/include/X11/Xutil.h:120: error: parse error before "icon_pixmap"
/usr/include/X11/Xutil.h:121: error: parse error before "icon_window"
/usr/include/X11/Xutil.h:123: error: parse error before "icon_mask"
/usr/include/X11/Xutil.h:124: error: parse error before "window_group"
/usr/include/X11/Xutil.h:161: error: parse error before "Atom"
/usr/include/X11/Xutil.h:164: error: parse error before '}' token
/usr/include/X11/Xutil.h:207: error: parse error before "XPointer"
/usr/include/X11/Xutil.h:209: error: parse error before '}' token
/usr/include/X11/Xutil.h:254: error: parse error before "Visual"
/usr/include/X11/Xutil.h:268: error: parse error before '}' token
/usr/include/X11/Xutil.h:287: error: parse error before "Colormap"
/usr/include/X11/Xutil.h:295: error: parse error before "visualid"
/usr/include/X11/Xutil.h:296: error: parse error before "killid"
/usr/include/X11/Xutil.h:350: error: parse error before '*' token
/usr/include/X11/Xutil.h:356: error: parse error before '*' token
/usr/include/X11/Xutil.h:365: error: parse error before "XRectangle"
/usr/include/X11/Xutil.h:383: error: parse error before '*' token
/usr/include/X11/Xutil.h:410: error: parse error before '*' token
/usr/include/X11/Xutil.h:417: error: parse error before "XGetClassHint"
/usr/include/X11/Xutil.h:419: error: parse error before '*' token
/usr/include/X11/Xutil.h:425: error: parse error before "XGetIconSizes"
/usr/include/X11/Xutil.h:427: error: parse error before '*' token
/usr/include/X11/Xutil.h:434: error: parse error before "XGetNormalHints"
/usr/include/X11/Xutil.h:436: error: parse error before '*' token
/usr/include/X11/Xutil.h:442: error: parse error before "XGetRGBColormaps"
/usr/include/X11/Xutil.h:444: error: parse error before '*' token
/usr/include/X11/Xutil.h:452: error: parse error before "XGetSizeHints"
/usr/include/X11/Xutil.h:454: error: parse error before '*' token
/usr/include/X11/Xutil.h:461: error: parse error before "XGetStandardColormap"
/usr/include/X11/Xutil.h:463: error: parse error before '*' token
/usr/include/X11/Xutil.h:470: error: parse error before "XGetTextProperty"
/usr/include/X11/Xutil.h:472: error: parse error before '*' token
/usr/include/X11/Xutil.h:479: error: parse error before '*' token
/usr/include/X11/Xutil.h:481: error: parse error before '*' token
/usr/include/X11/Xutil.h:488: error: parse error before "XGetWMClientMachine"
/usr/include/X11/Xutil.h:490: error: parse error before '*' token
/usr/include/X11/Xutil.h:496: error: parse error before '*' token
/usr/include/X11/Xutil.h:498: error: parse error before '*' token
/usr/include/X11/Xutil.h:503: error: parse error before "XGetWMIconName"
/usr/include/X11/Xutil.h:505: error: parse error before '*' token
/usr/include/X11/Xutil.h:511: error: parse error before "XGetWMName"
/usr/include/X11/Xutil.h:513: error: parse error before '*' token
/usr/include/X11/Xutil.h:519: error: parse error before "XGetWMNormalHints"
/usr/include/X11/Xutil.h:521: error: parse error before '*' token
/usr/include/X11/Xutil.h:528: error: parse error before "XGetWMSizeHints"
/usr/include/X11/Xutil.h:530: error: parse error before '*' token
/usr/include/X11/Xutil.h:538: error: parse error before "XGetZoomHints"
/usr/include/X11/Xutil.h:540: error: parse error before '*' token
/usr/include/X11/Xutil.h:557: error: parse error before '*' token
/usr/include/X11/Xutil.h:564: error: parse error before '*' token
/usr/include/X11/Xutil.h:572: error: parse error before "XMatchVisualInfo"
/usr/include/X11/Xutil.h:574: error: parse error before '*' token
/usr/include/X11/Xutil.h:590: error: parse error before "XPointInRegion"
/usr/include/X11/Xutil.h:600: error: parse error before '*' token
/usr/include/X11/Xutil.h:618: error: parse error before '*' token
/usr/include/X11/Xutil.h:627: error: parse error before '*' token
/usr/include/X11/Xutil.h:635: error: parse error before '*' token
/usr/include/X11/Xutil.h:644: error: parse error before '*' token
/usr/include/X11/Xutil.h:652: error: parse error before '*' token
/usr/include/X11/Xutil.h:662: error: parse error before '*' token
/usr/include/X11/Xutil.h:671: error: parse error before '*' token
/usr/include/X11/Xutil.h:684: error: parse error before '*' token
/usr/include/X11/Xutil.h:693: error: parse error before '*' token
/usr/include/X11/Xutil.h:701: error: parse error before '*' token
/usr/include/X11/Xutil.h:709: error: parse error before '*' token
/usr/include/X11/Xutil.h:717: error: parse error before '*' token
/usr/include/X11/Xutil.h:725: error: parse error before '*' token
/usr/include/X11/Xutil.h:733: error: parse error before '*' token
/usr/include/X11/Xutil.h:747: error: parse error before '*' token
/usr/include/X11/Xutil.h:761: error: parse error before '*' token
/usr/include/X11/Xutil.h:770: error: parse error before '*' token
/usr/include/X11/Xutil.h:778: error: parse error before '*' token
/usr/include/X11/Xutil.h:787: error: parse error before '*' token
/usr/include/X11/Xutil.h:801: error: parse error before "XStringListToTextProperty"
/usr/include/X11/Xutil.h:805: error: parse error before "XTextProperty"
/usr/include/X11/Xutil.h:819: error: parse error before '*' token
/usr/include/X11/Xutil.h:829: error: parse error before '*' token
/usr/include/X11/Xutil.h:843: error: parse error before "XTextPropertyToStringList"
/usr/include/X11/Xutil.h:845: error: parse error before '*' token
/usr/include/X11/Xutil.h:853: error: parse error before '*' token
/usr/include/X11/Xutil.h:862: error: parse error before '*' token
/usr/include/X11/Xutil.h:871: error: parse error before '*' token
/usr/include/X11/Xutil.h:887: error: parse error before '*' token
In file included from ../src/cairo-xlib-xrender.h:44,
                 from cairo-test.c:378:
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:51: error: parse error before "Colormap"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:51: warning: no semicolon at end of struct or union
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:52: warning: type defaults to `int' in declaration of `XRenderPictFormat'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:52: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:68: error: parse error before "Bool"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:68: warning: no semicolon at end of struct or union
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:74: error: parse error before "clip_mask"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:74: warning: type defaults to `int' in declaration of `clip_mask'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:74: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:75: error: parse error before "graphics_exposures"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:75: warning: type defaults to `int' in declaration of `graphics_exposures'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:75: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:79: error: parse error before "dither"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:79: warning: type defaults to `int' in declaration of `dither'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:79: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:80: error: parse error before "component_alpha"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:80: warning: type defaults to `int' in declaration of `component_alpha'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:80: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:81: warning: type defaults to `int' in declaration of `XRenderPictureAttributes'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:81: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:168: error: parse error before "Cursor"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:168: warning: no semicolon at end of struct or union
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:170: error: parse error before '}' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:170: warning: type defaults to `int' in declaration of `XAnimCursor'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:170: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:174: error: parse error before "XRenderQueryExtension"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:174: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:174: warning: type defaults to `int' in declaration of `XRenderQueryExtension'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:174: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:174: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:176: error: parse error before "XRenderQueryVersion"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:176: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:178: warning: type defaults to `int' in declaration of `XRenderQueryVersion'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:178: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:178: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:180: error: parse error before "XRenderQueryFormats"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:180: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:180: warning: type defaults to `int' in declaration of `XRenderQueryFormats'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:180: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:180: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:182: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:182: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:184: error: parse error before "XRenderSetSubpixelOrder"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:184: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:184: warning: type defaults to `int' in declaration of `XRenderSetSubpixelOrder'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:184: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:184: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:186: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:187: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:187: warning: type defaults to `int' in declaration of `XRenderFindVisualFormat'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:187: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:187: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:189: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:190: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:193: warning: type defaults to `int' in declaration of `XRenderFindFormat'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:193: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:193: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:202: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:203: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:204: warning: type defaults to `int' in declaration of `XRenderFindStandardFormat'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:204: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:204: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:207: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:209: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:212: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:216: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:219: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:222: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:225: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:230: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:233: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:235: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:238: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:240: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:243: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:244: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:247: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:259: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:262: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:262: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:265: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:265: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:268: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:268: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:271: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:277: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:280: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:283: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:286: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:297: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:300: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:311: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:314: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:325: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:328: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:338: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:341: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:351: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:354: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:364: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:367: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:374: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:377: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:382: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:385: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:393: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:396: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:404: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:407: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:415: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:418: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:426: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:429: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:440: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:442: error: parse error before "XRenderParseColor"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:442: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:444: warning: type defaults to `int' in declaration of `XRenderParseColor'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:444: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:444: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:447: error: parse error before "XRenderCreateCursor"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:447: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:450: warning: type defaults to `int' in declaration of `XRenderCreateCursor'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:450: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:450: warning: data definition has no type or storage class
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:453: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:453: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:456: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:460: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:463: error: parse error before "XRenderCreateAnimCursor"
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:463: error: parse error before '*' token
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:465: warning: type defaults to `int' in declaration of `XRenderCreateAnimCursor'
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:465: warning: function declaration isn't a prototype
/sw/gnu/xrender/xrender-0.8.3/sun/include/X11/extensions/Xrender.h:465: warning: data definition has no type or storage class
In file included from cairo-test.c:378:
../src/cairo-xlib-xrender.h:49: error: parse error before '*' token
../src/cairo-xlib-xrender.h:54: warning: function declaration isn't a prototype
cairo-test.c:381: error: parse error before "Display"
cairo-test.c:381: warning: no semicolon at end of struct or union
cairo-test.c:382: warning: type defaults to `int' in declaration of `pixmap'
cairo-test.c:382: warning: data definition has no type or storage class
cairo-test.c:383: warning: type defaults to `int' in declaration of `xlib_target_closure_t'
cairo-test.c:383: warning: data definition has no type or storage class
cairo-test.c: In function `create_xlib_surface':
cairo-test.c:388: error: `xtc' undeclared (first use in this function)
cairo-test.c:388: error: (Each undeclared identifier is reported only once
cairo-test.c:388: error: for each function it appears in.)
cairo-test.c:390: error: `Display' undeclared (first use in this function)
cairo-test.c:390: error: `dpy' undeclared (first use in this function)
cairo-test.c:391: error: `xrender_format' undeclared (first use in this function)
cairo-test.c:400: warning: implicit declaration of function `XOpenDisplay'
cairo-test.c:402: warning: implicit declaration of function `XDisplayName'
cairo-test.c:406: warning: implicit declaration of function `XSynchronize'
cairo-test.c:422: warning: implicit declaration of function `XCreatePixmap'
cairo-test.c:422: warning: implicit declaration of function `DefaultRootWindow'
cairo-test.c:426: warning: implicit declaration of function `DefaultScreenOfDisplay'
cairo-test.c: In function `cleanup_xlib':
cairo-test.c:435: error: `xtc' undeclared (first use in this function)
cairo-test.c:437: warning: implicit declaration of function `XFreePixmap'
cairo-test.c:438: warning: implicit declaration of function `XCloseDisplay'
make[2]: *** [cairo-test.lo] Error 1
make[2]: Leaving directory `/sw/master/gtk/cairo-1.0.2/test'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sw/master/gtk/cairo-1.0.2'
make: *** [all] Error 2


Would you have any suggestion?
Thanks and regards,
Mohamed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling error with GTK+ dantelives Linux - Software 1 06-21-2005 08:03 PM
GAIM: compiling gtk 2.4.0 error turtle1980 Linux - Newbie 5 08-11-2004 08:15 AM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM
help with error compiling gtk+-2.4.0 Metal Martian Linux - Newbie 3 05-11-2004 09:04 AM
error with gtk compiling mplayer with gui Anubis Linux - General 2 02-29-2004 01:20 PM


All times are GMT -5. The time now is 10:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration