Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 790719

Summary: net-dns/dnsdist-1.6.0 - lock.hh: error: unique_lock in namespace std does not name a template type
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Andreas Schürch <nativemad>
Status: RESOLVED FIXED    
Severity: normal CC: ionen, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
net-dns:dnsdist-1.6.0:20210517-190835.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-05-17 19:27:37 UTC
                 from dnsdist-tcp-downstream.hh:6,
                 from dnsdist-tcp-downstream.cc:2:
lock.hh:94:8: error: ‘unique_lock’ in namespace ‘std’ does not name a template type
   94 |   std::unique_lock<std::shared_mutex> d_lock;
      |        ^~~~~~~~~~~
lock.hh:24:1: note: ‘std::unique_lock’ is defined in header ‘<mutex>’; did you forget to ‘#include <mutex>’?
   23 | #include <shared_mutex>

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-j2-20210510-162903

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-9.3.1
 [3] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.52.1
  [2]   rust-1.52.1 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  (none found)

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon May 17 18:20:14 UTC 2021

emerge -qpvO net-dns/dnsdist
[ebuild     U ] net-dns/dnsdist-1.6.0 [1.5.1-r100] USE="lmdb ssl -dnscrypt -dnstap -doh -gnutls -regex -remote-logging -snmp -systemd -test" LUA_SINGLE_TARGET="lua5-1 -lua5-2 -lua5-3 -lua5-4 -luajit"
Comment 1 Toralf Förster gentoo-dev 2021-05-17 19:27:38 UTC
Created attachment 709458 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-17 19:27:40 UTC
Created attachment 709461 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-17 19:27:42 UTC
Created attachment 709464 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-17 19:27:43 UTC
Created attachment 709467 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-17 19:27:45 UTC
Created attachment 709470 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-17 19:27:46 UTC
Created attachment 709473 [details]
net-dns:dnsdist-1.6.0:20210517-190835.log
Comment 7 Toralf Förster gentoo-dev 2021-05-17 19:27:47 UTC
Created attachment 709476 [details]
temp.tar.bz2
Comment 8 Ionen Wolkens gentoo-dev 2021-05-17 20:11:07 UTC
Previous 1.5.1-r100 is fine with gcc11, seems this version introduced this.
Comment 9 Holger Hoffstätte 2021-05-25 14:07:41 UTC
Feel free to steal a patch from my overlay:
https://github.com/hhoffstaette/portage/blob/master/net-dns/dnsdist/files/dnsdist-1.6.0-add-missing-include.patch
Comment 10 Larry the Git Cow gentoo-dev 2021-06-15 03:48:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f4c9bd084526bce777418dc7a1d269046413bea

commit 6f4c9bd084526bce777418dc7a1d269046413bea
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-15 03:45:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-15 03:45:51 +0000

    net-dns/dnsdist: fix build with GCC 11, protobuf no longer optional
    
    * Fix build with GCC 11
    * Upstream made protobuf mandatory
    
    Closes: https://bugs.gentoo.org/790719
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/dnsdist/dnsdist-1.6.0.ebuild               |  9 ++++----
 .../dnsdist-1.6.0-gcc11-missing-include.patch      | 24 ++++++++++++++++++++++
 2 files changed, 28 insertions(+), 5 deletions(-)