From f2313569b63c2b22bd940cd3a88dfcb384e25f96 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 6 Jul 2021 21:11:40 -0700 Subject: [PATCH 1/4] ibrdtn: fix compilation with GCC11 GCC11 defaults to C++17, which does now allow specifying throw(). Signed-off-by: Rosen Penev --- libs/ibrdtn/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ibrdtn/Makefile b/libs/ibrdtn/Makefile index d85b2573a..a318084ab 100644 --- a/libs/ibrdtn/Makefile +++ b/libs/ibrdtn/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ibrdtn PKG_VERSION:=1.0.1 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases @@ -37,6 +37,8 @@ CONFIGURE_ARGS += \ --with-compression \ --without-glib +TARGET_CXXFLAGS +=-std=c++11 + define Build/InstallDev $(INSTALL_DIR) $(1) $(CP) $(PKG_INSTALL_DIR)/* $(1)/ From 77e696ccdceef2c9ea4de4d0e50bbf0344cd3188 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 7 Jul 2021 13:36:49 -0700 Subject: [PATCH 2/4] ibrdtnd: fix compilation with GCC11 throw() is not compatible with C++17. Signed-off-by: Rosen Penev --- net/ibrdtnd/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/ibrdtnd/Makefile b/net/ibrdtnd/Makefile index c23bc325c..f3e4bb5d0 100644 --- a/net/ibrdtnd/Makefile +++ b/net/ibrdtnd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ibrdtnd PKG_VERSION:=1.0.1 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases @@ -46,6 +46,8 @@ CONFIGURE_ARGS += \ --without-vmime \ --disable-libdaemon +TARGET_CXXFLAGS += -std=c++11 + define Package/ibrdtnd/install $(INSTALL_DIR) $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dtnd $(1)/usr/sbin/ From 20d01239c7c856eaaaae1dabf5c8a8de51821351 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 7 Jul 2021 13:37:55 -0700 Subject: [PATCH 3/4] ibrdtn-tools: fix compilation with GCC11 throw() is not supported with C++17. Signed-off-by: Rosen Penev --- net/ibrdtn-tools/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/ibrdtn-tools/Makefile b/net/ibrdtn-tools/Makefile index f717f277a..8286b9bb3 100644 --- a/net/ibrdtn-tools/Makefile +++ b/net/ibrdtn-tools/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ibrdtn-tools PKG_VERSION:=1.0.1 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases @@ -36,6 +36,8 @@ endef CONFIGURE_ARGS += \ --without-libdaemon +TARGET_CXXFLAGS += -std=c++11 + define Package/ibrdtn-tools/install $(INSTALL_DIR) $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dtnping $(1)/usr/bin/dtnping From e3b89b6f5d1dc4561b3a9cba4974785d687df174 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 6 Jul 2021 20:54:09 -0700 Subject: [PATCH 4/4] ibrcommon: fix compilation with GCC11 GCC11 defaults to C++17, which does not allow throw specifiers. Signed-off-by: Rosen Penev --- libs/ibrcommon/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ibrcommon/Makefile b/libs/ibrcommon/Makefile index 43e26252d..b1adfd39f 100644 --- a/libs/ibrcommon/Makefile +++ b/libs/ibrcommon/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ibrcommon PKG_VERSION:=1.0.1 -PKG_RELEASE:=8 +PKG_RELEASE:=9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases @@ -32,6 +32,8 @@ endef CONFIGURE_ARGS += \ --with-openssl +TARGET_CXXFLAGS += -std=c++11 + define Package/ibrcommon/description A library with common functions for C++. endef