Comment 7 for bug 1546312

Revision history for this message
Oliver Kurth (okurth-1) wrote :

When building open-vm-tools for Ubuntu 16.10, we encountered a build error:

command line option '-std=c++11' is valid for C++/ObjC++ but not for C [-Werror]

I am not sure if this is already addressed in the patches for the Debian package, but to make sure the following patch fixes it:

==== //depot/bora-vmsoft/vmtools-prod/install/Source/services/plugins/dndcp/Makefile.am#5 (text) ====

@@ -22,7 +22,6 @@

 libdndcp_la_CPPFLAGS =
 libdndcp_la_CPPFLAGS += @GTK_CPPFLAGS@
-libdndcp_la_CPPFLAGS += @GTKMM_CPPFLAGS@
 libdndcp_la_CPPFLAGS += @PLUGIN_CPPFLAGS@
 libdndcp_la_CPPFLAGS += -I$(top_srcdir)/services/plugins/dndcp/dnd
 libdndcp_la_CPPFLAGS += -I$(top_srcdir)/services/plugins/dndcp/dndGuest
@@ -34,6 +33,7 @@
 # So, we need to pass these to C++ compilation only.
 libdndcp_la_CXXFLAGS =
 libdndcp_la_CXXFLAGS += @SIGCXX_CPPFLAGS@
+libdndcp_la_CXXFLAGS += @GTKMM_CPPFLAGS@

 libdndcp_la_LDFLAGS =
 libdndcp_la_LDFLAGS += @PLUGIN_LDFLAGS@