Bug 13136 - Problem compiling rcairo 1.5.0
Summary: Problem compiling rcairo 1.5.0
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.5.3
Hardware: Other Linux (All)
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-07 15:28 UTC by Pierre
Modified: 2008-10-10 04:57 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Pierre 2007-11-07 15:28:09 UTC
# make
gcc -s -fPIC -O3 -march=i686 -fPIC -Wall -I/usr/local/include/cairo -I/usr/local/include -I/usr/local/include/libpng12 -I/usr/local/include/freetype2   -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/tmp/rcairo-1.5.0/src -DRUBY_CAIRO_COMPILATION -I/usr/local/BerkeleyDB.4.1/include -c /tmp/rcairo-1.5.0/src/rb_cairo_context.c -o src/rb_cairo_context.o
/tmp/rcairo-1.5.0/src/rb_cairo_context.c: In function `cr_quadratic_curve_to':
/tmp/rcairo-1.5.0/src/rb_cairo_context.c:587: warning: implicit declaration of function `cr_get_current_point'
/tmp/rcairo-1.5.0/src/rb_cairo_context.c: At top level:
/tmp/rcairo-1.5.0/src/rb_cairo_context.c:1221: error: conflicting types for 'cr_get_current_point'
/tmp/rcairo-1.5.0/src/rb_cairo_context.c:587: error: previous implicit declaration of 'cr_get_current_point' was here
make: *** [src/rb_cairo_context.o] Error 1
Comment 1 Alec Resnick 2008-02-13 19:53:44 UTC
So I had this same problem.  I fixed it with a hack.  If you take a look, on line 29 of rb_cairo_context.c, there is a prototype declaration of cr_get_current_point.

I don't know why that doesn't work; however, if you move the definition of cr_get_current_point above its call in cr_quadratic_curve_to, it will compile successfully.
Comment 2 Chris Wilson 2008-10-10 04:57:27 UTC
I'm guessing this was a side-effect of changing the prototype for cairo_get_current_point() which was reverted before the next stable release.


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.