Created attachment 28994 [details] [review]
dbus-c++ fails to build on GNU/kFreeBSD (and probably FreeBSD as well) due to unconditional use of HOST_NAME_MAX.
Attached patch resolves the problem by removing the need for max hostname length assumption. Instead of using gethostname(), one just needs to use xgethostname().
More details are available at http://bugs.debian.org/542887
Note xgethostname.c is obtained from Gnulib (http://www.gnu.org/software/gnulib/)
dbus-c++ <http://sourceforge.net/projects/dbus-cplusplus/> has its own bug
tracker and is no longer hosted here. Please open a bug over there.