Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946371 - net-wireless/uhd-4.6.0.0 - [texlive] async_writer.h: error: io_service in namespace boost::asio does not name a type
Summary: net-wireless/uhd-4.6.0.0 - [texlive] async_writer.h: error: io_service in nam...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: boost-1.87
  Show dependency tree
 
Reported: 2024-12-13 15:00 UTC by Toralf Förster
Modified: 2025-02-24 12:30 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.31 KB, text/plain)
2024-12-13 15:00 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,66.12 KB, application/x-xz)
2024-12-13 15:00 UTC, Toralf Förster
Details
environment (environment,150.70 KB, text/plain)
2024-12-13 15:00 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.15 KB, application/x-xz)
2024-12-13 15:00 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,38.20 KB, application/x-xz)
2024-12-13 15:00 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,104.41 KB, application/x-xz)
2024-12-13 15:00 UTC, Toralf Förster
Details
net-wireless:uhd-4.6.0.0:20241213-113815.log (net-wireless:uhd-4.6.0.0:20241213-113815.log,105.14 KB, text/plain)
2024-12-13 15:00 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,71.78 KB, application/x-xz)
2024-12-13 15:00 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-12-13 15:00:03 UTC
In file included from /var/tmp/portage/net-wireless/uhd-4.6.0.0/work/uhd-4.6.0.0/host/lib/deps/rpclib/include/rpc/detail/server_session.h:14,
                 from /var/tmp/portage/net-wireless/uhd-4.6.0.0/work/uhd-4.6.0.0/host/lib/deps/rpclib/lib/rpc/server.cc:14:
/var/tmp/portage/net-wireless/uhd-4.6.0.0/work/uhd-4.6.0.0/host/lib/deps/rpclib/include/rpc/detail/async_writer.h:22:41: error: expected ) before * token
   22 |     async_writer(boost::asio::io_service *io,
      |                 ~                       ^~
      |                                         )
/var/tmp/portage/net-wireless/uhd-4.6.0.0/work/uhd-4.6.0.0/host/lib/deps/rpclib/include/rpc/detail/async_writer.h:72:18: error: io_service in namespace boost::asio does not name a type; did you mean use_service?
   72 |     boost::asio::io_service::strand write_strand_;
      |                  ^~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_hardened_systemd-20241206-162502

  UNMASKED:
  >=app-text/dvisvgm-2024
  >=app-text/ps2pkm-1.8_p20240311
  >=app-text/texlive-2024
  >=app-text/texlive-core-2024
  >=dev-libs/kpathsea-6.4.0
  >=dev-libs/ptexenc-1.4.6
  dev-python/latexrestricted
  >=dev-tex/biber-2.20
  >=dev-tex/biblatex-3.20
  >=dev-tex/bibtexu-3.72_p20240311
  >=dev-tex/glossaries-4.55
  dev-tex/latex2pydata
  >=dev-tex/latexmk-4.85
  >=dev-tex/minted-3.4.0
  >=dev-tex/tex4ht-20240311
  >=dev-texlive/texlive-basic-2024
  >=dev-texlive/texlive-bibtexextra-2024
  >=dev-texlive/texlive-binextra-2024
  >=dev-texlive/texlive-context-2024
  >=dev-texlive/texlive-fontsextra-2024
  >=dev-texlive/texlive-fontsrecommended-2024
  >=dev-texlive/texlive-fontutils-2024
  >=dev-texlive/texlive-formatsextra-2024
  >=dev-texlive/texlive-games-2024
  >=dev-texlive/texlive-humanities-2024
  >=dev-texlive/texlive-langarabic-2024
  >=dev-texlive/texlive-langchinese-2024
  >=dev-texlive/texlive-langcjk-2024
  >=dev-texlive/texlive-langcyrillic-2024
  >=dev-texlive/texlive-langczechslovak-2024
  >=dev-texlive/texlive-langenglish-2024
  >=dev-texlive/texlive-langeuropean-2024
  >=dev-texlive/texlive-langfrench-2024
  >=dev-texlive/texlive-langgerman-2024
  >=dev-texlive/texlive-langgreek-2024
  >=dev-texlive/texlive-langitalian-2024
  >=dev-texlive/texlive-langjapanese-2024
  >=dev-texlive/texlive-langkorean-2024
  >=dev-texlive/texlive-langother-2024
  >=dev-texlive/texlive-langpolish-2024
  >=dev-texlive/texlive-langportuguese-2024
  >=dev-texlive/texlive-langspanish-2024
  >=dev-texlive/texlive-latex-2024
  >=dev-texlive/texlive-latexextra-2024
  >=dev-texlive/texlive-latexrecommended-2024
  >=dev-texlive/texlive-luatex-2024
  >=dev-texlive/texlive-mathscience-2024
  >=dev-texlive/texlive-metapost-2024
  >=dev-texlive/texlive-music-2024
  >=dev-texlive/texlive-pictures-2024
  >=dev-texlive/texlive-plaingeneric-2024
  >=dev-texlive/texlive-pstricks-2024
  >=dev-texlive/texlive-publishers-2024
  >=dev-texlive/texlive-xetex-2024

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang version 19.1.5
llvm-config: 19.1.5
Python 3.12.8
go version go1.23.4 linux/amd64
  [1]   php8.2 *
  [2]   php8.3
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.83.0
  [3]   rust-1.83.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 90a2664d67433d1ff3e7394ef533020ae920e8ae
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 13 10:33:34 2024 +0000

    2024-12-13 10:33:33 UTC

