[Pdns-users] PowerDNS Recursor build fails on openSUSE Tumbleweed/Factory (gcc 10)

Otto Moerbeek otto.moerbeek at open-xchange.com
Wed Sep 9 09:48:53 UTC 2020



On 2020-09-09 11:39, Otto Moerbeek via Pdns-users wrote:
> 
> 
> On 2020-09-09 11:14, Otto Moerbeek via Pdns-users wrote:
>>
>>
>> On 2020-09-09 10:55, Michael Ströder via Pdns-users wrote:
>>> On 9/8/20 11:49 AM, Remi Gacogne via Pdns-users wrote:
>>>> On 9/8/20 11:39 AM, Michael Ströder via Pdns-users wrote:
>>>>
>>>>> Currently building PowerDNS Recursor fails building on openSUSE
>>>>> Tumbleweed/Factory:
>>>>
>>>> It's an issue caused by Boost >= 1.73, see [1]. We should probably
>>>> backport that patch, at least to 4.3.x, but we have not done so yet.
>>>>
>>>> [1]: https://github.com/PowerDNS/pdns/pull/9070
>>>
>>> Thanks for your quick answer.
>>> It seems also pdns auth is affected.
>>>
>>> Any chance to get fixed releases?
>>> Or should package maintainers apply back-port patches?
>>>
>>> Ciao, Michael.
>>> _______________________________________________
>>> Pdns-users mailing list
>>> Pdns-users at mailman.powerdns.com
>>> https://mailman.powerdns.com/mailman/listinfo/pdns-users
>>>
>>
>> I'll revisit this.
>>
> 
> I do not know what I was doing when I previously looked at this, but this seem to be the minimal patch for the rel/rec-4.3.x branch. Can you check if it works for you?
> 
> Thanks,
> 
> 	-Otto
> 
>

And now with the corretc version of the diff, sorry.


	-Otto
-------------- next part --------------
diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc
index 013159dd4..26f992fae 100644
--- a/pdns/ws-recursor.cc
+++ b/pdns/ws-recursor.cc
@@ -512,7 +512,7 @@ RecursorWebServer::RecursorWebServer(FDMultiplexer* fdm)
   d_ws->bind();
 
   // legacy dispatch
-  d_ws->registerApiHandler("/jsonstat", boost::bind(&RecursorWebServer::jsonstat, this, _1, _2), true);
+  d_ws->registerApiHandler("/jsonstat", std::bind(&RecursorWebServer::jsonstat, this, std::placeholders::_1, std::placeholders::_2), true);
   d_ws->registerApiHandler("/api/v1/servers/localhost/cache/flush", &apiServerCacheFlush);
   d_ws->registerApiHandler("/api/v1/servers/localhost/config/allow-from", &apiServerConfigAllowFrom);
   d_ws->registerApiHandler("/api/v1/servers/localhost/config", &apiServerConfig);
@@ -747,5 +747,5 @@ void AsyncWebServer::go() {
   auto server = std::dynamic_pointer_cast<AsyncServer>(d_server);
   if (!server)
     return;
-  server->asyncWaitForConnections(d_fdm, boost::bind(&AsyncWebServer::serveConnection, this, _1));
+  server->asyncWaitForConnections(d_fdm, std::bind(&AsyncWebServer::serveConnection, this, std::placeholders::_1));
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20200909/75e28227/attachment-0001.sig>


More information about the Pdns-users mailing list