After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 626605 - build failed with GTK3 master (after merge branch rendering-cleanup)
build failed with GTK3 master (after merge branch rendering-cleanup)
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
2.31.x
Other All
: Urgent major
: ---
Assigned To: librsvg maintainers
librsvg maintainers
: 626792 (view as bug list)
Depends on:
Blocks: 626688
 
 
Reported: 2010-08-11 08:44 UTC by sathyz
Modified: 2010-09-27 17:50 UTC
See Also:
GNOME target: 3.0
GNOME version: 2.31/2.32


Attachments
Change deprecated "gdk_draw_pixbuf" to "gdk_draw_drawable". (1.08 KB, patch)
2010-08-11 09:36 UTC, Jasper St. Pierre (not reading bugmail)
rejected Details | Review
Try and fix the problem (1.32 KB, patch)
2010-08-11 17:11 UTC, Jasper St. Pierre (not reading bugmail)
rejected Details | Review
Apply Company's changes on the internal librsvg pixbuf engine to remove the gdk calls and move over to cairo. (3.00 KB, patch)
2010-08-12 08:48 UTC, Jasper St. Pierre (not reading bugmail)
needs-work Details | Review

Description sathyz 2010-08-11 08:44:00 UTC
building librsvg failed saying the following
....
make[3]: Leaving directory `/d2/gnome-shell/source/librsvg/gtk-engine/examples'
make[3]: Entering directory `/d2/gnome-shell/source/librsvg/gtk-engine'
  CC     libsvg_la-svg-draw.lo
  CC     libsvg_la-svg-main.lo
  CC     libsvg_la-svg-render.lo
  CC     libsvg_la-svg-rc-style.lo
  CCLD   libsvg.la
  CC     libsvg_3_la-svg-draw.lo
  CC     libsvg_3_la-svg-main.lo
  CC     libsvg_3_la-svg-render.lo
svg-render.c: In function 'pixbuf_render':
svg-render.c:430: warning: implicit declaration of function 'gdk_draw_pixbuf'
svg-render.c:430: warning: nested extern declaration of 'gdk_draw_pixbuf'
svg-render.c:434: error: 'GDK_RGB_DITHER_NORMAL' undeclared (first use in this function)
svg-render.c:434: error: (Each undeclared identifier is reported only once
svg-render.c:434: error: for each function it appears in.)
svg-render.c: In function 'theme_pixbuf_render':
svg-render.c:831: error: 'GdkGC' undeclared (first use in this function)
svg-render.c:831: error: 'tmp_gc' undeclared (first use in this function)
svg-render.c:832: error: 'GdkGCValues' undeclared (first use in this function)
svg-render.c:832: error: expected ';' before 'gc_values'
svg-render.c:838: warning: implicit declaration of function 'gdk_gc_new'
svg-render.c:838: warning: nested extern declaration of 'gdk_gc_new'
svg-render.c:843: error: 'GDK_RGB_DITHER_NORMAL' undeclared (first use in this function)
svg-render.c:847: error: 'gc_values' undeclared (first use in this function)
svg-render.c:847: error: 'GDK_TILED' undeclared (first use in this function)
svg-render.c:849: warning: implicit declaration of function 'gdk_gc_new_with_values'
svg-render.c:849: warning: nested extern declaration of 'gdk_gc_new_with_values'
svg-render.c:850: error: 'GDK_GC_FILL' undeclared (first use in this function)
svg-render.c:850: error: 'GDK_GC_TILE' undeclared (first use in this function)
svg-render.c:852: warning: implicit declaration of function 'gdk_draw_rectangle'
svg-render.c:852: warning: nested extern declaration of 'gdk_draw_rectangle'
make[3]: *** [libsvg_3_la-svg-render.lo] Error 1
make[3]: Leaving directory `/d2/gnome-shell/source/librsvg/gtk-engine'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/d2/gnome-shell/source/librsvg/gtk-engine'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/d2/gnome-shell/source/librsvg'
make: *** [all] Error 2
*** Error during phase build of librsvg: ########## Error running make   *** [9/21]
Comment 1 Jasper St. Pierre (not reading bugmail) 2010-08-11 09:36:19 UTC
Created attachment 167570 [details] [review]
Change deprecated "gdk_draw_pixbuf" to "gdk_draw_drawable".
Comment 2 Jasper St. Pierre (not reading bugmail) 2010-08-11 17:11:32 UTC
Created attachment 167642 [details] [review]
Try and fix the problem

Oh hey look was being an idiot and decided to read
outdated docs, didn't test a patch before attaching,
and didn't read errors, commit logs, mailing lists
OR blogs to figure out what went awry!

Also, I would test the patch, but the combination
of mutter being broken, nVidia corruption issues
and overall slowness made me go a little crazy.
Comment 3 Jasper St. Pierre (not reading bugmail) 2010-08-12 08:48:04 UTC
Created attachment 167702 [details] [review]
Apply Company's changes on the internal librsvg pixbuf engine to remove the gdk calls and move over to cairo.
Comment 4 Baptiste Mille-Mathias 2010-08-13 06:50:52 UTC
Setting right importance.
Comment 5 Diska 2010-08-13 22:42:06 UTC
*** Bug 626792 has been marked as a duplicate of this bug. ***
Comment 6 Owen Taylor 2010-08-24 19:01:14 UTC
Review of attachment 167702 [details] [review]:

While this patch will result in correct rendering, I don't think it's a good idea - the problem with it is that to draw a pixbuf in 9 slices, it converts the entire pixbuf to a cairo surface 9 times. Since this patch also affects gtk2 builds of librsvg, it's important to get it right. Company is working on a better fix for the pixbuf engine in a GTK+ branch that should be applicable here once finished.
Comment 7 Christian Persch 2010-09-27 17:50:56 UTC
After discussion with Benjamin on IRC, I simply dropped the gtk engine from librsvg's gtk 3 build.