https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: net-misc/dleyna-server-0.7.0 fails to compile. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html If you think this is a GCC-11 related issue, please block bug 732706.
Created attachment 711264 [details] build.log build log and emerge --info
Possible context of error(s): /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: device.c:(.text+0x379d): undefined reference to `xmlDocGetRootElement' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: device.c:(.text+0x39ce): undefined reference to `xmlFreeDoc' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: device.c:(.text+0x3b4a): undefined reference to `xmlFreeDoc' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: device.c:(.text+0x3b57): undefined reference to `xmlFreeDoc' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: xml-util.c:(.text+0x15c): undefined reference to `xmlFree' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: xml-util.c:(.text+0x29c): undefined reference to `xmlFree' device.c:(.text+0x378d): undefined reference to `xmlParseMemory' xml-util.c:(.text+0x134): undefined reference to `xmlNodeGetContent' xml-util.c:(.text+0x27f): undefined reference to `xmlNodeGetContent' collect2: error: ld returned 1 exit status
Here too! Same issue either enabling or disabling LTO. Iade Gesso, MSc, PhD
Created attachment 712260 [details] build-libxml2.patch Attached patch fixes this issue for me.
(In reply to Alexander Tsoy from comment #4) > Created attachment 712260 [details] > build-libxml2.patch > > Attached patch fixes this issue for me. Can you send this upstream too please?
Sure https://github.com/phako/dleyna-server/pull/2
(In reply to Alexander Tsoy from comment #6) > Sure > https://github.com/phako/dleyna-server/pull/2 Thanks!
My PR was merged upstream. We also need more fixes from git master. At least this: https://github.com/phako/dleyna-server/commit/d0fce578cf0e03f9a81fca9bfbbd6681b29008b9 $ ldd /usr/libexec/dleyna-server-service | grep found libdleyna-server-1.0.so.1 => not found
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=857af3cdc7fda93a823cbecd17085d4801c3a134 commit 857af3cdc7fda93a823cbecd17085d4801c3a134 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2021-06-04 03:21:36 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2021-06-04 03:21:49 +0000 net-misc/dleyna-server: Add patches from upstream Closes: https://bugs.gentoo.org/792177 Signed-off-by: Matt Turner <mattst88@gentoo.org> net-misc/dleyna-server/Manifest | 1 + .../dleyna-server/dleyna-server-0.7.0-r1.ebuild | 31 ++++++++++++++++++++++ 2 files changed, 32 insertions(+)