Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907499 - dev-libs/sink-0.8.0-r3 /usr/include/flatbuffers/flatbuffer_builder.h:1414:7: error: conflicting declaration ‘using flatbuffers::FlatBufferBuilder = class flatbuffers::FlatBufferBuilderImpl<false>’
Summary: dev-libs/sink-0.8.0-r3 /usr/include/flatbuffers/flatbuffer_builder.h:1414:7: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-31 20:13 UTC by Joe Harvell
Modified: 2023-10-11 19:07 UTC (History)
1 user (show)

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


Attachments
emerge --info (einfo.txt,7.63 KB, text/plain)
2023-05-31 20:13 UTC, Joe Harvell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Harvell 2023-05-31 20:13:17 UTC
Compile error with non-template forward declaration of class template.

Reproducible: Always

Steps to Reproduce:
sudo emerge -1v dev-libs/sink
Actual Results:  
[52/154] /usr/bin/x86_64-pc-linux-gnu-g++ -DKCalCore=KCalendarCore -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -Dsink_EXPORTS -I/var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0_build/common -I/var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0_build/common/sink_autogen/include -I/var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0_build -I/var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0 -I/var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0/3rdparty -isystem /var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0/common -isystem /var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0/common/domain -isystem /usr/include/KAsync -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtGui -isystem /usr/include/KPim5/KMime -isystem /usr/include/KF5/KContacts -isystem /usr/include/KF5 -isystem /usr/include/KF5/KCalendarCore  -O3 -DNDEBUG -pipe -march=native -ggdb -flto=26 -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -std=gnu++17 -fPIC -fvisibility=default -fPIC -MD -MT common/CMakeFiles/sink.dir/store.cpp.o -MF common/CMakeFiles/sink.dir/store.cpp.o.d -o common/CMakeFiles/sink.dir/store.cpp.o -c /var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0/common/store.cpp
FAILED: common/CMakeFiles/sink.dir/store.cpp.o 
In file included from /var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0/common/resourcecontext.h:22,
                 from /var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0/common/facadefactory.h:32,
                 from /var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0/common/store.cpp:33:
/var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0/common/domaintypeadaptorfactoryinterface.h:34:7: error: using typedef-name ‘using flatbuffers::FlatBufferBuilder = class flatbuffers::FlatBufferBuilderImpl<false>’ after ‘class’
   34 | class FlatBufferBuilder;
      |       ^~~~~~~~~~~~~~~~~
In file included from /usr/include/flatbuffers/flatbuffers.h:29,
                 from /var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0/common/resourceaccess.h:30,
                 from /var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0/common/store.cpp:28:
/usr/include/flatbuffers/flatbuffer_builder.h:1414:7: note: ‘using flatbuffers::FlatBufferBuilder = class flatbuffers::FlatBufferBuilderImpl<false>’ has a previous declaration here
 1414 | using FlatBufferBuilder = FlatBufferBuilderImpl<false>;
      |       ^~~~~~~~~~~~~~~~~


Expected Results:  
successful compile
Comment 1 Joe Harvell 2023-05-31 20:13:52 UTC
Created attachment 862981 [details]
emerge --info
Comment 2 David Zaslavsky 2023-06-03 08:31:50 UTC
Same error here. My build log is too large to attach, but I can compress it or something and post it if necessary.

I've successfully installed =dev-libs/sink-0.8.0-r3 before, so the problem isn't inherent to this version of sink. Based on my emerge history, it looks like this started happening when I upgraded dev-libs/flatbuffers from 23.3.3 to 23.5.26. Specifically I suspect it was triggered by one of these commits in flatbuffers: https://github.com/google/flatbuffers/commit/63b7b25289447313ab6e79191fa1733748dca0da or https://github.com/google/flatbuffers/commit/d64dc6200a959738b5e3260d74b8e736e81a5af4, both of which landed in 23.5.26. So I suspect the actual underlying bug needs to be (reported and) fixed upstream in sink, and on the Gentoo side it'd be enough to change dev-libs/sink-0.8.0-r3 to require <dev-libs/flatbuffers-23.5.26.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-04 05:05:58 UTC
Unfortunately, sink has no activity upstream.
Comment 4 Vedran Vrbanc 2023-06-28 08:30:47 UTC
Same issue in media-tv/kodi-19.5-r1

This became a problem after upgrading to dev-libs/flatbuffers-23.5.26

I fixed it by downgrading flatbuffers to 23.3.3

Ebuild for flatbuffers-23.3.3 is no longer in portage tree, you'll need to dig it out of git.
Comment 5 Larry the Git Cow gentoo-dev 2023-10-11 19:07:24 UTC
The bug has been closed via the following commit(s):

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

commit 601e9b1b4c436c61e9c3a91215274c8782fb2d11
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2023-10-11 19:06:47 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2023-10-11 19:07:01 +0000

    dev-libs/sink & co: treeclean
    
    Closes: https://bugs.gentoo.org/907499
    Closes: https://bugs.gentoo.org/904876
    Closes: https://bugs.gentoo.org/872062
    Closes: https://bugs.gentoo.org/856094
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 dev-libs/kasync/Manifest                           |  1 -
 dev-libs/kasync/kasync-0.3.0.ebuild                | 18 -------
 dev-libs/kasync/metadata.xml                       | 11 ----
 dev-libs/sink/Manifest                             |  1 -
 dev-libs/sink/files/sink-0.8.0-musl-execinfo.patch | 48 -----------------
 dev-libs/sink/metadata.xml                         |  8 ---
 dev-libs/sink/sink-0.8.0-r3.ebuild                 | 58 --------------------
 mail-client/kube/Manifest                          |  1 -
 .../kube/files/kube-0.7.0-appdata-location.patch   | 23 --------
 .../kube/files/kube-0.7.0-require-cxx14.patch      | 37 -------------
 .../kube/files/kube-0.7.0-tests-optional.patch     | 62 ---------------------
 mail-client/kube/kube-0.7.0-r1.ebuild              | 63 ----------------------
 mail-client/kube/metadata.xml                      |  8 ---
 net-libs/kdav2/Manifest                            |  1 -
 net-libs/kdav2/kdav2-0.3.0.ebuild                  | 38 -------------
 net-libs/kdav2/metadata.xml                        |  8 ---
 net-libs/kimap2/Manifest                           |  1 -
 net-libs/kimap2/kimap2-0.3.0.ebuild                | 27 ----------
 net-libs/kimap2/metadata.xml                       |  8 ---
 profiles/package.mask                              | 10 ----
 20 files changed, 432 deletions(-)