Bug 6133

Summary: cvs fails to build -- implicit declaration of function `cairo_pattern_get_type'
Product: pycairo Reporter: Elijah Newren <newren>
Component: generalAssignee: Steve Chaplin <d74n5pohf9>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: high CC: uws+freedesktop
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Elijah Newren 2006-03-05 08:37:33 UTC
pycairo cvs as of today fails to build with:

pycairo-pattern.c: In function `PycairoPattern_FromPattern':
pycairo-pattern.c:62: warning: implicit declaration of function
`cairo_pattern_get_type'
pycairo-pattern.c:63: error: `CAIRO_PATTERN_TYPE_SOLID' undeclared (first use in
this function)
pycairo-pattern.c:63: error: (Each undeclared identifier is reported only once
pycairo-pattern.c:63: error: for each function it appears in.)
pycairo-pattern.c:66: error: `CAIRO_PATTERN_TYPE_SURFACE' undeclared (first use
in this function)
pycairo-pattern.c:69: error: `CAIRO_PATTERN_TYPE_LINEAR' undeclared (first use
in this function)
pycairo-pattern.c:72: error: `CAIRO_PATTERN_TYPE_RADIAL' undeclared (first use
in this function)
make[2]: *** [_cairo_la-pycairo-pattern.lo] Error 1
make[2]: Leaving directory `/floss/building/gnome/pycairo/cairo'
make[1]: *** [all-recursive] Error 1
Comment 1 Steve Chaplin 2006-03-05 11:23:42 UTC
What version of cairo are you compiling against?
Pycairo cvs is being developed to track changes in cairo (now using git, not
cvs). If you update your cairo files you should find that pycairo will compile.
Comment 2 Elijah Newren 2006-03-05 11:34:11 UTC
Ah, oops, I'm still building cairo from cvs (as are a bunch of other testers of
Gnome since that's what jhbuild does).  So, I guess I need to file a bug against
jhbuild.

Sorry for the noise.
Comment 3 Elijah Newren 2006-03-05 11:49:29 UTC
For anyone who runs across this bug and also uses jhbuild: I filed
http://bugzilla.gnome.org/show_bug.cgi?id=333425 against jhbuild to request
using git instead of cvs for obtaining cairo.
Comment 4 Steve Chaplin 2006-03-16 11:17:28 UTC
*** Bug 6282 has been marked as a duplicate of this bug. ***
Comment 5 Brent Smith 2006-03-18 04:53:58 UTC
It seems that pycairo CVS HEAD is targeting the development branch of cairo,
i.e. cairo 1.1 (or cairo master in git).

pycairo release 1.0.2 will however compile against cairo 1.0.4.

Is there a branch in CVS for pycairo that corresponds to the stable branch of
cairo, i.e. cairo 1.0? (or cairo 1.0 in git)
Comment 6 Steve Chaplin 2006-03-20 12:02:03 UTC
Yes, pycairo cvs is developed to work with the development branch of cairo.
There's no branch in pycairo to correspond to the stable branch of cairo, but
each pycairo release is tagged. The last release has the tag RELEASE_1_0_2 and
it works with cairo 1.0.2 and 1.0.4

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.