When I try compiling the latest git source with gcc4.7 I get the following error:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I../include -Wno-unused-parameter -g -O2 -fvisibility=hidden -MT libdbus_c___1_la-eventloop-integration.lo -MD -MP -MF .deps/libdbus_c___1_la-eventloop-integration.Tpo -c eventloop-integration.cpp -fPIC -DPIC -o .libs/libdbus_c___1_la-eventloop-integration.o eventloop-integration.cpp: In constructor 'DBus::BusDispatcher::BusDispatcher()': eventloop-integration.cpp:84:23: error: 'pipe' was not declared in this scope eventloop-integration.cpp: In member function 'virtual void DBus::BusDispatcher::leave()': eventloop-integration.cpp:124:55: error: 'write' was not declared in this scope eventloop-integration.cpp:127:21: error: 'close' was not declared in this scope make[3]: *** [libdbus_c___1_la-eventloop-integration.lo] Error 1 make[3]: Leaving directory `/home/kalle/Sources/dbus-c++/libdbus-c++-git/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/kalle/Sources/dbus-c++/libdbus-c++-git/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/kalle/Sources/dbus-c++/libdbus-c++-git' make: *** [all] Error 2
The source was configured with:
./configure --disable-doxygen-docs --disable-tests --disable-glib --disable-ecore
I have attached a patch that fixes the issue.
Oh, I forgot: The bug was first reported to the Gentoo bugtracker [1] but it does not seem like the patch reached you.
[1] https://bugs.gentoo.org/show_bug.cgi?id=424707