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

Bug 915209

Summary: 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
Product: Gentoo Linux Reporter: ppw0
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: UNCONFIRMED ---    
Severity: normal CC: StormByte, virtualization
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://gitlab.gnome.org/GNOME/gtk-vnc/-/issues/24
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 731004, 912821    
Attachments: build log
emerge --info

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