Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828605 - app-emulation/libvirt-7.7.0 undefined reference to wmem_alloc
Summary: app-emulation/libvirt-7.7.0 undefined reference to wmem_alloc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-09 11:24 UTC by Michael Moon
Modified: 2021-12-11 01:20 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge-info.txt,8.42 KB, text/plain)
2021-12-09 11:25 UTC, Michael Moon
Details
build.log (app-emulation_libvirt-7.7.0_build.log.gz,53.54 KB, application/gzip)
2021-12-09 11:26 UTC, Michael Moon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Moon 2021-12-09 11:24:59 UTC
[777/1291] x86_64-pc-linux-gnu-gcc  -o tools/wireshark/src/libvirt.so tools/wireshark/src/libvirt.so.p/packet-libvirt.c.o tools/wireshark/src/libvirt.so.p/plugin.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libvirt
.so -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed /usr/lib64/libwireshark.so -Wl,--export-dynamic /usr/lib64/libgmodule-2.0.so /usr/lib64/libglib-2.0.so /usr/lib64/libgthread-2.0.so -pthread /usr/lib64/libtirpc.so -Wl,-z,relro -Wl,-z,now -Wl,--no-cop
y-dt-needed-entries -Wl,-z,defs /usr/lib64/libxml2.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgio-2.0.so -Wl,--end-group
FAILED: tools/wireshark/src/libvirt.so
x86_64-pc-linux-gnu-gcc  -o tools/wireshark/src/libvirt.so tools/wireshark/src/libvirt.so.p/packet-libvirt.c.o tools/wireshark/src/libvirt.so.p/plugin.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libvirt.so -O2 -pi
pe -march=native -Wl,-O1 -Wl,--as-needed /usr/lib64/libwireshark.so -Wl,--export-dynamic /usr/lib64/libgmodule-2.0.so /usr/lib64/libglib-2.0.so /usr/lib64/libgthread-2.0.so -pthread /usr/lib64/libtirpc.so -Wl,-z,relro -Wl,-z,now -Wl,--no-copy-dt-needed
-entries -Wl,-z,defs /usr/lib64/libxml2.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgio-2.0.so -Wl,--end-group
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: tools/wireshark/src/libvirt.so.p/packet-libvirt.c.o: in function `dissect_xdr_bytes':
packet-libvirt.c:(.text+0x93c1): undefined reference to `wmem_alloc'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: tools/wireshark/src/libvirt.so.p/packet-libvirt.c.o: in function `dissect_xdr_opaque.constprop.0':
packet-libvirt.c:(.text+0x1a234): undefined reference to `wmem_alloc'
collect2: error: ld returned 1 exit status
Comment 1 Michael Moon 2021-12-09 11:25:25 UTC
Created attachment 757797 [details]
emerge --info
Comment 2 Michael Moon 2021-12-09 11:26:21 UTC
Created attachment 757798 [details]
build.log

Had to compress build log, apparently bugzilla won't let me attach it uncompressed
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-09 19:55:09 UTC
If you're using ~arch Wireshark, need ~arch libvirt atm.
Comment 4 Larry the Git Cow gentoo-dev 2021-12-10 00:20:45 UTC
The bug has been closed via the following commit(s):

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

commit 5789a5c8578cb615e23cb61b8253cbc4e22fb30e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-10 00:20:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-10 00:20:33 +0000

    app-emulation/libvirt: needs older Wireshark
    
    Fixed in 7.9.0+.
    
    Closes: https://bugs.gentoo.org/828605
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libvirt/{libvirt-7.0.0-r3.ebuild => libvirt-7.0.0-r4.ebuild}        | 2 +-
 .../libvirt/{libvirt-7.1.0-r1.ebuild => libvirt-7.1.0-r2.ebuild}        | 2 +-
 .../libvirt/{libvirt-7.2.0-r1.ebuild => libvirt-7.2.0-r2.ebuild}        | 2 +-
 app-emulation/libvirt/{libvirt-7.3.0.ebuild => libvirt-7.3.0-r1.ebuild} | 2 +-
 app-emulation/libvirt/{libvirt-7.4.0.ebuild => libvirt-7.4.0-r1.ebuild} | 2 +-
 app-emulation/libvirt/{libvirt-7.5.0.ebuild => libvirt-7.5.0-r1.ebuild} | 2 +-
 app-emulation/libvirt/{libvirt-7.7.0.ebuild => libvirt-7.7.0-r1.ebuild} | 2 +-
 app-emulation/libvirt/{libvirt-7.8.0.ebuild => libvirt-7.8.0-r1.ebuild} | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)
Comment 5 Michael Moon 2021-12-10 07:00:51 UTC
Thanks for the quick fix!

I love that Gentoo lets me mix-n-match stable and unstable packages, that's one of its best features in my book - and I expect doing so will occasionally turn up a combo that the systemwide ~arch folk may have missed :)
Comment 6 Michal Privoznik 2021-12-10 15:37:04 UTC
Hey Sam, the patch I've merged to fix build with newer wireshark was merged in libvirt-7.10.0, therefore I think =app-emulation/libvirt-7.9.0 could use the same treatment as ebuilds from comment 4.
Comment 7 Larry the Git Cow gentoo-dev 2021-12-11 01:20:09 UTC
The bug has been referenced in the following commit(s):

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

commit c582d4bdac3f20328d8897dbade0d5ab4b9776dd
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-11 01:19:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-11 01:19:57 +0000

    app-emulation/libvirt: needs older Wireshark
    
    Actually fixed in 7.10.0!
    
    Fixes: 5789a5c8578cb615e23cb61b8253cbc4e22fb30e
    
    Bug: https://bugs.gentoo.org/828605
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libvirt/{libvirt-7.9.0-r1.ebuild => libvirt-7.9.0-r2.ebuild}        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-11 01:20:49 UTC
(In reply to Michael Moon from comment #5)
> Thanks for the quick fix!
> 
> I love that Gentoo lets me mix-n-match stable and unstable packages, that's
> one of its best features in my book - and I expect doing so will
> occasionally turn up a combo that the systemwide ~arch folk may have missed
> :)

No problem & thank you!

(In reply to Michal Privoznik from comment #6)
> Hey Sam, the patch I've merged to fix build with newer wireshark was merged
> in libvirt-7.10.0, therefore I think =app-emulation/libvirt-7.9.0 could use
> the same treatment as ebuilds from comment 4.

Thanks a lot!