Public bug reported:

Release:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS"

Package:

libjsonrpccpp-dev/now 0.7.0-1.1build2 amd64 [installed,local]

Expected:

Create a file such as:

#include <jsonrpccpp/client/client.h>
int main() { return 0; }

Compilation with g++-11 should pass

Observed:

g++-11 -std=c++17 foo.cpp -ljsonrpccpp-client
In file included from /usr/include/jsonrpccpp/client/client.h:13,
                 from foo.cpp:1:
/usr/include/jsonrpccpp/client/iclientconnector.h:23:90: error: ISO C++17 does 
not allow dynamic exception specifications
   23 |             virtual void SendRPCMessage(const std::string& message, 
std::string& result) throw(JsonRpcException) = 0;
      |                                                                         
                 ^~~~~
In file included from foo.cpp:1:
/usr/include/jsonrpccpp/client/client.h:33:122: error: ISO C++17 does not allow 
dynamic exception specifications
   33 |             void        CallMethod          (const std::string &name, 
const Json::Value &parameter, Json::Value& result) throw (JsonRpcException);
      |                                                                         
                                                 ^~~~~
In file included from foo.cpp:1:
/usr/include/jsonrpccpp/client/client.h:34:101: error: ISO C++17 does not allow 
dynamic exception specifications
   34 |             Json::Value CallMethod          (const std::string &name, 
const Json::Value &parameter) throw (JsonRpcException);
      |                                                                         
                            ^~~~~
/usr/include/jsonrpccpp/client/client.h:36:98: error: ISO C++17 does not allow 
dynamic exception specifications
   36 |             void           CallProcedures      (const BatchCall &calls, 
BatchResponse &response) throw (JsonRpcException);
      |                                                                         
                         ^~~~~
/usr/include/jsonrpccpp/client/client.h:37:73: error: ISO C++17 does not allow 
dynamic exception specifications
   37 |             BatchResponse  CallProcedures      (const BatchCall &calls) 
throw (JsonRpcException);
      |                                                                         
^~~~~
/usr/include/jsonrpccpp/client/client.h:39:101: error: ISO C++17 does not allow 
dynamic exception specifications
   39 |             void        CallNotification    (const std::string& name, 
const Json::Value& parameter) throw (JsonRpcException);

Remarks:

I can confirm this is fixed upstream. I've tested with v1.4.1. It
compiles.

** Affects: libjson-rpc-cpp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2134911

Title:
  libjson-rpc-cpp 0.7.0 package is outdated and fails to build with
  C++17/g++-11 due to deprecated dynamic exception specifications

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libjson-rpc-cpp/+bug/2134911/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to