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

Bug 737120

Summary: dev-libs/dbus-c++-0.9.0-r3 fails to compile: types.h:407:9: error: call to function 'operator<<' that is neither visible in the template definition nor found by argument-dependent lookup
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=740068
https://bugs.gentoo.org/show_bug.cgi?id=892984
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963, 839906, 740068    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2020-08-14 12:10:28 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/dbus-c++-0.9.0-r3 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-08-14 12:10:30 UTC
Created attachment 654610 [details]
build.log

build log and emerge --info
Comment 2 Hector Martin 2020-09-02 12:36:07 UTC
*** Bug 740068 has been marked as a duplicate of this bug. ***
Comment 3 Hector Martin 2020-09-02 13:39:12 UTC
FWIW, I took a look at this, but it's a pile of C++ operator overloads with circular dependencies which GCC seems to be perfectly fine with but clang complains about. I tried adding forward declarations but that didn't work; this is beyond my superficial knowledge of C++.

Upstream seems to be dead, there are forks around but none of them have a fix for this particular issue. Someone with better knowledge of C++ needs to take on this one if this is going to be fixed.
Comment 4 Larry the Git Cow gentoo-dev 2022-06-10 11:02:03 UTC
The bug has been closed via the following commit(s):

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

commit 346dc81bceb275d2d95ba47e86ce5b7db49486e0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-10 10:39:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-10 11:01:57 +0000

    dev-libs/dbus-c++: fix installed headers w/ gcc 12, fix build with clang
    
    Bug: https://bugs.gentoo.org/840731
    Closes: https://bugs.gentoo.org/737120
    Closes: https://bugs.gentoo.org/740068
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/dbus-c++/dbus-c++-0.9.0-r5.ebuild         | 64 ++++++++++++++++
 dev-libs/dbus-c++/files/dbus-c++-0.9.0-gcc12.patch | 89 ++++++++++++++++++++++
 2 files changed, 153 insertions(+)