[cairo] problem with compilation new cairo

RAVI NANJUNDAPPA nravi.n at samsung.com
Fri Sep 5 02:09:45 PDT 2014


> -----Original Message-----
> From: cairo [mailto:cairo-bounces at cairographics.org] On Behalf Of
> ZdenekChladek_cyber
> Sent: Friday, September 05, 2014 2:07 PM
> To: cairo at cairographics.org
> Subject: [cairo] problem with compilation new cairo
> 
> Hello,
> OS: Debian 6 (64bit)
> I have tried to install new cairo, but something happened wrongly....here
is
> the output:
> 
> root at debian-zdenek:/home/zdenek/Downloads/cairo-1.12.16# make
> > make  all-recursive
> > make[1]: Entering directory `/home/zdenek/Downloads/cairo-1.12.16'
> > Making all in src
> > make[2]: Entering directory `/home/zdenek/Downloads/cairo-1.12.16/src'
> > make  all-am
> > make[3]: Entering directory `/home/zdenek/Downloads/cairo-1.12.16/src'
> >   CC     cairo-analysis-surface.lo
> >   CC     cairo-arc.lo
> >   CC     cairo-array.lo
> >   CC     cairo-atomic.lo
> >   CC     cairo-base64-stream.lo
> >   CC     cairo-base85-stream.lo
> >   CC     cairo-bentley-ottmann.lo
> > cairo-bentley-ottmann.c: In function
> > '_cairo_bentley_ottmann_tessellate_polygon':
> > cairo-bentley-ottmann.c:1694: warning: 'ymin' may be used
> > uninitialized in this function
> > cairo-bentley-ottmann.c:1694: warning: 'ymax' may be used
> > uninitialized in this function
> >   CC     cairo-bentley-ottmann-rectangular.lo
> >   CC     cairo-bentley-ottmann-rectilinear.lo
> >   CC     cairo-botor-scan-converter.lo
> > cairo-botor-scan-converter.c:2076: warning: 'botor_add_edge' defined
> > but not used
> > cairo-botor-scan-converter.c: In function 'edges_compare_x_for_y':
> > cairo-botor-scan-converter.c:459: warning: 'ax' may be used
> > uninitialized in this function
> > cairo-botor-scan-converter.c:459: warning: 'bx' may be used
> > uninitialized in this function
> > cairo-botor-scan-converter.c: In function 'botor_generate':
> > cairo-botor-scan-converter.c:963: warning: inlining failed in call to
> > 'event_insert_if_intersect_below_current_y': call is unlikely and code
> > size would grow
> > cairo-botor-scan-converter.c:1944: warning: called from here
> > cairo-botor-scan-converter.c:963: warning: inlining failed in call to
> > 'event_insert_if_intersect_below_current_y': call is unlikely and code
> > size would grow
> > cairo-botor-scan-converter.c:1949: warning: called from here
> >   CC     cairo-boxes.lo
> >   CC     cairo-boxes-intersect.lo
> >   CC     cairo.lo
> >   CC     cairo-cache.lo
> >   CC     cairo-clip.lo
> >   CC     cairo-clip-boxes.lo
> >   CC     cairo-clip-polygon.lo
> >   CC     cairo-clip-region.lo
> >   CC     cairo-clip-surface.lo
> >   CC     cairo-color.lo
> >   CC     cairo-composite-rectangles.lo
> >   CC     cairo-compositor.lo
> >   CC     cairo-contour.lo
> >   CC     cairo-damage.lo
> >   CC     cairo-debug.lo
> >   CC     cairo-default-context.lo
> >   CC     cairo-device.lo
> >   CC     cairo-error.lo
> >   CC     cairo-fallback-compositor.lo
> >   CC     cairo-fixed.lo
> >   CC     cairo-font-face.lo
> >   CC     cairo-font-face-twin.lo
> >   CC     cairo-font-face-twin-data.lo
> >   CC     cairo-font-options.lo
> >   CC     cairo-freelist.lo
> >   CC     cairo-freed-pool.lo
> >   CC     cairo-gstate.lo
> >   CC     cairo-hash.lo
> >   CC     cairo-hull.lo
> >   CC     cairo-image-compositor.lo
> > cairo-image-compositor.c: In function '_fill_xrgb32_lerp_opaque_spans':
> > cairo-image-compositor.c:2117: warning: inlining failed in call to
> > 'lerp8x4': call is unlikely and code size would grow
> > cairo-image-compositor.c:2243: warning: called from here
> > cairo-image-compositor.c: In function '_fill_xrgb32_lerp_spans':
> > cairo-image-compositor.c:2117: warning: inlining failed in call to
> > 'lerp8x4': call is unlikely and code size would grow
> > cairo-image-compositor.c:2336: warning: called from here
> > cairo-image-compositor.c: In function '_blit_xrgb32_lerp_spans':
> > cairo-image-compositor.c:2117: warning: inlining failed in call to
> > 'lerp8x4': call is unlikely and code size would grow
> > cairo-image-compositor.c:2397: warning: called from here
> >   CC     cairo-image-info.lo
> >   CC     cairo-image-source.lo
> >   CC     cairo-image-surface.lo
> >   CC     cairo-lzw.lo
> >   CC     cairo-matrix.lo
> >   CC     cairo-mask-compositor.lo
> >   CC     cairo-mesh-pattern-rasterizer.lo
> > cairo-mesh-pattern-rasterizer.c: In function 'draw_bezier_patch':
> > cairo-mesh-pattern-rasterizer.c:731: warning: cannot optimize possibly
> > infinite loops
> >   CC     cairo-mempool.lo
> > cairo-mempool.c: In function 'free_blocks':
> > cairo-mempool.c:128: warning: cannot optimize possibly infinite loops
> > cairo-mempool.c: In function '_cairo_mempool_alloc':
> > cairo-mempool.c:252: warning: cannot optimize possibly infinite loops
> >   CC     cairo-misc.lo
> >   CC     cairo-mono-scan-converter.lo
> >   CC     cairo-mutex.lo
> >   CC     cairo-no-compositor.lo
> >   CC     cairo-observer.lo
> >   CC     cairo-output-stream.lo
> >   CC     cairo-paginated-surface.lo
> >   CC     cairo-path-bounds.lo
> >   CC     cairo-path.lo
> >   CC     cairo-path-fill.lo
> >   CC     cairo-path-fixed.lo
> >   CC     cairo-path-in-fill.lo
> >   CC     cairo-path-stroke.lo
> >   CC     cairo-path-stroke-boxes.lo
> >   CC     cairo-path-stroke-polygon.lo
> > cairo-path-stroke-polygon.c: In function 'add_caps':
> > cairo-path-stroke-polygon.c:944: warning: ignoring return value of
> > '_cairo_polygon_add_contour', declared with attribute
> > warn_unused_result
> > cairo-path-stroke-polygon.c:961: warning: ignoring return value of
> > '_cairo_polygon_add_contour', declared with attribute
> > warn_unused_result
> > cairo-path-stroke-polygon.c:976: warning: ignoring return value of
> > '_cairo_polygon_add_contour', declared with attribute
> > warn_unused_result
> > cairo-path-stroke-polygon.c:981: warning: ignoring return value of
> > '_cairo_polygon_add_contour', declared with attribute
> > warn_unused_result
> > cairo-path-stroke-polygon.c: In function 'close_path':
> > cairo-path-stroke-polygon.c:1226: warning: ignoring return value of
> > '_cairo_polygon_add_contour', declared with attribute
> > warn_unused_result
> > cairo-path-stroke-polygon.c:1227: warning: ignoring return value of
> > '_cairo_polygon_add_contour', declared with attribute
> > warn_unused_result
> > cairo-path-stroke-polygon.c: In function 'spline_to':
> > cairo-contour-inline.h:44: warning: inlining failed in call to
> > '_cairo_contour_add_point': call is unlikely and code size would grow
> > cairo-path-stroke-polygon.c:124: warning: called from here
> > cairo-contour-inline.h:44: warning: inlining failed in call to
> > '_cairo_contour_add_point': call is unlikely and code size would grow
> > cairo-path-stroke-polygon.c:124: warning: called from here
> > cairo-path-stroke-polygon.c: In function 'add_caps':
> > cairo-contour-inline.h:44: warning: inlining failed in call to
> > '_cairo_contour_add_point': call is unlikely and code size would grow
> > cairo-path-stroke-polygon.c:941: warning: called from here
> >   CC     cairo-path-stroke-traps.lo
> >   CC     cairo-path-stroke-tristrip.lo
> >   CC     cairo-pattern.lo
> >   CC     cairo-pen.lo
> >   CC     cairo-polygon.lo
> >   CC     cairo-polygon-intersect.lo
> > cairo-polygon-intersect.c: In function 'edges_end':
> > cairo-polygon-intersect.c:1162: warning: ignoring return value of
> > '_cairo_polygon_add_line', declared with attribute warn_unused_result
> > cairo-polygon-intersect.c:1163: warning: ignoring return value of
> > '_cairo_polygon_add_line', declared with attribute warn_unused_result
> > cairo-polygon-intersect.c: In function
> > '_cairo_polygon_intersect_with_boxes':
> > cairo-polygon-intersect.c:1519: warning: ignoring return value of
> > '_cairo_polygon_add_external_edge', declared with attribute
> > warn_unused_result
> > cairo-polygon-intersect.c:1522: warning: ignoring return value of
> > '_cairo_polygon_add_external_edge', declared with attribute
> > warn_unused_result
> >   CC     cairo-polygon-reduce.lo
> > cairo-polygon-reduce.c: In function '_cairo_bo_edge_end':
> > cairo-polygon-reduce.c:1163: warning: ignoring return value of
> > '_cairo_polygon_add_line', declared with attribute warn_unused_result
> > cairo-polygon-reduce.c:1167: warning: ignoring return value of
> > '_cairo_polygon_add_line', declared with attribute warn_unused_result
> >   CC     cairo-raster-source-pattern.lo
> >   CC     cairo-recording-surface.lo
> >   CC     cairo-rectangle.lo
> >   CC     cairo-rectangular-scan-converter.lo
> > cairo-rectangular-scan-converter.c: In function 'generate_row':
> > cairo-rectangular-scan-converter.c:625: warning: ignoring return value
> > of function declared with attribute warn_unused_result
> >   CC     cairo-region.lo
> >   CC     cairo-rtree.lo
> >   CC     cairo-scaled-font.lo
> >   CC     cairo-shape-mask-compositor.lo
> >   CC     cairo-slope.lo
> >   CC     cairo-spans.lo
> >   CC     cairo-spans-compositor.lo
> >   CC     cairo-spline.lo
> >   CC     cairo-stroke-dash.lo
> >   CC     cairo-stroke-style.lo
> >   CC     cairo-surface.lo
> >   CC     cairo-surface-clipper.lo
> >   CC     cairo-surface-fallback.lo
> >   CC     cairo-surface-observer.lo
> > cairo-surface-observer.c: In function 'sync':
> > cairo-surface-observer.c:665: warning: ignoring return value of
> > '_cairo_surface_unmap_image', declared with attribute
> warn_unused_result
> >   CC     cairo-surface-offset.lo
> >   CC     cairo-surface-snapshot.lo
> >   CC     cairo-surface-subsurface.lo
> >   CC     cairo-surface-wrapper.lo
> >   CC     cairo-time.lo
> >   CC     cairo-tor-scan-converter.lo
> >   CC     cairo-tor22-scan-converter.lo
> >   CC     cairo-clip-tor-scan-converter.lo
> >   CC     cairo-toy-font-face.lo
> >   CC     cairo-traps.lo
> >   CC     cairo-tristrip.lo
> >   CC     cairo-traps-compositor.lo
> >   CC     cairo-unicode.lo
> >   CC     cairo-user-font.lo
> >   CC     cairo-version.lo
> >   CC     cairo-wideint.lo
> >   CC     cairo-cff-subset.lo
> > cairo-cff-subset.c: In function 'cairo_cff_font_get_gid_for_cid':
> > cairo-cff-subset.c:1724: warning: cannot optimize possibly infinite
> > loops
> >   CC     cairo-scaled-font-subsets.lo
> >   CC     cairo-truetype-subset.lo
> >   CC     cairo-type1-fallback.lo
> >   CC     cairo-type1-glyph-names.lo
> >   CC     cairo-type1-subset.lo
> > cairo-type1-subset.c: In function
> > 'cairo_type1_font_subset_write_private_dict':
> > cairo-type1-subset.c:1358: warning: ignoring return value of 'strtol',
> > declared with attribute warn_unused_result
> >   CC     cairo-type3-glyph-surface.lo
> >   CC     cairo-pdf-operators.lo
> >   CC     cairo-pdf-shading.lo
> >   CC     cairo-deflate-stream.lo
> >   CC     cairo-xlib-display.lo
> > In file included from cairo-xlib-private.h:41,
> >                  from cairo-xlib-display.c:40:
> > cairo-xlib-xrender-private.h:102: error: redefinition of 'struct
> > _XLinearGradient'
> > cairo-xlib-xrender-private.h:105: error: conflicting types for
> > 'XLinearGradient'
> > /usr/include/X11/extensions/Xrender.h:189: note: previous declaration
> > of 'XLinearGradient' was here
> > cairo-xlib-xrender-private.h:111: error: redefinition of 'struct
> > _XCircle'

Looks like these symbols are coming from both Xrender.h and
cairo-xlib-xrender-private.h. 
Can you please share commands that you used for building Cairo and also
mention which cairo source you are using (whether Cairo 1.12.16 or master
branch code) ? 

When I try to build the master branch of Cairo source (in my Ubuntu 12.04
machine), by xlib-xrender backend is enabled as shown below: 

The following surface backends:
  Image:         yes (always builtin)
  Recording:     yes (always builtin)
  Observer:      yes (always builtin)
  Mime:          yes (always builtin)
  Tee:           no (disabled, use --enable-tee to enable)
  XML:           no (disabled, use --enable-xml to enable)
  Skia:          no (disabled, use --enable-skia to enable)
  Xlib:          yes
  Xlib Xrender:  yes 	//<---- SEE HERE
  Qt:            no (disabled, use --enable-qt to enable)
  Quartz:        no (requires CoreGraphics framework)
  Quartz-image:  no (disabled, use --enable-quartz-image to enable)
  XCB:           yes
  Win32:         no (requires a Win32 platform)
  OS2:           no (disabled, use --enable-os2 to enable)

And after that make goes well without any issues.
Moreover, if you look at the config.log we can see below lines: 

....
#define HAVE_XRENDERCREATESOLIDFILL 1
#define HAVE_XRENDERCREATELINEARGRADIENT 1
#define HAVE_XRENDERCREATERADIALGRADIENT 1
#define HAVE_XRENDERCREATECONICALGRADIENT 1
.....

In cairo-xlib-xrender-private.h file, the _XLinearGradient (etc.) structures
will be defined only if above macro values are 0(Zero).
Please check these and share further information.

FYI... am using the below set of commands for building Cairo in my Ubuntu
machine:

$ ./autogen.sh 
$ make 
$ sudo make install 


> > cairo-xlib-xrender-private.h:115: error: conflicting types for
> > 'XCircle'
> > /usr/include/X11/extensions/Xrender.h:150: note: previous declaration
> > of 'XCircle' was here
> > cairo-xlib-xrender-private.h:116: error: redefinition of 'struct
> > _XRadialGradient'
> > cairo-xlib-xrender-private.h:119: error: conflicting types for
> > 'XRadialGradient'
> > /usr/include/X11/extensions/Xrender.h:194: note: previous declaration
> > of 'XRadialGradient' was here
> > cairo-xlib-xrender-private.h:125: error: redefinition of 'struct
> > _XConicalGradient'
> > cairo-xlib-xrender-private.h:128: error: conflicting types for
> > 'XConicalGradient'
> > /usr/include/X11/extensions/Xrender.h:199: note: previous declaration
> > of 'XConicalGradient' was here In file included from
> > cairo-xlib-display.c:46:
> > /usr/include/X11/Xlibint.h: In function '_XIOError':
> > /usr/include/X11/Xlibint.h:883: error: expected declaration specifiers
> > before '_X_NORETURN'
> > /usr/include/X11/Xlibint.h:886: error: storage class specified for
> > parameter '_XIOErrorFunction'
> > /usr/include/X11/Xlibint.h:890: error: storage class specified for
> > parameter '_XErrorFunction'
> > /usr/include/X11/Xlibint.h:894: error: storage class specified for
> > parameter '_XEatData'
> > /usr/include/X11/Xlibint.h:907: error: storage class specified for
> > parameter '_XAllocScratch'
> > /usr/include/X11/Xlibint.h:911: error: storage class specified for
> > parameter '_XAllocTemp'
> > /usr/include/X11/Xlibint.h:916: error: storage class specified for
> > parameter '_XFreeTemp'
> > /usr/include/X11/Xlibint.h:920: error: storage class specified for
> > parameter '_XVIDtoVisual'
> > /usr/include/X11/Xlibint.h:924: error: storage class specified for
> > parameter '_XSetLastRequestRead'
> > /usr/include/X11/Xlibint.h:928: error: storage class specified for
> > parameter '_XGetHostname'
> > /usr/include/X11/Xlibint.h:932: error: storage class specified for
> > parameter '_XScreenOfWindow'
> > /usr/include/X11/Xlibint.h:939: error: storage class specified for
> > parameter '_XAsyncErrorHandler'
> > /usr/include/X11/Xlibint.h:948: error: storage class specified for
> > parameter '_XGetAsyncReply'
> > /usr/include/X11/Xlibint.h:957: error: storage class specified for
> > parameter '_XGetAsyncData'
> > /usr/include/X11/Xlibint.h:960: error: storage class specified for
> > parameter '_XFlush'
> > /usr/include/X11/Xlibint.h:964: error: storage class specified for
> > parameter '_XEventsQueued'
> > /usr/include/X11/Xlibint.h:967: error: storage class specified for
> > parameter '_XReadEvents'
> > /usr/include/X11/Xlibint.h:972: error: storage class specified for
> > parameter '_XRead'
> > /usr/include/X11/Xlibint.h:977: error: storage class specified for
> > parameter '_XReadPad'
> > /usr/include/X11/Xlibint.h:982: error: storage class specified for
> > parameter '_XSend'
> > /usr/include/X11/Xlibint.h:988: error: storage class specified for
> > parameter '_XReply'
> > /usr/include/X11/Xlibint.h:992: error: storage class specified for
> > parameter '_XEnq'
> > /usr/include/X11/Xlibint.h:997: error: storage class specified for
> > parameter '_XDeq'
> > /usr/include/X11/Xlibint.h:1003: error: storage class specified for
> > parameter '_XUnknownWireEvent'
> > /usr/include/X11/Xlibint.h:1009: error: storage class specified for
> > parameter '_XUnknownWireEventCookie'
> > /usr/include/X11/Xlibint.h:1015: error: storage class specified for
> > parameter '_XUnknownCopyEventCookie'
> > /usr/include/X11/Xlibint.h:1021: error: storage class specified for
> > parameter '_XUnknownNativeEvent'
> > /usr/include/X11/Xlibint.h:1023: error: storage class specified for
> > parameter '_XWireToEvent'
> > /usr/include/X11/Xlibint.h:1024: error: storage class specified for
> > parameter '_XDefaultWireError'
> > /usr/include/X11/Xlibint.h:1025: error: storage class specified for
> > parameter '_XPollfdCacheInit'
> > /usr/include/X11/Xlibint.h:1026: error: storage class specified for
> > parameter '_XPollfdCacheAdd'
> > /usr/include/X11/Xlibint.h:1027: error: storage class specified for
> > parameter '_XPollfdCacheDel'
> > /usr/include/X11/Xlibint.h:1028: error: storage class specified for
> > parameter '_XAllocID'
> > /usr/include/X11/Xlibint.h:1029: error: storage class specified for
> > parameter '_XAllocIDs'
> > /usr/include/X11/Xlibint.h:1033: error: storage class specified for
> > parameter '_XFreeExtData'
> > /usr/include/X11/Xlibint.h:1045: error: storage class specified for
> > parameter 'XESetCreateGC'
> > /usr/include/X11/Xlibint.h:1057: error: storage class specified for
> > parameter 'XESetCopyGC'
> > /usr/include/X11/Xlibint.h:1069: error: storage class specified for
> > parameter 'XESetFlushGC'
> > /usr/include/X11/Xlibint.h:1081: error: storage class specified for
> > parameter 'XESetFreeGC'
> > /usr/include/X11/Xlibint.h:1093: error: storage class specified for
> > parameter 'XESetCreateFont'
> > /usr/include/X11/Xlibint.h:1105: error: storage class specified for
> > parameter 'XESetFreeFont'
> > /usr/include/X11/Xlibint.h:1116: error: storage class specified for
> > parameter 'XESetCloseDisplay'
> > /usr/include/X11/Xlibint.h:1129: error: storage class specified for
> > parameter 'XESetError'
> > /usr/include/X11/Xlibint.h:1143: error: storage class specified for
> > parameter 'XESetErrorString'
> > /usr/include/X11/Xlibint.h:1155: error: storage class specified for
> > parameter 'XESetPrintErrorValues'
> > /usr/include/X11/Xlibint.h:1167: error: storage class specified for
> > parameter 'XESetWireToEvent'
> > /usr/include/X11/Xlibint.h:1179: error: storage class specified for
> > parameter 'XESetWireToEventCookie'
> > /usr/include/X11/Xlibint.h:1191: error: storage class specified for
> > parameter 'XESetCopyEventCookie'
> > /usr/include/X11/Xlibint.h:1204: error: storage class specified for
> > parameter 'XESetEventToWire'
> > /usr/include/X11/Xlibint.h:1216: error: storage class specified for
> > parameter 'XESetWireToError'
> > /usr/include/X11/Xlibint.h:1229: error: storage class specified for
> > parameter 'XESetBeforeFlush'
> > /usr/include/X11/Xlibint.h:1237: error: storage class specified for
> > parameter '_XInternalConnectionProc'
> > /usr/include/X11/Xlibint.h:1243: error: expected declaration
> > specifiers or '...' before '_XInternalConnectionProc'
> > /usr/include/X11/Xlibint.h:1245: error: storage class specified for
> > parameter '_XRegisterInternalConnection'
> > /usr/include/X11/Xlibint.h:1250: error: storage class specified for
> > parameter '_XUnregisterInternalConnection'
> > /usr/include/X11/Xlibint.h:1255: error: storage class specified for
> > parameter '_XProcessInternalConnection'
> > /usr/include/X11/Xlibint.h:1261: error: expected
> > specifier-qualifier-list before '_XInternalConnectionProc'
> > /usr/include/X11/Xlibint.h:1283: error: storage class specified for
> > parameter '_XTextHeight'
> > /usr/include/X11/Xlibint.h:1289: error: storage class specified for
> > parameter '_XTextHeight16'
> > /usr/include/X11/Xlibint.h:1319: error: storage class specified for
> > parameter '_XEventToWire'
> > /usr/include/X11/Xlibint.h:1326: error: storage class specified for
> > parameter '_XF86LoadQueryLocaleFont'
> > /usr/include/X11/Xlibint.h:1332: error: storage class specified for
> > parameter '_XProcessWindowAttributes'
> > /usr/include/X11/Xlibint.h:1336: error: storage class specified for
> > parameter '_XDefaultError'
> > /usr/include/X11/Xlibint.h:1339: error: storage class specified for
> > parameter '_XDefaultIOError'
> > /usr/include/X11/Xlibint.h:1347: error: storage class specified for
> > parameter '_XSetClipRectangles'
> > /usr/include/X11/Xlibint.h:1360: error: storage class specified for
> > parameter '_XIsEventCookie'
> > /usr/include/X11/Xlibint.h:1363: error: storage class specified for
> > parameter '_XFreeEventCookies'
> > /usr/include/X11/Xlibint.h:1367: error: storage class specified for
> > parameter '_XStoreEventCookie'
> > /usr/include/X11/Xlibint.h:1371: error: storage class specified for
> > parameter '_XFetchEventCookie'
> > /usr/include/X11/Xlibint.h:1376: error: storage class specified for
> > parameter '_XCopyEventCookie'
> > /usr/include/X11/Xlibint.h:1383: error: storage class specified for
> > parameter 'xlocaledir'
> > cairo-xlib-display.c:49: error: storage class specified for parameter
> > 'cairo_xlib_error_func_t'
> > cairo-xlib-display.c:51: error: storage class specified for parameter
> > '_cairo_xlib_display_list'
> > cairo-xlib-display.c:56: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:62: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:97: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:105: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:141: error: storage class specified for parameter
> > '_cairo_xlib_device_backend'
> > cairo-xlib-display.c:141: error: parameter '_cairo_xlib_device_backend'
> > is initialized
> > cairo-xlib-display.c:148: error: '_cairo_xlib_display_finish'
> > undeclared (first use in this function)
> > cairo-xlib-display.c:148: error: (Each undeclared identifier is
> > reported only once
> > cairo-xlib-display.c:148: error: for each function it appears in.)
> > cairo-xlib-display.c:149: error: '_cairo_xlib_display_destroy'
> > undeclared (first use in this function)
> > cairo-xlib-display.c:153: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:176: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:367: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:381: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:491: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:537: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:553: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:559: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:565: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:588: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:621: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:647: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > /usr/include/X11/Xlibint.h:881: error: old-style parameter
> > declarations in prototyped function definition
> > /usr/include/X11/Xlibint.h:883: error: parameter name omitted
> > cairo-xlib-display.c:659: error: expected '{' at end of input
> > make[3]: *** [cairo-xlib-display.lo] Error 1
> > make[3]: Leaving directory `/home/zdenek/Downloads/cairo-1.12.16/src'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory `/home/zdenek/Downloads/cairo-1.12.16/src'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/home/zdenek/Downloads/cairo-1.12.16'
> > make: *** [all] Error 2
> > root at debian-zdenek:/home/zdenek/Downloads/cairo-1.12.16# make
> install
> > make  install-recursive
> > make[1]: Entering directory `/home/zdenek/Downloads/cairo-1.12.16'
> > Making install in src
> > make[2]: Entering directory `/home/zdenek/Downloads/cairo-1.12.16/src'
> > make  install-am
> > make[3]: Entering directory `/home/zdenek/Downloads/cairo-1.12.16/src'
> >   CC     cairo-xlib-display.lo
> > In file included from cairo-xlib-private.h:41,
> >                  from cairo-xlib-display.c:40:
> > cairo-xlib-xrender-private.h:102: error: redefinition of 'struct
> > _XLinearGradient'
> > cairo-xlib-xrender-private.h:105: error: conflicting types for
> > 'XLinearGradient'
> > /usr/include/X11/extensions/Xrender.h:189: note: previous declaration
> > of 'XLinearGradient' was here
> > cairo-xlib-xrender-private.h:111: error: redefinition of 'struct
> > _XCircle'
> > cairo-xlib-xrender-private.h:115: error: conflicting types for
> > 'XCircle'
> > /usr/include/X11/extensions/Xrender.h:150: note: previous declaration
> > of 'XCircle' was here
> > cairo-xlib-xrender-private.h:116: error: redefinition of 'struct
> > _XRadialGradient'
> > cairo-xlib-xrender-private.h:119: error: conflicting types for
> > 'XRadialGradient'
> > /usr/include/X11/extensions/Xrender.h:194: note: previous declaration
> > of 'XRadialGradient' was here
> > cairo-xlib-xrender-private.h:125: error: redefinition of 'struct
> > _XConicalGradient'
> > cairo-xlib-xrender-private.h:128: error: conflicting types for
> > 'XConicalGradient'
> > /usr/include/X11/extensions/Xrender.h:199: note: previous declaration
> > of 'XConicalGradient' was here In file included from
> > cairo-xlib-display.c:46:
> > /usr/include/X11/Xlibint.h: In function '_XIOError':
> > /usr/include/X11/Xlibint.h:883: error: expected declaration specifiers
> > before '_X_NORETURN'
> > /usr/include/X11/Xlibint.h:886: error: storage class specified for
> > parameter '_XIOErrorFunction'
> > /usr/include/X11/Xlibint.h:890: error: storage class specified for
> > parameter '_XErrorFunction'
> > /usr/include/X11/Xlibint.h:894: error: storage class specified for
> > parameter '_XEatData'
> > /usr/include/X11/Xlibint.h:907: error: storage class specified for
> > parameter '_XAllocScratch'
> > /usr/include/X11/Xlibint.h:911: error: storage class specified for
> > parameter '_XAllocTemp'
> > /usr/include/X11/Xlibint.h:916: error: storage class specified for
> > parameter '_XFreeTemp'
> > /usr/include/X11/Xlibint.h:920: error: storage class specified for
> > parameter '_XVIDtoVisual'
> > /usr/include/X11/Xlibint.h:924: error: storage class specified for
> > parameter '_XSetLastRequestRead'
> > /usr/include/X11/Xlibint.h:928: error: storage class specified for
> > parameter '_XGetHostname'
> > /usr/include/X11/Xlibint.h:932: error: storage class specified for
> > parameter '_XScreenOfWindow'
> > /usr/include/X11/Xlibint.h:939: error: storage class specified for
> > parameter '_XAsyncErrorHandler'
> > /usr/include/X11/Xlibint.h:948: error: storage class specified for
> > parameter '_XGetAsyncReply'
> > /usr/include/X11/Xlibint.h:957: error: storage class specified for
> > parameter '_XGetAsyncData'
> > /usr/include/X11/Xlibint.h:960: error: storage class specified for
> > parameter '_XFlush'
> > /usr/include/X11/Xlibint.h:964: error: storage class specified for
> > parameter '_XEventsQueued'
> > /usr/include/X11/Xlibint.h:967: error: storage class specified for
> > parameter '_XReadEvents'
> > /usr/include/X11/Xlibint.h:972: error: storage class specified for
> > parameter '_XRead'
> > /usr/include/X11/Xlibint.h:977: error: storage class specified for
> > parameter '_XReadPad'
> > /usr/include/X11/Xlibint.h:982: error: storage class specified for
> > parameter '_XSend'
> > /usr/include/X11/Xlibint.h:988: error: storage class specified for
> > parameter '_XReply'
> > /usr/include/X11/Xlibint.h:992: error: storage class specified for
> > parameter '_XEnq'
> > /usr/include/X11/Xlibint.h:997: error: storage class specified for
> > parameter '_XDeq'
> > /usr/include/X11/Xlibint.h:1003: error: storage class specified for
> > parameter '_XUnknownWireEvent'
> > /usr/include/X11/Xlibint.h:1009: error: storage class specified for
> > parameter '_XUnknownWireEventCookie'
> > /usr/include/X11/Xlibint.h:1015: error: storage class specified for
> > parameter '_XUnknownCopyEventCookie'
> > /usr/include/X11/Xlibint.h:1021: error: storage class specified for
> > parameter '_XUnknownNativeEvent'
> > /usr/include/X11/Xlibint.h:1023: error: storage class specified for
> > parameter '_XWireToEvent'
> > /usr/include/X11/Xlibint.h:1024: error: storage class specified for
> > parameter '_XDefaultWireError'
> > /usr/include/X11/Xlibint.h:1025: error: storage class specified for
> > parameter '_XPollfdCacheInit'
> > /usr/include/X11/Xlibint.h:1026: error: storage class specified for
> > parameter '_XPollfdCacheAdd'
> > /usr/include/X11/Xlibint.h:1027: error: storage class specified for
> > parameter '_XPollfdCacheDel'
> > /usr/include/X11/Xlibint.h:1028: error: storage class specified for
> > parameter '_XAllocID'
> > /usr/include/X11/Xlibint.h:1029: error: storage class specified for
> > parameter '_XAllocIDs'
> > /usr/include/X11/Xlibint.h:1033: error: storage class specified for
> > parameter '_XFreeExtData'
> > /usr/include/X11/Xlibint.h:1045: error: storage class specified for
> > parameter 'XESetCreateGC'
> > /usr/include/X11/Xlibint.h:1057: error: storage class specified for
> > parameter 'XESetCopyGC'
> > /usr/include/X11/Xlibint.h:1069: error: storage class specified for
> > parameter 'XESetFlushGC'
> > /usr/include/X11/Xlibint.h:1081: error: storage class specified for
> > parameter 'XESetFreeGC'
> > /usr/include/X11/Xlibint.h:1093: error: storage class specified for
> > parameter 'XESetCreateFont'
> > /usr/include/X11/Xlibint.h:1105: error: storage class specified for
> > parameter 'XESetFreeFont'
> > /usr/include/X11/Xlibint.h:1116: error: storage class specified for
> > parameter 'XESetCloseDisplay'
> > /usr/include/X11/Xlibint.h:1129: error: storage class specified for
> > parameter 'XESetError'
> > /usr/include/X11/Xlibint.h:1143: error: storage class specified for
> > parameter 'XESetErrorString'
> > /usr/include/X11/Xlibint.h:1155: error: storage class specified for
> > parameter 'XESetPrintErrorValues'
> > /usr/include/X11/Xlibint.h:1167: error: storage class specified for
> > parameter 'XESetWireToEvent'
> > /usr/include/X11/Xlibint.h:1179: error: storage class specified for
> > parameter 'XESetWireToEventCookie'
> > /usr/include/X11/Xlibint.h:1191: error: storage class specified for
> > parameter 'XESetCopyEventCookie'
> > /usr/include/X11/Xlibint.h:1204: error: storage class specified for
> > parameter 'XESetEventToWire'
> > /usr/include/X11/Xlibint.h:1216: error: storage class specified for
> > parameter 'XESetWireToError'
> > /usr/include/X11/Xlibint.h:1229: error: storage class specified for
> > parameter 'XESetBeforeFlush'
> > /usr/include/X11/Xlibint.h:1237: error: storage class specified for
> > parameter '_XInternalConnectionProc'
> > /usr/include/X11/Xlibint.h:1243: error: expected declaration
> > specifiers or '...' before '_XInternalConnectionProc'
> > /usr/include/X11/Xlibint.h:1245: error: storage class specified for
> > parameter '_XRegisterInternalConnection'
> > /usr/include/X11/Xlibint.h:1250: error: storage class specified for
> > parameter '_XUnregisterInternalConnection'
> > /usr/include/X11/Xlibint.h:1255: error: storage class specified for
> > parameter '_XProcessInternalConnection'
> > /usr/include/X11/Xlibint.h:1261: error: expected
> > specifier-qualifier-list before '_XInternalConnectionProc'
> > /usr/include/X11/Xlibint.h:1283: error: storage class specified for
> > parameter '_XTextHeight'
> > /usr/include/X11/Xlibint.h:1289: error: storage class specified for
> > parameter '_XTextHeight16'
> > /usr/include/X11/Xlibint.h:1319: error: storage class specified for
> > parameter '_XEventToWire'
> > /usr/include/X11/Xlibint.h:1326: error: storage class specified for
> > parameter '_XF86LoadQueryLocaleFont'
> > /usr/include/X11/Xlibint.h:1332: error: storage class specified for
> > parameter '_XProcessWindowAttributes'
> > /usr/include/X11/Xlibint.h:1336: error: storage class specified for
> > parameter '_XDefaultError'
> > /usr/include/X11/Xlibint.h:1339: error: storage class specified for
> > parameter '_XDefaultIOError'
> > /usr/include/X11/Xlibint.h:1347: error: storage class specified for
> > parameter '_XSetClipRectangles'
> > /usr/include/X11/Xlibint.h:1360: error: storage class specified for
> > parameter '_XIsEventCookie'
> > /usr/include/X11/Xlibint.h:1363: error: storage class specified for
> > parameter '_XFreeEventCookies'
> > /usr/include/X11/Xlibint.h:1367: error: storage class specified for
> > parameter '_XStoreEventCookie'
> > /usr/include/X11/Xlibint.h:1371: error: storage class specified for
> > parameter '_XFetchEventCookie'
> > /usr/include/X11/Xlibint.h:1376: error: storage class specified for
> > parameter '_XCopyEventCookie'
> > /usr/include/X11/Xlibint.h:1383: error: storage class specified for
> > parameter 'xlocaledir'
> > cairo-xlib-display.c:49: error: storage class specified for parameter
> > 'cairo_xlib_error_func_t'
> > cairo-xlib-display.c:51: error: storage class specified for parameter
> > '_cairo_xlib_display_list'
> > cairo-xlib-display.c:56: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:62: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:97: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:105: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:141: error: storage class specified for parameter
> > '_cairo_xlib_device_backend'
> > cairo-xlib-display.c:141: error: parameter '_cairo_xlib_device_backend'
> > is initialized
> > cairo-xlib-display.c:148: error: '_cairo_xlib_display_finish'
> > undeclared (first use in this function)
> > cairo-xlib-display.c:148: error: (Each undeclared identifier is
> > reported only once
> > cairo-xlib-display.c:148: error: for each function it appears in.)
> > cairo-xlib-display.c:149: error: '_cairo_xlib_display_destroy'
> > undeclared (first use in this function)
> > cairo-xlib-display.c:153: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:176: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:367: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:381: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:491: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:537: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:553: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:559: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:565: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:588: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:621: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > cairo-xlib-display.c:647: error: expected '=', ',', ';', 'asm' or
> > '__attribute__' before '{' token
> > /usr/include/X11/Xlibint.h:881: error: old-style parameter
> > declarations in prototyped function definition
> > /usr/include/X11/Xlibint.h:883: error: parameter name omitted
> > cairo-xlib-display.c:659: error: expected '{' at end of input
> > make[3]: *** [cairo-xlib-display.lo] Error 1
> > make[3]: Leaving directory `/home/zdenek/Downloads/cairo-1.12.16/src'
> > make[2]: *** [install] Error 2
> > make[2]: Leaving directory `/home/zdenek/Downloads/cairo-1.12.16/src'
> > make[1]: *** [install-recursive] Error 1
> > make[1]: Leaving directory `/home/zdenek/Downloads/cairo-1.12.16'
> > make: *** [install] Error 2
> > root at debian-zdenek:/home/zdenek/Downloads/cairo-1.12.16#
> 
> thank You for any help
> regards Zdenek
> 
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo



More information about the cairo mailing list