Cairo 1.12.6 build fails. Here are the last lines of the build log: cairo-xlib-xrender-private.h:102:16: error: redefinition of 'struct _XLinearGradient' /usr/include/X11/extensions/Xrender.h:186:16: note: originally defined here cairo-xlib-xrender-private.h:105:3: error: conflicting types for 'XLinearGradient' /usr/include/X11/extensions/Xrender.h:189:3: note: previous declaration of 'XLinearGradient' was here cairo-xlib-xrender-private.h:111:16: error: redefinition of 'struct _XCircle' /usr/include/X11/extensions/Xrender.h:146:16: note: originally defined here cairo-xlib-xrender-private.h:115:3: error: conflicting types for 'XCircle' /usr/include/X11/extensions/Xrender.h:150:3: note: previous declaration of 'XCircle' was here cairo-xlib-xrender-private.h:116:16: error: redefinition of 'struct _XRadialGradient' /usr/include/X11/extensions/Xrender.h:191:16: note: originally defined here cairo-xlib-xrender-private.h:119:3: error: conflicting types for 'XRadialGradient' /usr/include/X11/extensions/Xrender.h:194:3: note: previous declaration of 'XRadialGradient' was here cairo-xlib-xrender-private.h:125:16: error: redefinition of 'struct _XConicalGradient' /usr/include/X11/extensions/Xrender.h:196:16: note: originally defined here cairo-xlib-xrender-private.h:128:3: error: conflicting types for 'XConicalGradient' /usr/include/X11/extensions/Xrender.h:199:3: note: previous declaration of 'XConicalGradient' was here make[3]: *** [cairo-xlib-display.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/x11-libs/cairo-1.12.6/work/cairo-1.12.6/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/x11-libs/cairo-1.12.6/work/cairo-1.12.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-libs/cairo-1.12.6/work/cairo-1.12.6' make: *** [all] Error 2 * ERROR: x11-libs/cairo-1.12.6 failed (compile phase): * emake failed Reproducible: Always Steps to Reproduce: 1. emerge cairo 2. wait 3. BOOM Actual Results: Compilation fails. Expected Results: Compilation should be successful
Created attachment 329530 [details] build.log
I can't reproduce this problem here. Which version of libXrender do you have installed?
x11-libs/libXrender-0.9.7
I depcleaned the system after cairo unsuccessful compilation, but I tried several times with the same result. These are the packages that would be emerged with cairo: # emerge -pv x11-libs/cairo These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] media-libs/freetype-2.4.10-r1:2 USE="bzip2 -X -auto-hinter -bindist -debug -doc -fontforge -infinality -static-libs -utils" 0 kB [ebuild N ] media-libs/libpng-1.5.13-r1 USE="-apng (-neon) -static-libs" 0 kB [ebuild N ] x11-proto/xproto-7.0.23-r1 USE="-doc" 0 kB [ebuild N ] x11-proto/renderproto-0.11.1 0 kB [ebuild N ] x11-libs/pixman-0.28.0 USE="mmx sse2 (-altivec) (-iwmmxt) (-neon) -static-libs" 0 kB [ebuild N ] x11-proto/kbproto-1.0.6 0 kB [ebuild N ] x11-proto/xextproto-7.2.1 USE="-doc" 0 kB [ebuild N ] x11-proto/xf86bigfontproto-1.2.0 0 kB [ebuild N ] x11-proto/inputproto-2.2 0 kB [ebuild N ] x11-libs/xtrans-1.2.7 USE="-doc" 0 kB [ebuild N ] x11-proto/xcb-proto-1.8 0 kB [ebuild N ] dev-libs/libpthread-stubs-0.3 USE="-static-libs" 0 kB [ebuild N ] x11-libs/libXdmcp-1.1.1 USE="-doc -static-libs" 0 kB [ebuild N ] x11-libs/libXau-1.0.7 USE="-static-libs" 0 kB [ebuild N ] x11-libs/libxcb-1.9 USE="-doc (-selinux) -static-libs" 0 kB [ebuild N ] x11-libs/libX11-1.5.0 USE="ipv6 -doc -static-libs {-test}" 0 kB [ebuild N ] x11-libs/libXrender-0.9.7 USE="-static-libs" 0 kB [ebuild N ] media-libs/fontconfig-2.9.0:1.0 USE="-doc -static-libs" 0 kB [ebuild N ] app-admin/eselect-fontconfig-1.1 0 kB [ebuild N ] media-fonts/dejavu-2.33 USE="-X -fontforge" 0 kB [ebuild N ] virtual/ttf-fonts-1 0 kB [ebuild N ] x11-libs/cairo-1.12.6 USE="X glib svg (-aqua) -debug -directfb -doc (-drm) (-gallium) -legacy-drivers -opengl -openvg -qt4 -static-libs -xcb" 0 kB
Can you attach config.log too? Do you have anything installed in /usr/local?
# tree /usr/local/ /usr/local/ ├── bin ├── lib -> lib64 ├── lib32 ├── lib64 │ └── perl5 │ └── 5.16.1 │ └── x86_64-linux-thread-multi ├── man -> share/man ├── sbin └── share ├── doc └── man └── whatis 12 directories, 1 file
Created attachment 329608 [details] config.log
(In reply to comment #7) > configure:20691: $PKG_CONFIG --exists --print-errors "$xlib_REQUIRES" > Package xext was not found in the pkg-config search path. > Perhaps you should add the directory containing `xext.pc' > to the PKG_CONFIG_PATH environment variable > No package 'xext' found Do you have libXext installed? If no, does it make a difference if you install it?
As you can see in comment #4, libXext is not a required dependency. Installing libXext makes cairo compile successfully, so maybe it should be added as a dependency to cairo ebuild. Thanks.
Fixed in 1.12.8