Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915209 - net-libs/gtk-vnc-1.3.1 fails to link with clang-17: ld.lld: error: version script assignment of 'global' to symbol 'vnc_image_framebuffer_get_type' failed: symbol not defined
Summary: net-libs/gtk-vnc-1.3.1 fails to link with clang-17: ld.lld: error: version sc...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld 912821
  Show dependency tree
 
Reported: 2023-10-05 11:53 UTC by ppw0
Modified: 2024-02-13 15:34 UTC (History)
2 users (show)

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


Attachments
build log (net-libs:gtk-vnc-1.3.1:20231005-113157.log,78.10 KB, text/x-log)
2023-10-05 11:53 UTC, ppw0
Details
emerge --info (emerge_info.log,7.38 KB, text/x-log)
2023-10-05 11:53 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:53:26 UTC
Created attachment 872172 [details]
build log

In a clang-17[default-libcxx] environment, net-libs/gtk-vnc-1.3.1 will fail to link during emerge with the following error message:
```
ld.lld: error: version script assignment of 'global' to symbol 'vnc_image_framebuffer_get_type' failed: symbol not defined
ld.lld: error: version script assignment of 'global' to symbol 'vnc_image_framebuffer_new' failed: symbol not defined
ld.lld: error: version script assignment of 'global' to symbol 'vnc_image_framebuffer_get_image' failed: symbol not defined
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:53:41 UTC
Created attachment 872173 [details]
emerge --info
Comment 2 Pacho Ramos gentoo-dev 2023-10-08 10:46:23 UTC
Can you please report the problem to upstream too?
https://gitlab.gnome.org/GNOME/gtk-vnc/-/issues
Thanks