Bug 93877 - Cairo installation error: cairo-xlib-xrender-private.h:106: error: redefinition of 'struct
Summary: Cairo installation error: cairo-xlib-xrender-private.h:106: error: redefiniti...
Status: RESOLVED MOVED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.4.6
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-26 21:15 UTC by Ravi
Modified: 2018-08-25 13:31 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Ravi 2016-01-26 21:15:09 UTC
# uname -r
2.6.32-431.29.2.el6.x86_64

# cat /etc/redhat-release
CentOS release 6.5 (Final)


After downloading the running "./configure". "./make" gives the following error:

# make
Makefile:1487: warning: overriding commands for target `recheck'
Makefile:1127: warning: ignoring old commands for target `recheck'
make  all-recursive
make[1]: Entering directory `/app/software/graphite/cairo-1.14.6'
Makefile:1487: warning: overriding commands for target `recheck'
Makefile:1127: warning: ignoring old commands for target `recheck'
Making all in src
make[2]: Entering directory `/app/software/graphite/cairo-1.14.6/src'
make  all-am
make[3]: Entering directory `/app/software/graphite/cairo-1.14.6/src'
  CC       cairo-xlib-display.lo
In file included from cairo-xlib-private.h:40,
                 from cairo-xlib-display.c:40:
cairo-xlib-xrender-private.h:106: error: redefinition of 'struct _XLinearGradient'
cairo-xlib-xrender-private.h:109: error: conflicting types for 'XLinearGradient'
/usr/include/X11/extensions/Xrender.h:189: note: previous declaration of 'XLinearGradient' was here
cairo-xlib-xrender-private.h:115: error: redefinition of 'struct _XCircle'
cairo-xlib-xrender-private.h:119: error: conflicting types for 'XCircle'
/usr/include/X11/extensions/Xrender.h:150: note: previous declaration of 'XCircle' was here
cairo-xlib-xrender-private.h:120: error: redefinition of 'struct _XRadialGradient'
cairo-xlib-xrender-private.h:123: error: conflicting types for 'XRadialGradient'
/usr/include/X11/extensions/Xrender.h:194: note: previous declaration of 'XRadialGradient' was here
cairo-xlib-xrender-private.h:129: error: redefinition of 'struct _XConicalGradient'
cairo-xlib-xrender-private.h:132: error: conflicting types for 'XConicalGradient'
/usr/include/X11/extensions/Xrender.h:199: note: previous declaration of 'XConicalGradient' was here
make[3]: *** [cairo-xlib-display.lo] Error 1
make[3]: Leaving directory `/app/software/graphite/cairo-1.14.6/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/app/software/graphite/cairo-1.14.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/app/software/graphite/cairo-1.14.6'
make: *** [all] Error 2


Please let me know if you have any questions.
Comment 1 Uli Schlachter 2016-01-29 17:11:20 UTC
Could you attach your config.log? Which version of whatever package provides /usr/include/X11/extensions/Xrender.h (the file defining XLinearGradient) do you have? Apparently configure things that you have an old version without these definitions.

P.S.: How the heck did you get "./make" to work?!
Comment 2 GitLab Migration User 2018-08-25 13:31:24 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/47.


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.