With GTK_DISABLE_DEPRECATED, build fails if configured with '--enable-dbusapi':
CXX extension/dbus/document-interface.o
In file included from ../../src/ui/dialog/ocaldialogs.h:17, from ../../src/file.h:19, from ../../src/extension/dbus/document-interface.cpp:29:
/opt/local/include/gtkmm-2.4/gtkmm/box.h:105: error: expected class-name before ‘{’ token
/opt/local/include/gtkmm-2.4/gtkmm/box.h:112: error: ISO C++ forbids declaration of ‘_GtkBoxChild’ with no type
/opt/local/include/gtkmm-2.4/gtkmm/box.h:112: error: ‘_GtkBoxChild’ declared as an ‘inline’ field
/opt/local/include/gtkmm-2.4/gtkmm/box.h:112: error: expected ‘;’ before ‘*’ token
/opt/local/include/gtkmm-2.4/gtkmm/box.h:114: error: expected `;' before ‘inline’
/opt/local/include/gtkmm-2.4/gtkmm/box.h:114: error: ISO C++ forbids declaration of ‘_GtkBoxChild’ with no type
/opt/local/include/gtkmm-2.4/gtkmm/box.h:114: error: ‘_GtkBoxChild’ declared as an ‘inline’ field
/opt/local/include/gtkmm-2.4/gtkmm/box.h:114: error: expected ‘;’ before ‘*’ token
/opt/local/include/gtkmm-2.4/gtkmm/box.h:116: error: expected `;' before ‘Widget’
/opt/local/include/gtkmm-2.4/gtkmm/box.h: In member function ‘guint16 Gtk::Box_Helpers::Child::get_padding() const’:
/opt/local/include/gtkmm-2.4/gtkmm/box.h:118: error: ‘gobj’ was not declared in this scope
/opt/local/include/gtkmm-2.4/gtkmm/box.h: In member function ‘bool Gtk::Box_Helpers::Child::get_expand() const’:
/opt/local/include/gtkmm-2.4/gtkmm/box.h:119: error: ‘gobj’ was not declared in this scope
/opt/local/include/gtkmm-2.4/gtkmm/box.h: In member function ‘bool Gtk::Box_Helpers::Child::get_fill() const’:
/opt/local/include/gtkmm-2.4/gtkmm/box.h:120: error: ‘gobj’ was not declared in this scope
/opt/local/include/gtkmm-2.4/gtkmm/box.h: In member function ‘bool Gtk::Box_Helpers::Child::get_pack() const’:
/opt/local/include/gtkmm-2.4/gtkmm/box.h:121: error: ‘gobj’ was not declared in this scope
/opt/local/include/gtkmm-2.4/gtkmm/box.h: In member function ‘GtkBox* Gtk::Box_Helpers::Child::parent()’:
/opt/local/include/gtkmm-2.4/gtkmm/box.h:130: error: ‘gobj’ was not declared in this scope
make[3]: *** [extension/dbus/document-interface.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
With this change to configure.ac (reverting r11222), build succeeds:
With GTK_DISABLE_ DEPRECATED, build fails if configured with '--enable-dbusapi':
CXX extension/ dbus/document- interface. o ui/dialog/ ocaldialogs. h:17,
from ../../src/ file.h: 19,
from ../../src/ extension/ dbus/document- interface. cpp:29: include/ gtkmm-2. 4/gtkmm/ box.h:105: error: expected class-name before ‘{’ token include/ gtkmm-2. 4/gtkmm/ box.h:112: error: ISO C++ forbids declaration of ‘_GtkBoxChild’ with no type include/ gtkmm-2. 4/gtkmm/ box.h:112: error: ‘_GtkBoxChild’ declared as an ‘inline’ field include/ gtkmm-2. 4/gtkmm/ box.h:112: error: expected ‘;’ before ‘*’ token include/ gtkmm-2. 4/gtkmm/ box.h:114: error: expected `;' before ‘inline’ include/ gtkmm-2. 4/gtkmm/ box.h:114: error: ISO C++ forbids declaration of ‘_GtkBoxChild’ with no type include/ gtkmm-2. 4/gtkmm/ box.h:114: error: ‘_GtkBoxChild’ declared as an ‘inline’ field include/ gtkmm-2. 4/gtkmm/ box.h:114: error: expected ‘;’ before ‘*’ token include/ gtkmm-2. 4/gtkmm/ box.h:116: error: expected `;' before ‘Widget’ include/ gtkmm-2. 4/gtkmm/ box.h: In member function ‘guint16 Gtk::Box_ Helpers: :Child: :get_padding( ) const’: include/ gtkmm-2. 4/gtkmm/ box.h:118: error: ‘gobj’ was not declared in this scope include/ gtkmm-2. 4/gtkmm/ box.h: In member function ‘bool Gtk::Box_ Helpers: :Child: :get_expand( ) const’: include/ gtkmm-2. 4/gtkmm/ box.h:119: error: ‘gobj’ was not declared in this scope include/ gtkmm-2. 4/gtkmm/ box.h: In member function ‘bool Gtk::Box_ Helpers: :Child: :get_fill( ) const’: include/ gtkmm-2. 4/gtkmm/ box.h:120: error: ‘gobj’ was not declared in this scope include/ gtkmm-2. 4/gtkmm/ box.h: In member function ‘bool Gtk::Box_ Helpers: :Child: :get_pack( ) const’: include/ gtkmm-2. 4/gtkmm/ box.h:121: error: ‘gobj’ was not declared in this scope include/ gtkmm-2. 4/gtkmm/ box.h: In member function ‘GtkBox* Gtk::Box_ Helpers: :Child: :parent( )’: include/ gtkmm-2. 4/gtkmm/ box.h:130: error: ‘gobj’ was not declared in this scope dbus/document- interface. o] Error 1
In file included from ../../src/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
/opt/local/
make[3]: *** [extension/
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
With this change to configure.ac (reverting r11222), build succeeds:
$ bzr diff configure.ac "-DG_DISABLE_ DEPRECATED $CPPFLAGS" "-DGTK_ DISABLE_ SINGLE_ INCLUDES $CPPFLAGS" "-DGTKMM_ DISABLE_ DEPRECATED $CPPFLAGS" "-DGTK_ DISABLE_ DEPRECATED $CPPFLAGS" "-DGTK_ DISABLE_ DEPRECATED $CPPFLAGS" "-DGDKMM_ DISABLE_ DEPRECATED $CPPFLAGS"
=== modified file 'configure.ac'
--- configure.ac 2012-04-11 15:17:53 +0000
+++ configure.ac 2012-04-14 01:00:47 +0000
@@ -60,7 +60,7 @@
CPPFLAGS=
CPPFLAGS=
CPPFLAGS=
- CPPFLAGS=
+ #CPPFLAGS=
CPPFLAGS=
# Test for -Werror=... (introduced some time post-4.0)
$