Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245115 - x11-libs/cairo-1.8.2 USE="directfb" - cairo-directfb-surface.c:554: error: 'surface' undeclared (first use in this function)
Summary: x11-libs/cairo-1.8.2 USE="directfb" - cairo-directfb-surface.c:554: error: 's...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Ben de Groot (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-01 07:14 UTC by BedOS_Gui
Modified: 2012-07-25 07:21 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge--info,10.96 KB, text/plain)
2008-11-01 07:15 UTC, BedOS_Gui
Details
build log for cairo (build.log,85.57 KB, text/plain)
2008-12-01 15:59 UTC, James Wall
Details
environment dump from portage (environment,106.68 KB, text/plain)
2008-12-01 16:01 UTC, James Wall
Details
emerge --info (system.info,3.36 KB, text/plain)
2008-12-01 16:02 UTC, James Wall
Details
Fix (maybe) upstream bug. (cairo-1.8.4-_cairo_directfb_surface_composite.patch,373 bytes, patch)
2008-12-05 15:21 UTC, Naohiro Aota
Details | Diff
ebuild to use the above patch. (cairo-1.8.4-r1.ebuild,2.42 KB, text/plain)
2008-12-05 15:23 UTC, Naohiro Aota
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BedOS_Gui 2008-11-01 07:14:56 UTC
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
Comment 1 BedOS_Gui 2008-11-01 07:15:54 UTC
Created attachment 170436 [details]
emerge --info
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2008-11-03 15:39:48 UTC
Did this work with cairo 1.8.0?
Comment 3 BedOS_Gui 2008-11-03 17:36:22 UTC
(In reply to comment #2)
> Did this work with cairo 1.8.0?
> 

Yes Doug, the compilation works fine with cairo-1.8.0.
Comment 4 kouyu 2008-11-13 13:29:29 UTC
I have the same problem... Wait for resolution.
Comment 5 kouyu 2008-11-24 03:01:33 UTC
Anyone here???
Comment 6 James Wall 2008-12-01 15:59:13 UTC
Created attachment 173977 [details]
build log for cairo

my build log. environment and emerge --info to follow
Comment 7 James Wall 2008-12-01 16:01:05 UTC
Created attachment 173979 [details]
environment dump from portage
Comment 8 James Wall 2008-12-01 16:02:45 UTC
Created attachment 173981 [details]
emerge --info
Comment 9 Naohiro Aota gentoo-dev 2008-12-05 15:21:01 UTC
Created attachment 174323 [details, diff]
Fix (maybe) upstream bug.
Comment 10 Naohiro Aota gentoo-dev 2008-12-05 15:23:14 UTC
Created attachment 174324 [details]
ebuild to use the above patch.
Comment 11 Naohiro Aota gentoo-dev 2008-12-05 15:25:20 UTC
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
Comment 12 BedOS_Gui 2008-12-05 19:36:48 UTC
(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 :-)
Comment 13 James Wall 2008-12-08 08:08:21 UTC
(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. 
Comment 14 Doug Goldstein (RETIRED) gentoo-dev 2012-07-14 19:10:47 UTC
spatz maintains this now
Comment 15 Ben de Groot (RETIRED) gentoo-dev 2012-07-25 07:21:49 UTC
4 years later... Is this still an issue with 1.10 or 1.12 ? If so, please reopen.