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

Bug 915210

Summary: net-misc/spice-gtk-0.42-r3 fails to link with clang-17: ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_get_grab_keys' failed: symbol not defined
Product: Gentoo Linux Reporter: ppw0
Component: Current packagesAssignee: Virtualization Team <virtualization>
Status: RESOLVED FIXED    
Severity: normal CC: parona, StormByte
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://gitlab.freedesktop.org/spice/spice-gtk/-/merge_requests/121
https://github.com/gentoo/gentoo/pull/36566
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 731004, 912821    
Attachments: build log
emerge --info

Description ppw0 2023-10-05 11:58:03 UTC
Created attachment 872174 [details]
build log

In a clang-17[default-libcxx] environment, net-misc/spice-gtk-0.42-r3 will fail to link during emerge with the following error message:
```
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_get_grab_keys' failed: symbol not de
fined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_get_pixbuf' failed: symbol not defin
ed
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_get_type' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_key_event_get_type' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_keyboard_ungrab' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_mouse_ungrab' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_new' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_new_with_monitor' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_send_keys' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_set_grab_keys' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_grab_sequence_as_string' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_grab_sequence_copy' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_grab_sequence_free' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_grab_sequence_get_type' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_grab_sequence_new' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_grab_sequence_new_from_string' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_gtk_session_copy_to_guest' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_gtk_session_get' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_gtk_session_get_type' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_gtk_session_paste_from_guest' failed: symbol not defined
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
```

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

Attaching logs.
Comment 1 ppw0 2023-10-05 11:58:24 UTC
Created attachment 872175 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-05-05 12:54:05 UTC
The bug has been closed via the following commit(s):

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

commit 330c8f61442cdeba8962c44c186fd0e8c908ac73
Author:     Kostadin Shishmanov <kocelfc@tutanota.com>
AuthorDate: 2024-05-05 12:37:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-05 12:53:45 +0000

    net-misc/spice-gtk: enable py3.12, backport lld 17 fix
    
    Closes: https://bugs.gentoo.org/915210
    Closes: https://bugs.gentoo.org/929731
    Signed-off-by: Kostadin Shishmanov <kocelfc@tutanota.com>
    Closes: https://github.com/gentoo/gentoo/pull/36566
    Signed-off-by: Sam James <sam@gentoo.org>

 .../spice-gtk/files/spice-gtk-0.42-lld17-fix.patch | 167 +++++++++++++++++++++
 net-misc/spice-gtk/spice-gtk-0.42-r4.ebuild        | 160 ++++++++++++++++++++
 net-misc/spice-gtk/spice-gtk-9999.ebuild           |   2 +-
 3 files changed, 328 insertions(+), 1 deletion(-)