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

Bug 934481

Summary: dev-libs/libayatana-appindicator-0.5.93: ld.lld: error: version script assignment of 'local' to symbol '_generate_' failed: symbol not defined
Product: Gentoo Linux Reporter: Alfred Wingate <parona>
Component: Current packagesAssignee: Pacho Ramos <pacho>
Status: RESOLVED FIXED    
Severity: normal CC: pacho
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/AyatanaIndicators/libayatana-appindicator/pull/69
https://github.com/AyatanaIndicators/libayatana-appindicator/pull/79
https://github.com/gentoo/gentoo/pull/37409
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 731004    
Attachments: dev-libs/libayatana-appindicator-0.5.93 build.log (xz compressed)
emerge --info

Description Alfred Wingate 2024-06-17 23:05:23 UTC
Created attachment 895989 [details]
dev-libs/libayatana-appindicator-0.5.93 build.log (xz compressed)

FAILED: src/libayatana-appindicator3.so.1.0.0 
: && /usr/lib/llvm/18/bin/clang -fPIC -O3 -pipe -march=znver3 -flto=thin -Werror=odr -Werror=strict-aliasing -Wno-incompatible-pointer-types  -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0   -Wl,--version-script=/var/tmp/portage/dev-libs/libayatana-appindicator-0.5.93/work/libayatana-appindicator-0.5.93/src/app-indicator.symbols -shared -Wl,-soname,libayatana-appindicator3.so.1 -o src/libayatana-appindicator3.so.1.0.0 src/CMakeFiles/ayatana-appindicator3.dir/app-indicator.c.o src/CMakeFiles/ayatana-appindicator3.dir/app-indicator-enum-types.c.o src/CMakeFiles/ayatana-appindicator3.dir/application-service-marshal.c.o src/CMakeFiles/ayatana-appindicator3.dir/generate-id.c.o src/CMakeFiles/ayatana-appindicator3.dir/gen-notification-item.xml.c.o src/CMakeFiles/ayatana-appindicator3.dir/gen-notification-watcher.xml.c.o  -layatana-indicator3  -layatana-ido3-0.4  -ldbusmenu-gtk3  -ldbusmenu-glib  -lgtk-3  -lgdk-3  -lpangocairo-1.0  -lpango-1.0  -lharfbuzz  -latk-1.0  -lcairo-gobject  -lcairo  -lgdk_pixbuf-2.0  -lgio-2.0  -lgobject-2.0  -lglib-2.0 && :
ld.lld: error: version script assignment of 'local' to symbol '_generate_' failed: symbol not defined
ld.lld: error: version script assignment of 'local' to symbol '_application_' failed: symbol not defined
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Alfred Wingate 2024-06-17 23:05:59 UTC
Created attachment 895990 [details]
emerge --info
Comment 2 Alfred Wingate 2024-06-17 23:12:18 UTC
This appears to be case of a typo or confusion with how these work.

_generate_ -> _generate_id ?
_application_ -> _application_* or _application_service_marshal_* ?

https://github.com/AyatanaIndicators/libayatana-appindicator/blob/master/src/application-service-marshal.list there appears be many things that are generated from _application_service_marshal_.
Comment 3 Pacho Ramos gentoo-dev 2024-06-19 09:06:40 UTC
I would report it to upstream then. Thanks
Comment 4 Larry the Git Cow gentoo-dev 2024-07-05 18:24:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2284b892664ff0f188ccb255827992b17d8c0718

commit 2284b892664ff0f188ccb255827992b17d8c0718
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2024-07-03 16:29:35 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2024-07-05 18:23:22 +0000

    dev-libs/libayatana-appindicator: backport lld fix
    
    Closes: https://bugs.gentoo.org/934481
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/37409
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 ...-0.5.93-correct-symbols-in-version-script.patch | 29 ++++++++++++++++++++++
 .../libayatana-appindicator-0.5.93.ebuild          |  4 +++
 2 files changed, 33 insertions(+)