# 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
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.
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.