Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 842984 - media-sound/mumble-1.4.230: fails to compile compile against dev-libs/poco-1.11.2
Summary: media-sound/mumble-1.4.230: fails to compile compile against dev-libs/poco-1....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-05-06 11:49 UTC by Bernd Feige
Modified: 2022-05-11 01:30 UTC (History)
8 users (show)

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


Attachments
Patch to compile against poco-1.11 (have cmake add its XML component) (compile_with_poco_1_11.patch,486 bytes, patch)
2022-05-07 10:16 UTC, Bernd Feige
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Feige 2022-05-06 11:49:42 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/mumble/CMakeFiles/mumble.dir/PluginManifest.cpp.o: in function `PluginManifest::parse_v1_0_0(Poco::AutoPtr<Poco::XML::Document>)':
PluginManifest.cpp:(.text+0x132c): undefined reference to `Poco::XML::Document::documentElement() const'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x1380): undefined reference to `Poco::XML::Element::getChildElement(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x13eb): undefined reference to `Poco::XML::Element::getElementsByTagName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x18b4): undefined reference to `typeinfo for Poco::XML::Element'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x18bb): undefined reference to `typeinfo for Poco::XML::Node'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x191f): undefined reference to `Poco::XML::Element::getAttribute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x19a0): undefined reference to `Poco::XML::Element::getAttribute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x1bc5): undefined reference to `Poco::XML::Document::documentElement() const'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x1bf9): undefined reference to `Poco::XML::Element::getChildElement(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x1c3c): undefined reference to `Poco::XML::Document::documentElement() const'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x1c85): undefined reference to `Poco::XML::Element::getChildElement(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/mumble/CMakeFiles/mumble.dir/PluginManifest.cpp.o: in function `PluginManifest::parse(std::istream&)':
PluginManifest.cpp:(.text+0x22bd): undefined reference to `Poco::XML::InputSource::InputSource(std::istream&)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x22c7): undefined reference to `Poco::XML::DOMParser::DOMParser(Poco::XML::NamePool*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x22d2): undefined reference to `Poco::XML::DOMParser::parse(Poco::XML::InputSource*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x22e6): undefined reference to `Poco::XML::Document::documentElement() const'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x2360): undefined reference to `Poco::XML::Element::hasAttribute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x23d6): undefined reference to `Poco::XML::Element::getAttribute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x2488): undefined reference to `Poco::XML::DOMParser::~DOMParser()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text+0x2490): undefined reference to `Poco::XML::InputSource::~InputSource()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/mumble/CMakeFiles/mumble.dir/PluginManifest.cpp.o: in function `PluginManifest::parse(std::istream&) [clone .cold]':
PluginManifest.cpp:(.text.unlikely+0xa3f): undefined reference to `Poco::XML::DOMParser::~DOMParser()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: PluginManifest.cpp:(.text.unlikely+0xa47): undefined reference to `Poco::XML::InputSource::~InputSource()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/mumble/CMakeFiles/mumble.dir/PluginManifest.cpp.o:(.data.rel.local.DW.ref._ZTIN4Poco3XML17SAXParseExceptionE[DW.ref._ZTIN4Poco3XML17SAXParseExceptionE]+0x0): undefined reference to `typeinfo for Poco::XML::SAXParseException'
collect2: error: ld returned 1 exit status


Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-07 07:29:21 UTC
Please include the full build.log and emerge --info.
Comment 3 Bernd Feige 2022-05-07 10:14:45 UTC
(In reply to Sam James from comment #2)
> Looks like
> https://github.com/mumble-voip/mumble/commit/
> fefdd79ebcd53a3035967789d004938ee39e2030 might fix it?

Dear Sam,

yes, it does!

I attach the patch applying cleanly to media-sound/mumble-1.4.230 in a sec - the commit itself doesn't...
Comment 4 Bernd Feige 2022-05-07 10:16:05 UTC
Created attachment 777263 [details, diff]
Patch to compile against poco-1.11 (have cmake add its XML component)
Comment 5 Philipp Psurek 2022-05-07 13:19:14 UTC
I confirm the bug and the solution.

Please add carlwgeorge's upstream patch or Bernd's patch attached here as mumble-1.4.230-compile_with_poco_1_11.patch to ${FILESDIR} and adjust this line 

--- media-sound/mumble/mumble-1.4.230.ebuild	
+++ media-sound/mumble/mumble-1.4.230.ebuild	
@@ -71,6 +71,7 @@
 
 PATCHES=(
 	"${WORKDIR}/${PN}-1.4-openssl3.patch"
+	"${FILESDIR}/${P}-compile_with_poco_1_11.patch"
 )
 
 src_prepare() {

I confirm the correct compilation of media-sound/mumble-1.4.230 against
  dev-libs/poco-1.10.1
  dev-libs/poco-1.11.2
with this patch.
Comment 6 Larry the Git Cow gentoo-dev 2022-05-11 01:30:11 UTC
The bug has been closed via the following commit(s):

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

commit fa650a14a85055ca24681cc7eae1a2cdf76e7456
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-11 01:29:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-11 01:29:54 +0000

    media-sound/mumble: backport upstream fixes for new Poco, GCC 12
    
    Closes: https://bugs.gentoo.org/842984
    Signed-off-by: Sam James <sam@gentoo.org>

 .../mumble-1.4.230-gcc12-include-memory.patch      | 28 ++++++++++++++++++++++
 .../files/mumble-1.4.230-poco-link-cmake.patch     | 24 +++++++++++++++++++
 media-sound/mumble/mumble-1.4.230.ebuild           |  2 ++
 3 files changed, 54 insertions(+)