Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 915087

Summary: dev-libs/totem-pl-parser-3.26.6-r1 fails to link with clang-17: ld.lld: error: version script assignment of 'LIBTOTEM_PL_PARSER_MINI_1.0' to symbol 'totem_disc_media_type_get_type' failed: symbol not defined
Product: Gentoo Linux Reporter: ppw0
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: CONFIRMED ---    
Severity: normal CC: chris
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://gitlab.gnome.org/GNOME/totem-pl-parser/-/issues/39
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 731004, 912821    
Attachments: build log
emerge --info

Description ppw0 2023-10-02 20:08:44 UTC
Created attachment 872054 [details]
build log

In a clang-17[default-libcxx] environment, totem-pl-parser-3.26.6 will fail to emerge during the linking phase:
---
ld.lld: error: version script assignment of 'LIBTOTEM_PL_PARSER_MINI_1.0' to symbol 'totem_disc_media_type_get_type' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBTOTEM_PL_PARSER_MINI_1.0' to symbol 'totemplparser_marshal_VOID__STRING_STRING_STRING' failed: symbol not defined
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
---

This failure can be averted by passing "-Wl,--undefined-version" to LDFLAGS.

Attaching logs.
Comment 1 ppw0 2023-10-02 20:10:04 UTC
Created attachment 872055 [details]
emerge --info
Comment 2 Pacho Ramos gentoo-dev 2023-10-08 10:35:09 UTC
Could you please report it to upstream too?
https://gitlab.gnome.org/GNOME/totem-pl-parser/-/issues

Thanks a lot
Comment 3 Agostino Sarubbo gentoo-dev 2024-02-02 07:51:14 UTC
clang-lld_tinderbox has reproduced this issue with version 3.26.6-r1 - Updating summary.