Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937628 - net-dns/dnsdist-1.9.6 - [ncurses-6.5] [icu-75.1] [gcc-15] ext/.../json11.cpp: error: uint8_t does not name a type
Summary: net-dns/dnsdist-1.9.6 - [ncurses-6.5] [icu-75.1] [gcc-15] ext/.../json11.cpp:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Holger Hoffstätte
URL:
Whiteboard:
Keywords: PATCH, PullRequest, UPSTREAM
Depends on: gcc-15
Blocks:
  Show dependency tree
 
Reported: 2024-08-09 15:39 UTC by Toralf Förster
Modified: 2024-09-08 08:53 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.48 KB, text/plain)
2024-08-09 15:39 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,140.04 KB, text/plain)
2024-08-09 15:39 UTC, Toralf Förster
Details
environment (environment,94.96 KB, text/plain)
2024-08-09 15:39 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-08-09 15:39 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,39.25 KB, application/x-xz)
2024-08-09 15:39 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,18.51 KB, application/x-xz)
2024-08-09 15:39 UTC, Toralf Förster
Details
net-dns:dnsdist-1.9.6:20240809-083415.log (net-dns:dnsdist-1.9.6:20240809-083415.log,95.21 KB, text/plain)
2024-08-09 15:39 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,40.74 KB, application/x-xz)
2024-08-09 15:39 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,21.81 KB, application/x-xz)
2024-08-09 15:39 UTC, Toralf Förster
Details
Patch for json11 (1.9.6-json11-gcc15.patch,588 bytes, patch)
2024-08-09 16:10 UTC, Holger Hoffstätte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-08-09 15:39:05 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I.  -I. -I. -pthread   -I/usr/include/lua5.1 -I/usr/include/editline   -I./ext/yahttp    -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -pthread -DNOMINMAX -std=c++17          -D_FILE_OFFSET_BITS=64 -D_
x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I.  -I. -I. -pthread   -I/usr/include/lua5.1 -I/usr/include/editline   -I./ext/yahttp    -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -pthread -DNOMINMAX -std=c++17          -D_FILE_OFFSET_BITS=64 -D_
x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I.  -I. -I. -pthread   -I/usr/include/lua5.1 -I/usr/include/editline   -I./ext/yahttp    -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -pthread -DNOMINMAX -std=c++17          -D_FILE_OFFSET_BITS=64 -D_
x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I.  -I. -I. -pthread   -I/usr/include/lua5.1 -I/usr/include/editline   -I./ext/yahttp    -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -pthread -DNOMINMAX -std=c++17          -D_FILE_OFFSET_BITS=64 -D_
x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I.  -I. -I. -pthread   -I/usr/include/lua5.1 -I/usr/include/editline   -I./ext/yahttp    -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -pthread -DNOMINMAX -std=c++17          -D_FILE_OFFSET_BITS=64 -D_
ext/json11/json11.cpp: In function void json11::dump(const std::string&, std::string&):
ext/json11/json11.cpp:96:32: error: uint8_t does not name a type
   96 |         } else if (static_cast<uint8_t>(ch) <= 0x1f) {
      |                                ^~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma-20240806-191039

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  <sys-devel/gcc-15.0.9999:15
    Requested by sam
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1
    Requested by sam
  >=sys-libs/ncurses-6.5

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.5
Available Rust versions:
  [1]   rust-bin-1.79.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.6 linux/amd64

  HEAD of ::gentoo
commit ad57b06c4beb84f5999a1822660d2abd6bce0b4f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Aug 9 07:19:19 2024 +0000

    2024-08-09 07:19:18 UTC

emerge -qpvO =net-dns/dnsdist-1.9.6
[ebuild  N    ] net-dns/dnsdist-1.9.6  USE="regex snmp ssl xdp -bpf -cdb -dnscrypt -dnstap -doh -doh3 -ipcipher -lmdb -quic -systemd -test -web" LUA_SINGLE_TARGET="lua5-1 -lua5-3 -lua5-4 -luajit"
Comment 1 Toralf Förster gentoo-dev 2024-08-09 15:39:06 UTC
Created attachment 899690 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-09 15:39:08 UTC
Created attachment 899691 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-08-09 15:39:09 UTC
Created attachment 899692 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-08-09 15:39:10 UTC
Created attachment 899693 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-08-09 15:39:11 UTC
Created attachment 899694 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-09 15:39:12 UTC
Created attachment 899695 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-08-09 15:39:13 UTC
Created attachment 899696 [details]
net-dns:dnsdist-1.9.6:20240809-083415.log
Comment 8 Toralf Förster gentoo-dev 2024-08-09 15:39:14 UTC
Created attachment 899697 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-08-09 15:39:15 UTC
Created attachment 899698 [details]
temp.tar.xz
Comment 11 Holger Hoffstätte 2024-08-09 15:48:22 UTC
Normally I would suggest to depend on unbundled dev-cpp/json11 but that would require quite severe surgery to the build system. :(
Comment 12 Holger Hoffstätte 2024-08-09 16:00:49 UTC
Reported upstream: https://github.com/PowerDNS/pdns/issues/14549
Comment 13 Holger Hoffstätte 2024-08-09 16:10:14 UTC
Created attachment 899707 [details, diff]
Patch for json11

Easy peasy:

diff --git a/net-dns/dnsdist/dnsdist-1.9.6.ebuild b/net-dns/dnsdist/dnsdist-1.9.6.ebuild
index 201ef98..e076c3b 100644
--- a/net-dns/dnsdist/dnsdist-1.9.6.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.9.6.ebuild
@@ -48,6 +48,8 @@ RDEPEND="acct-group/dnsdist
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
+PATCHES=( "${FILESDIR}/1.9.6-json11-gcc15.patch" )
+
 src_prepare() {
    default
Comment 14 Holger Hoffstätte 2024-08-28 17:45:04 UTC
Depends on: https://bugs.gentoo.org/932474
Comment 15 Holger Hoffstätte 2024-08-31 16:45:07 UTC
Fixed upstream in https://github.com/PowerDNS/pdns/commit/8d6d32bef74aa2cba41421645936fade35c71c72
Comment 16 Larry the Git Cow gentoo-dev 2024-09-08 08:53:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73369745e0a35f1b78af0e13c8db78866fae3eca

commit 73369745e0a35f1b78af0e13c8db78866fae3eca
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2024-09-08 07:36:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-09-08 08:52:42 +0000

    net-dns/dnsdist: build fixes for gcc-15 & boost-1.86.0
    
    Also reported & fixed upstream.
    
    Closes: https://bugs.gentoo.org/937628
    Closes: https://bugs.gentoo.org/938947
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/dnsdist/dnsdist-1.9.6-r1.ebuild        | 117 +++++++++++++++++++++++++
 net-dns/dnsdist/files/1.9.6-boost-1.86.0.patch |  35 ++++++++
 net-dns/dnsdist/files/1.9.6-json11-gcc15.patch |  19 ++++
 3 files changed, 171 insertions(+)