Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792177 - net-misc/dleyna-server-0.7.0 fails to compile (device.c:(.text+0x378d): undefined reference to `xmlParseMemory')
Summary: net-misc/dleyna-server-0.7.0 fails to compile (device.c:(.text+0x378d): undef...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://github.com/phako/dleyna-serve...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-05-26 06:44 UTC by Agostino Sarubbo
Modified: 2021-06-04 03:22 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,99.88 KB, text/plain)
2021-05-26 06:44 UTC, Agostino Sarubbo
Details
build-libxml2.patch (build-libxml2.patch,1.04 KB, text/plain)
2021-05-29 17:00 UTC, Alexander Tsoy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-05-26 06:44:41 UTC
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.
Comment 1 Agostino Sarubbo gentoo-dev 2021-05-26 06:44:44 UTC
Created attachment 711264 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-05-26 06:44:45 UTC
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
Comment 3 Iade Gesso 2021-05-29 13:21:20 UTC
Here too!

Same issue either enabling or disabling LTO.



Iade Gesso, MSc, PhD
Comment 4 Alexander Tsoy 2021-05-29 17:00:47 UTC
Created attachment 712260 [details]
build-libxml2.patch

Attached patch fixes this issue for me.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-29 17:21:49 UTC
(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?
Comment 6 Alexander Tsoy 2021-05-31 22:06:28 UTC
Sure
https://github.com/phako/dleyna-server/pull/2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-31 22:14:07 UTC
(In reply to Alexander Tsoy from comment #6)
> Sure
> https://github.com/phako/dleyna-server/pull/2

Thanks!
Comment 8 Alexander Tsoy 2021-06-02 20:58:16 UTC
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
Comment 9 Larry the Git Cow gentoo-dev 2021-06-04 03:22:20 UTC
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(+)