GNOME Bugzilla – Bug 634532
Fails to build with gtk+-3.0
Last modified: 2010-12-17 03:00:55 UTC
I'm trying to build the git/master in a gtk+-3.0 environment. I've got gtk+-3.0 2.91.4 installed. The build dies with: libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I. -DGSEAL_ENABLE -pthread -DORBIT2=1 -I/opt/garnom e-svn-2.91.1/include/gtk-3.0 -I/opt/garnome-svn-2.91.1/lib/gtk-3.0/include -I/opt/garnome-svn-2.91.1/include/atk-1 .0 -I/opt/garnome-svn-2.91.1/include/cairo -I/opt/garnome-svn-2.91.1/include/gdk-pixbuf-2.0 -I/opt/garnome-svn-2.9 1.1/include/pango-1.0 -I/opt/garnome-svn-2.91.1/include/gio-unix-2.0/ -I/opt/garnome-svn-2.91.1/include -I/opt/gar nome-svn-2.91.1/include/glib-2.0 -I/opt/garnome-svn-2.91.1/lib/glib-2.0/include -I/opt/garnome-svn-2.91.1/include/ freetype2 -I/opt/garnome-svn-2.91.1/include/enchant -I/opt/garnome-svn-2.91.1/include/gconf/2 -I/opt/garnome-svn-2 .91.1/include/orbit-2.0 -I/usr/include/pixman-1 -I/usr/include/libpng12 -pthread -I/opt/garnome-svn-2.91.1/include /libsoup-2.4 -I/opt/garnome-svn-2.91.1/include/libxml2 -I/opt/garnome-svn-2.91.1/include -I/opt/garnome-svn-2.91.1 /include/glib-2.0 -I/opt/garnome-svn-2.91.1/lib/glib-2.0/include -DGNOME_EXPLICIT_TRANSLATION_DOMAIN=\"gtkhtml-4.0 \" -DG_LOG_DOMAIN=\"gtkhtml\" -DHAVE_NEWSOUP -I/opt/garnome-svn-2.91.1/include -DPREFIX=\"/opt/garnome-svn-2.91.1\ " -DLIBDIR=\"/opt/garnome-svn-2.91.1/share\" -DDATADIR=\"/opt/garnome-svn-2.91.1/share\" -DSYSCONFDIR=\"/opt/garno me-svn-2.91.1/etc\" -DICONDIR=\"/opt/garnome-svn-2.91.1/share/gtkhtml-4.0/icons\" -DGTKHTML_DATADIR=\"/opt/garnome -svn-2.91.1/share/gtkhtml-4.0\" -DGNOMELOCALEDIR=\"/opt/garnome-svn-2.91.1/share/locale\" -I/opt/garnome-svn-2.91. 1/include -L/opt/garnome-svn-2.91.1/lib -O2 -g -pipe -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -Wall -Wextra -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -fno-strict-aliasing -MT htmlbutton.lo -MD -MP -MF .deps/htmlbutton.Tpo -c htmlbutton.c -fPIC -DPIC -o .libs/htmlbutton.o gtkhtml.c: In function 'set_adjustments': gtkhtml.c:2456:18: error: 'GtkLayoutClass' has no member named 'set_scroll_adjustments' gtkhtml.c:2457:18: error: 'GtkLayoutClass' has no member named 'set_scroll_adjustments' gtkhtml.c: In function 'gtk_html_class_init': gtkhtml.c:3243:14: error: 'GtkLayoutClass' has no member named 'set_scroll_adjustments' make[6]: *** [gtkhtml.lo] Error 1 m
I have a fix for this already on a private branch. I'll merge it to master after GTK+ 3.0 is released in late December or January.
Could you at least put the patch up for those of us who are trying to jhbuild?
There's a public branch for building with gtk3 now. It's called gtk3.
*** Bug 635290 has been marked as a duplicate of this bug. ***
*** Bug 636163 has been marked as a duplicate of this bug. ***
Would it make sense to make gtk3 branch master at this stage, and move the stable code into non-master branch? IMHO that would be more sane than switching jhbuild to gtk3 branch and then (later) back to master.
We only require and support gtk2 right now and are working on gtk3 changes on the side. Once gtk-3.0 is formally released we will merge the gtk3 branch into master and drop support for gtk2.
Everything builds fine now on our gtk3 branches, so closing this.