emerge -qpvO =net-wireless/uhd-4.6.0.0
Comment 1 Toralf Förster gentoo-dev 2024-12-13 15:00:04 UTC
Created attachment 913925 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-12-13 15:00:06 UTC
Created attachment 913926 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-12-13 15:00:08 UTC
Created attachment 913927 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-12-13 15:00:09 UTC
Created attachment 913928 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-12-13 15:00:10 UTC
Created attachment 913929 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-12-13 15:00:11 UTC
Created attachment 913930 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-12-13 15:00:12 UTC
Created attachment 913931 [details]
net-wireless:uhd-4.6.0.0:20241213-113815.log
Comment 8 Toralf Förster gentoo-dev 2024-12-13 15:00:14 UTC
Created attachment 913932 [details]
qlist-info.txt.xz
Comment 9 he.ousia 2024-12-13 17:17:01 UTC
The same problem when building sci-libs/flann-1.9.1-r6:

/var/tmp/portage/sci-libs/flann-1.9.1-r6/work/flann-1.9.1/src/cpp/flann/mpi/server.h: In member function 'void flann::mpi::Server<Distance>::run()':
/var/tmp/portage/sci-libs/flann-1.9.1-r6/work/flann-1.9.1/src/cpp/flann/mpi/server.h:122:48: error: 'io_service' is not a member of 'boost::asio'; did you mean 'use_service'?
  122 |                 boost::shared_ptr<boost::asio::io_service> io_service;
      |                                                ^~~~~~~~~~
      |                                                use_service
/var/tmp/portage/sci-libs/flann-1.9.1-r6/work/flann-1.9.1/src/cpp/flann/mpi/server.h:122:48: error: 'io_service' is not a member of 'boost::asio'; did you mean 'use_service'?
  122 |                 boost::shared_ptr<boost::asio::io_service> io_service;
      |                                                ^~~~~~~~~~
      |                                                use_service
/var/tmp/portage/sci-libs/flann-1.9.1-r6/work/flann-1.9.1/src/cpp/flann/mpi/server.h:122:58: error: template argument 1 is invalid
  122 |                 boost::shared_ptr<boost::asio::io_service> io_service;
      |                                                          ^
/var/tmp/portage/sci-libs/flann-1.9.1-r6/work/flann-1.9.1/src/cpp/flann/mpi/server.h:126:36: error: request for member 'reset' in 'io_service', which is of non-class type 'int'
  126 |                         io_service.reset(new boost::asio::io_service());
      |                                    ^~~~~
/var/tmp/portage/sci-libs/flann-1.9.1-r6/work/flann-1.9.1/src/cpp/flann/mpi/server.h:126:46: error: expected type-specifier
  126 |                         io_service.reset(new boost::asio::io_service());
      |                                              ^~~~~
/var/tmp/portage/sci-libs/flann-1.9.1-r6/work/flann-1.9.1/src/cpp/flann/mpi/server.h:127:58: error: invalid type argument of unary '*' (have 'int')
  127 |                         acceptor.reset(new tcp::acceptor(*io_service, tcp::endpoint(tcp::v4(), port_)));
      |                                                          ^~~~~~~~~~~
/var/tmp/portage/sci-libs/flann-1.9.1-r6/work/flann-1.9.1/src/cpp/flann/mpi/server.h:133:60: error: invalid type argument of unary '*' (have 'int')
  133 |                                 sock.reset(new tcp::socket(*io_service));
      |                                                            ^~~~~~~~~~~
Comment 10 he.ousia 2024-12-13 17:18:47 UTC
The new dev-libs/boost-1.87.0 causes this.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-14 11:32:25 UTC
(In reply to he.ousia from comment #9)
> The same problem when building sci-libs/flann-1.9.1-r6:

Please file a new bug for that.
Comment 13 Thomas Beierlein gentoo-dev 2025-02-24 12:15:25 UTC
Patch Nr 1 from #c12 needs some modification as client::post() methods in lib/deps/rpclib/lib/rpc/client.cc got changed in commit https://github.com/EttusResearch/uhd/commit/2dc7b3e572830c71d49ee0648eef445e7f3abfd6 before from capture default [=] to explicit capture.
Comment 14 Larry the Git Cow gentoo-dev 2025-02-24 12:30:23 UTC
The bug has been closed via the following commit(s):

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

commit a35c334b32d137eb19a6581724815d24eeffb9ac
Author:     Thomas Beierlein <tomjbe@gentoo.org>
AuthorDate: 2025-02-24 12:28:48 +0000
Commit:     Thomas Beierlein <tomjbe@gentoo.org>
CommitDate: 2025-02-24 12:29:53 +0000

    net-wireless/uhd: Fix build with boost-1.87.0
    
    Closes: https://bugs.gentoo.org/946371
    Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>

 .../uhd/files/uhd-4.6.0.0-boost-1.87-1.patch       | 938 +++++++++++++++++++++
 .../uhd/files/uhd-4.6.0.0-boost-1.87-2.patch       |  27 +
 net-wireless/uhd/uhd-4.6.0.0.ebuild                |   4 +-
 3 files changed, 968 insertions(+), 1 deletion(-)