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

2020-09-09 Thread Michael Ströder via Pdns-users
On 9/9/20 11:48 AM, Otto Moerbeek via Pdns-users wrote:
> On 2020-09-09 11:39, Otto Moerbeek via Pdns-users wrote:
>> 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?>
> And now with the corretc version of the diff, sorry.

Another package maintainer already applied a back-port patch and it
seems to build:

https://build.opensuse.org/package/show/server:dns/pdns-recursor

Could you please check whether that's the correct one?

It's tracked downstream here:

https://bugzilla.opensuse.org/show_bug.cgi?id=1176312

Ciao, Michael.
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


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

2020-09-09 Thread Otto Moerbeek via Pdns-users


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@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
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(::jsonstat, this, _1, _2), true);
+  d_ws->registerApiHandler("/jsonstat", 
std::bind(::jsonstat, this, std::placeholders::_1, 
std::placeholders::_2), true);
   d_ws->registerApiHandler("/api/v1/servers/localhost/cache/flush", 
);
   d_ws->registerApiHandler("/api/v1/servers/localhost/config/allow-from", 
);
   d_ws->registerApiHandler("/api/v1/servers/localhost/config", 
);
@@ -747,5 +747,5 @@ void AsyncWebServer::go() {
   auto server = std::dynamic_pointer_cast(d_server);
   if (!server)
 return;
-  server->asyncWaitForConnections(d_fdm, 
boost::bind(::serveConnection, this, _1));
+  server->asyncWaitForConnections(d_fdm, 
std::bind(::serveConnection, this, std::placeholders::_1));
 }


signature.asc
Description: OpenPGP digital signature
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


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

2020-09-09 Thread Otto Moerbeek via Pdns-users


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@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

diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc
index 013159dd4..a653cbe31 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(::jsonstat, this, _1, _2), true);
+  d_ws->registerApiHandler("/jsonstat", 
std::bind(::jsonstat, this, std::placeholders::_1, 
std::placeholders::_2), true);
   d_ws->registerApiHandler("/api/v1/servers/localhost/cache/flush", 
);
   d_ws->registerApiHandler("/api/v1/servers/localhost/config/allow-from", 
);
   d_ws->registerApiHandler("/api/v1/servers/localhost/config", 
);


signature.asc
Description: OpenPGP digital signature
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


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

2020-09-09 Thread Otto Moerbeek via Pdns-users


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@mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users
> 

I'll revisit this.

 -Otto

-- 
kind regards,
Otto Moerbeek
Senior PowerDNS Developer

Email: otto.moerb...@open-xchange.com



signature.asc
Description: OpenPGP digital signature
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


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

2020-09-09 Thread Michael Ströder via Pdns-users
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@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


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

2020-09-08 Thread Remi Gacogne via Pdns-users
Hi Michael,

On 9/8/20 11:39 AM, Michael Ströder via Pdns-users wrote:

> Currently building PowerDNS Recursor fails building on openSUSE
> Tumbleweed/Factory:
> 
> https://build.opensuse.org/package/live_build_log/home:stroeder:branches:server:dns/pdns-recursor/openSUSE_Tumbleweed/x86_64
> 
> Note that openSUSE Tumbleweed/Factory uses
> 
> gcc version 10.2.1 20200825 [revision
> c0746a1beb1ba073c7981eb09f55b3d993b32e5c] (SUSE Linux)
> 
> As you can see it builds on openSUSE Leap:
> 
> https://build.opensuse.org/package/show/home:stroeder:branches:server:dns/pdns-recursor
> 
> Is this an issue with newer gcc?

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

Best regards,
-- 
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/



signature.asc
Description: OpenPGP digital signature
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users