Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915210 - 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
Summary: net-misc/spice-gtk-0.42-r3 fails to link with clang-17: ld.lld: error: versio...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld 912821
  Show dependency tree
 
Reported: 2023-10-05 11:58 UTC by ppw0
Modified: 2024-02-23 13:42 UTC (History)
2 users (show)

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


Attachments
build log (net-misc:spice-gtk-0.42-r3:20231005-113222.log,106.16 KB, text/x-log)
2023-10-05 11:58 UTC, ppw0
Details
emerge --info (emerge_info.log,7.38 KB, text/x-log)
2023-10-05 11:58 UTC, ppw0
Details

Note You need to log in before you can comment on or make changes to this bug.
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