Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73454 - x11-libs/cairo-0.2.0 compile fails with USE=glitz
Summary: x11-libs/cairo-0.2.0 compile fails with USE=glitz
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Tom Payne (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 73041
  Show dependency tree
 
Reported: 2004-12-05 08:51 UTC by Tom Payne (RETIRED)
Modified: 2004-12-19 10:20 UTC (History)
4 users (show)

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


Attachments
glitz-0.2.3 ebuild (works with cairo-0.2.0) (glitz-0.2.3.ebuild,894 bytes, text/plain)
2004-12-18 15:15 UTC, Nahum Shalman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Payne (RETIRED) gentoo-dev 2004-12-05 08:51:26 UTC
With glitz-cvs-20041204 I get:

 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I/usr/X11R6/include -I/usr/include/libpng12 -I/usr/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -march=athlon-xp -O3 -pipe -MT cairo_glitz_surface.lo -MD -MP -MF .deps/cairo_glitz_surface.Tpo -c cairo_glitz_surface.c  -fPIC -DPIC -o .libs/cairo_glitz_surface.o
In file included from cairo_glitz_surface.c:27:
cairoint.h:407: warning: `__visibility__' attribute ignored on non-class types
cairoint.h:812: warning: `__visibility__' attribute ignored on non-class types
cairoint.h:827: warning: `__visibility__' attribute ignored on non-class types
cairoint.h:842: warning: `__visibility__' attribute ignored on non-class types
cairoint.h:848: warning: `__visibility__' attribute ignored on non-class types
cairoint.h:1130: warning: `__visibility__' attribute ignored on non-class types
cairoint.h:1274: warning: `__visibility__' attribute ignored on non-class types
cairoint.h:1281: warning: `__visibility__' attribute ignored on non-class types
cairoint.h:1336: warning: `__visibility__' attribute ignored on non-class types
cairoint.h:1357: warning: `__visibility__' attribute ignored on non-class types
cairoint.h:1538: warning: `__visibility__' attribute ignored on non-class types
cairoint.h:1568: warning: `__visibility__' attribute ignored on non-class types
cairo_glitz_surface.c: In function `_cairo_glitz_surface_get_image':
cairo_glitz_surface.c:122: error: structure has no member named `red_size'
cairo_glitz_surface.c:125: error: structure has no member named `alpha_size'
cairo_glitz_surface.c: In function `_glitz_operator':
cairo_glitz_surface.c:310: error: `GLITZ_OPERATOR_SATURATE' undeclared (first use in this function)
cairo_glitz_surface.c:310: error: (Each undeclared identifier is reported only once
cairo_glitz_surface.c:310: error: for each function it appears in.)
cairo_glitz_surface.c: In function `_glitz_surface_create_solid':
cairo_glitz_surface.c:325: warning: implicit declaration of function `glitz_surface_find_similar_standard_format'
cairo_glitz_surface.c:325: warning: nested extern declaration of `glitz_surface_find_similar_standard_format'
cairo_glitz_surface.c:325: warning: assignment makes pointer from integer without a cast
cairo_glitz_surface.c:329: warning: implicit declaration of function `glitz_surface_create_similar'
cairo_glitz_surface.c:329: warning: nested extern declaration of `glitz_surface_create_similar'
cairo_glitz_surface.c:329: warning: assignment makes pointer from integer without a cast
cairo_glitz_surface.c: In function `_cairo_glitz_surface_create_similar':
cairo_glitz_surface.c:354: error: structure has no member named `read'
cairo_glitz_surface.c:355: error: `GLITZ_FORMAT_READ_OFFSCREEN_MASK' undeclared (first use in this function)
cairo_glitz_surface.c:358: error: structure has no member named `draw'
cairo_glitz_surface.c:359: error: `GLITZ_FEATURE_OFFSCREEN_MULTISAMPLE_MASK' undeclared (first use in this function)
cairo_glitz_surface.c:360: error: structure has no member named `multisample'
cairo_glitz_surface.c:360: error: structure has no member named `multisample'
cairo_glitz_surface.c:361: error: `GLITZ_FORMAT_MULTISAMPLE_SAMPLES_MASK' undeclared (first use in this function)
cairo_glitz_surface.c:364: error: structure has no member named `draw'
cairo_glitz_surface.c:366: error: `GLITZ_FORMAT_DRAW_OFFSCREEN_MASK' undeclared (first use in this function)
cairo_glitz_surface.c:371: error: structure has no member named `alpha_size'
cairo_glitz_surface.c:375: error: structure has no member named `red_size'
cairo_glitz_surface.c:380: error: structure has no member named `alpha_size'
cairo_glitz_surface.c:380: error: structure has no member named `red_size'
cairo_glitz_surface.c:387: warning: implicit declaration of function `glitz_surface_find_similar_format'
cairo_glitz_surface.c:387: warning: nested extern declaration of `glitz_surface_find_similar_format'
cairo_glitz_surface.c:387: warning: assignment makes pointer from integer without a cast
cairo_glitz_surface.c:391: warning: assignment makes pointer from integer without a cast
cairo_glitz_surface.c:396: warning: nested extern declaration of `glitz_surface_create_similar'
cairo_glitz_surface.c:397: warning: assignment makes pointer from integer without a cast
cairo_glitz_surface.c: In function `cairo_glitz_surface_create':
cairo_glitz_surface.c:922: warning: implicit declaration of function `glitz_surface_get_features'
cairo_glitz_surface.c:922: warning: nested extern declaration of `glitz_surface_get_features'
make[2]: *** [cairo_glitz_surface.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/cairo-0.2.0/work/cairo-0.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/cairo-0.2.0/work/cairo-0.2.0'
make: *** [all] Error 2

!!! ERROR: x11-libs/cairo-0.2.0 failed.
!!! Function src_compile, Line 26, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Tom Payne (RETIRED) gentoo-dev 2004-12-05 09:01:30 UTC
I've informed the author, Carl Worth.
Comment 2 Nahum Shalman 2004-12-18 15:14:09 UTC
I checked some of the documentation, and cairo-0.20 is meant to work with glitz 0.2.3.  media-libs/glitz-cvs is not 0.2.3.

solution: make a glitz-0.2.3 package and have cairo depend on that. (modify the cairo ebuild to depend on glitz instead of glitz-cvs)

to create a glitz source tarball for 0.2.3:
cvs -d:pserver:anoncvs@cvs.freedesktop.org:/cvs/cairo login
    [press enter]
cvs -d:pserver:anoncvs@cvs.freedesktop.org:/cvs/cairo/ checkout -r SNAPSHOT_0_2_3 glitz
mv glitz glitz-0.2.3
tar -czvf glitz-0.2.3.tar.gz glitz-0.2.3
cp glitz-0.2.3.tar.gz /usr/portage/distfiles

glitz-0.2.3 ebuild attached (note the included hack from bug #73041)

I hope this stuff is helpful.
Comment 3 Nahum Shalman 2004-12-18 15:15:40 UTC
Created attachment 46302 [details]
glitz-0.2.3 ebuild (works with cairo-0.2.0)
Comment 4 Tom Payne (RETIRED) gentoo-dev 2004-12-19 10:20:48 UTC
Many thanks for this Nahum. The updated glitz and cairo ebuilds are now in CVS.

Best regards,

Tom