Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443078 - x11-libs/cairo-1.12.6 - cairo-xlib-xrender-private.h:102:16: error: redefinition of 'struct _XLinearGradient'
Summary: x11-libs/cairo-1.12.6 - cairo-xlib-xrender-private.h:102:16: error: redefinit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Ben de Groot (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-14 12:51 UTC by Ivan Iraci
Modified: 2012-11-15 16:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,47.90 KB, text/plain)
2012-11-14 12:53 UTC, Ivan Iraci
Details
config.log (config.log,148.82 KB, text/plain)
2012-11-15 14:31 UTC, Ivan Iraci
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Iraci 2012-11-14 12:51:51 UTC
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
Comment 1 Ivan Iraci 2012-11-14 12:53:25 UTC
Created attachment 329530 [details]
build.log
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-14 16:36:26 UTC
I can't reproduce this problem here. Which version of libXrender do you have installed?
Comment 3 Ivan Iraci 2012-11-14 16:45:42 UTC
x11-libs/libXrender-0.9.7
Comment 4 Ivan Iraci 2012-11-14 16:50:39 UTC
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
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-15 08:55:13 UTC
Can you attach config.log too?
Do you have anything installed in /usr/local?
Comment 6 Ivan Iraci 2012-11-15 14:16:07 UTC
# 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
Comment 7 Ivan Iraci 2012-11-15 14:31:03 UTC
Created attachment 329608 [details]
config.log
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-15 15:55:33 UTC
(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?
Comment 9 Ivan Iraci 2012-11-15 16:13:00 UTC
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.
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-15 16:58:55 UTC
Fixed in 1.12.8