From 0326d96881ccfaa84e44910f6286b9ba60746d7f Mon Sep 17 00:00:00 2001 From: PerryWerneck Date: Tue, 27 Sep 2016 12:29:57 -0300 Subject: [PATCH] Ajustes para compilação com GCC6 --- apt.sh | 24 ++++++++++++++++++++++++ src/classlib/private.h | 2 +- src/classlib/remote.cc | 8 +++++--- 3 files changed, 30 insertions(+), 4 deletions(-) create mode 100755 apt.sh diff --git a/apt.sh b/apt.sh new file mode 100755 index 0000000..b7d7e91 --- /dev/null +++ b/apt.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +apt-get install autotools-dev +apt-get install autoconf +apt-get install automake +apt-get install libgtk-3-dev +apt-get install gettext +apt-get install libssl-dev +apt-get install desktop-file-utils +apt-get install libdbus-glib-1-dev +apt-get install libssl-dev +apt-get install xsltproc +apt-get install librsvg2-bin +apt-get install zip +apt-get install oorexx-dev +apt-get install imagemagick +apt-get install libreoffice-style-galaxy +apt-get install libreoffice-dev +apt-get install ure +apt-get install php5-cli +apt-get install php5-dev +apt-get install openjdk-7-jdk +apt-get install python-dev + diff --git a/src/classlib/private.h b/src/classlib/private.h index ee2055e..9a422da 100644 --- a/src/classlib/private.h +++ b/src/classlib/private.h @@ -103,7 +103,7 @@ #else - #include + #include #endif // !c11 diff --git a/src/classlib/remote.cc b/src/classlib/remote.cc index 433e40d..a2e5ee5 100644 --- a/src/classlib/remote.cc +++ b/src/classlib/remote.cc @@ -28,6 +28,7 @@ */ #include + #include #if defined(HAVE_DBUS) #include @@ -737,7 +738,7 @@ } catch(exception e) { - + std::cerr << e.what(); } char busname[4096]; @@ -754,9 +755,10 @@ if (dbus_error_is_set(&err)) { - exception e = exception("Error when releasing DBUS name (%s)", err.message); + //exception e = exception("Error when releasing DBUS name (%s)", err.message); + std::cerr << err.message; dbus_error_free(&err); - throw e; + //throw e; } #else -- libgit2 0.21.2