Build fails when configured with --enable-glib due to Timeout class being undefined. Also why is there no c++ component for the dbus product in bugzilla? Build log: /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../include/dbus-c++ -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../include -fvisibility=hidden -Wall -O3 -MT glib-integration.lo -MD -MP -MF .deps/glib-integration.Tpo -c -o glib-integration.lo glib-integration.cpp g++ -DHAVE_CONFIG_H -I. -I../include/dbus-c++ -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../include -fvisibility=hidden -Wall -O3 -MT glib-integration.lo -MD -MP -MF .deps/glib-integration.Tpo -c glib-integration.cpp -fPIC -DPIC -o .libs/glib-integration.o ../include/dbus-c++/glib-integration.h:44: error: expected class-name before '{' token ../include/dbus-c++/glib-integration.h:47: error: 'Timeout' has not been declared ../include/dbus-c++/glib-integration.h:47: error: expected `)' before '*' token ../include/dbus-c++/glib-integration.h:68: error: expected class-name before '{' token ../include/dbus-c++/glib-integration.h:71: error: 'Watch' has not been declared ../include/dbus-c++/glib-integration.h:71: error: expected `)' before '*' token ../include/dbus-c++/glib-integration.h:92: error: expected class-name before '{' token ../include/dbus-c++/glib-integration.h:102: error: ISO C++ forbids declaration of 'Timeout' with no type ../include/dbus-c++/glib-integration.h:102: error: expected ';' before '*' token ../include/dbus-c++/glib-integration.h:104: error: 'Timeout' has not been declared ../include/dbus-c++/glib-integration.h:106: error: ISO C++ forbids declaration of 'Watch' with no type ../include/dbus-c++/glib-integration.h:106: error: expected ';' before '*' token ../include/dbus-c++/glib-integration.h:108: error: 'Watch' has not been declared glib-integration.cpp:31: error: 'Timeout' has not been declared glib-integration.cpp:31: error: expected `)' before '*' token glib-integration.cpp: In member function 'void DBus::Glib::BusTimeout::toggle()': glib-integration.cpp:44: error: 'Timeout' has not been declared glib-integration.cpp:46: error: 'Timeout' has not been declared glib-integration.cpp: In static member function 'static gboolean DBus::Glib::BusTimeout::timeout_handler(void*)': glib-integration.cpp:54: error: 'class DBus::Glib::BusTimeout' has no member named 'handle' glib-integration.cpp: In member function 'void DBus::Glib::BusTimeout::_enable()': glib-integration.cpp:61: error: 'Timeout' has not been declared glib-integration.cpp: In function 'gboolean watch_dispatch(GSource*, gboolean (*)(void*), void*)': glib-integration.cpp:98: error: 'default_dispatcher' is not a member of 'DBus' glib-integration.cpp: At global scope: glib-integration.cpp:109: error: 'Watch' has not been declared glib-integration.cpp:109: error: expected `)' before '*' token glib-integration.cpp: In member function 'void DBus::Glib::BusWatch::toggle()': glib-integration.cpp:122: error: 'Watch' has not been declared glib-integration.cpp:124: error: 'Watch' has not been declared glib-integration.cpp: In static member function 'static gboolean DBus::Glib::BusWatch::watch_handler(void*)': glib-integration.cpp:144: error: 'class DBus::Glib::BusWatch' has no member named 'handle' glib-integration.cpp: In member function 'void DBus::Glib::BusWatch::_enable()': glib-integration.cpp:154: error: 'Watch' has not been declared glib-integration.cpp:167: error: 'Watch' has not been declared glib-integration.cpp: At global scope: glib-integration.cpp:187: error: expected constructor, destructor, or type conversion before '*' token glib-integration.cpp:196: error: variable or field 'rem_timeout' declared void glib-integration.cpp:196: error: 'int DBus::Glib::BusDispatcher::rem_timeout' is not a static member of 'class DBus::Glib::BusDispatcher' glib-integration.cpp:196: error: 'Timeout' was not declared in this scope glib-integration.cpp:196: error: 't' was not declared in this scope glib-integration.cpp:197: error: expected ',' or ';' before '{' token glib-integration.cpp:203: error: expected constructor, destructor, or type conversion before '*' token glib-integration.cpp:213: error: variable or field 'rem_watch' declared void glib-integration.cpp:213: error: 'int DBus::Glib::BusDispatcher::rem_watch' is not a static member of 'class DBus::Glib::BusDispatcher' glib-integration.cpp:213: error: 'Watch' was not declared in this scope glib-integration.cpp:213: error: 'w' was not declared in this scope glib-integration.cpp:214: error: expected ',' or ';' before '{' token make[1]: *** [glib-integration.lo] Error 1 make[1]: Leaving directory `/tmp/dbus-c++/src' make: *** [all-recursive] Error 1
Created attachment 13447 [details] [review] patch to include header for Timeout class
From http://www.freedesktop.org/wiki/Software/DBusBindings C++ dbus-cpp was started almost three years ago to provide a C++ API for D-Bus, but is unfortunately abandoned since then. For this reason PaoloDurante wrote a pure C++ binding (dbus-c++) while working on the OpenWengo softphone. Though, this patch seems rather trivial
dbus-c++ <http://sourceforge.net/projects/dbus-cplusplus/> has its own bug tracker and isn't hosted here. Please open a bug on Sourceforge if this is still applicable.
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.