When emerging fresh cairo-1.8.2 using USE flag "directfb" this compilation error occurs : ../doltcompile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include/pixman-1 -I/usr/include/freetype2 -D_REENTRANT -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/valgrind -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2 -march=native -O3 -pipe -msse3 -finline-limit=1200 -MT cairo-ps-surface.lo -MD -MP -MF .deps/cairo-ps-surface.Tpo -c -o cairo-ps-surface.lo cairo-ps-surface.c cairo-directfb-surface.c: In function '_directfb_to_cairo_format': cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_UNKNOWN' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_ARGB1555' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_RGB16' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_RGB24' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_YUY2' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_RGB332' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_UYVY' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_I420' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_YV12' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_LUT8' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_ALUT44' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_AiRGB' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_NV12' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_NV16' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_ARGB2554' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_ARGB4444' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_NV21' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_AYUV' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_A4' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_ARGB1666' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_ARGB6666' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_RGB18' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_LUT2' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_RGB444' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_RGB555' not handled in switch cairo-directfb-surface.c:206: warning: enumeration value 'DSPF_BGR555' not handled in switch cairo-directfb-surface.c: In function '_directfb_acquire_surface': cairo-directfb-surface.c:346: warning: unused variable 'caps' cairo-directfb-surface.c: In function '_cairo_directfb_surface_release_source_image': cairo-directfb-surface.c:554: error: 'surface' undeclared (first use in this function) cairo-directfb-surface.c:554: error: (Each undeclared identifier is reported only once cairo-directfb-surface.c:554: error: for each function it appears in.) cairo-directfb-surface.c: In function '_cairo_directfb_surface_release_dest_image': cairo-directfb-surface.c:607: warning: the address of 'region' will always evaluate as 'true' cairo-directfb-surface.c: In function '_directfb_prepare_composite': cairo-directfb-surface.c:731: warning: unused variable 'pattern' cairo-directfb-surface.c: In function '_cairo_directfb_surface_composite': cairo-directfb-surface.c:978: warning: the address of 'clip' will always evaluate as 'true' cairo-directfb-surface.c:1068: warning: the address of 'clip' will always evaluate as 'true' cairo-directfb-surface.c:945: warning: enumeration value 'DFXL_NONE' not handled in switch cairo-directfb-surface.c:945: warning: enumeration value 'DFXL_FILLRECTANGLE' not handled in switch cairo-directfb-surface.c:945: warning: enumeration value 'DFXL_DRAWRECTANGLE' not handled in switch cairo-directfb-surface.c:945: warning: enumeration value 'DFXL_DRAWLINE' not handled in switch cairo-directfb-surface.c:945: warning: enumeration value 'DFXL_FILLTRIANGLE' not handled in switch cairo-directfb-surface.c:945: warning: enumeration value 'DFXL_DRAWSTRING' not handled in switch cairo-directfb-surface.c:945: warning: enumeration value 'DFXL_ALL' not handled in switch cairo-directfb-surface.c:945: warning: enumeration value 'DFXL_ALL_DRAW' not handled in switch cairo-directfb-surface.c:945: warning: enumeration value 'DFXL_ALL_BLIT' not handled in switch cairo-directfb-surface.c: In function '_directfb_acquire_font_cache': cairo-directfb-surface.c:1458: warning: enumeration value 'CAIRO_FORMAT_RGB24' not handled in switch make[3]: *** [cairo-directfb-surface.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... mv -f .deps/cairo-ps-surface.Tpo .deps/cairo-ps-surface.Plo mv -f .deps/cairo-ft-font.Tpo .deps/cairo-ft-font.Plo make[3]: Leaving directory `/var/tmp/paludis/x11-libs-cairo-1.8.2/work/cairo-1.8.2/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/paludis/x11-libs-cairo-1.8.2/work/cairo-1.8.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/paludis/x11-libs-cairo-1.8.2/work/cairo-1.8.2' make: *** [all] Error 2 /usr/libexec/paludis/utils/emake: emake returned error 2 !!! ERROR in x11-libs/cairo-1.8.2: !!! In src_compile at line 3923 !!! compile failed Without the incriminated USE flag, compilation works fine. I attach my emerge --info. Reproducible: Always
Created attachment 170436 [details] emerge --info
Did this work with cairo 1.8.0?
(In reply to comment #2) > Did this work with cairo 1.8.0? > Yes Doug, the compilation works fine with cairo-1.8.0.
I have the same problem... Wait for resolution.
Anyone here???
Created attachment 173977 [details] build log for cairo my build log. environment and emerge --info to follow
Created attachment 173979 [details] environment dump from portage
Created attachment 173981 [details] emerge --info
Created attachment 174323 [details, diff] Fix (maybe) upstream bug.
Created attachment 174324 [details] ebuild to use the above patch.
Hi. I got the same error. It seems this happens when you set `debug' USE flag for DirectFB, and this might be upstream bug. Anyway, I wrote a patch for this. I could emerge cairo with the attached patch and ebuild. patch: http://bugs.gentoo.org/attachment.cgi?id=174323 ebuild: http://bugs.gentoo.org/attachment.cgi?id=174324
(In reply to comment #11) > Hi. I got the same error. It seems this happens when you set `debug' USE flag > for DirectFB, and this might be upstream bug. Anyway, I wrote a patch for > this. I could emerge cairo with the attached patch and ebuild. patch: > http://bugs.gentoo.org/attachment.cgi?id=174323 ebuild: > http://bugs.gentoo.org/attachment.cgi?id=174324 > Compilation works fine with USE flag "debug" and "directfb" with your patch and ebuild, thanks guy :-)
(In reply to comment #11) > Hi. I got the same error. It seems this happens when you set `debug' USE flag > for DirectFB, and this might be upstream bug. Anyway, I wrote a patch for > this. I could emerge cairo with the attached patch and ebuild. patch: > http://bugs.gentoo.org/attachment.cgi?id=174323 ebuild: > http://bugs.gentoo.org/attachment.cgi?id=174324 > thanks for the patch. I was beating my head against a wall.
spatz maintains this now
4 years later... Is this still an issue with 1.10 or 1.12 ? If so, please reopen.