Summary: | media-libs/cogl-1.22.8[gles2]: undefined reference to `cogl_gles2_get_current_vtable' with slibtool | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alessandro Barbieri <lssndrbarbieri> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ionen, orbea |
Priority: | Normal | Keywords: | PATCH, UPSTREAM |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=739644 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 765709 | ||
Attachments: |
emerge_info
cogl-1.22.8:20210325-000909.log https://gitlab.gnome.org/GNOME/cogl/-/merge_requests/35 |
Description
Alessandro Barbieri
2021-03-25 01:19:42 UTC
Created attachment 693372 [details]
emerge_info
emerge --info
Created attachment 693375 [details]
cogl-1.22.8:20210325-000909.log
build log
rlibtool: link: ln -s /dev/null .libs/libcogl-gles2.a.disabled rlibtool: link: x86_64-pc-linux-gnu-gcc .libs/cogl-gles2-api.o -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/includ e/sysprof-4 -I/usr/include/libdrm -I/usr/lib64/libffi/include -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS -Os -pipe -march=native -fdiagnostics-color=always -Os -pipe -march=native -fdiagnostics-color=always -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wl,-O1 -Wl,--as-needed -shared -fPIC -Wl,--no-undefined -Wl,-soname -Wl,libcogl-gles2.so.20 -o .libs/libcogl-gles2.so.20.4.3 -Wl,--export-dynamic /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/cogl-gles2-api.o: in function `glBindTexture': cogl-gles2-api.c:(.text+0xd): undefined reference to `cogl_gles2_get_current_vtable' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/cogl-gles2-api.o: in function `glBlendFunc': cogl-gles2-api.c:(.text+0x2f): undefined reference to `cogl_gles2_get_current_vtable' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/cogl-gles2-api.o: in function `glClear': cogl-gles2-api.c:(.text+0x4e): undefined reference to `cogl_gles2_get_current_vtable' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/cogl-gles2-api.o: in function `glClearColor': cogl-gles2-api.c:(.text+0x7c): undefined reference to `cogl_gles2_get_current_vtable' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/cogl-gles2-api.o: in function `glClearStencil': cogl-gles2-api.c:(.text+0xaa): undefined reference to `cogl_gles2_get_current_vtable' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/cogl-gles2-api.o:cogl-gles2-api.c:(.text+0xce): more undefined references to `cogl_gles2_get_current_vtable' follow collect2: error: ld returned 1 exit status rlibtool: exec error upon slbt_exec_link_create_library(), line 1446: (see child process error messages). rlibtool: < returned to > slbt_exec_link(), line 1868. make[2]: *** [Makefile:602: libcogl-gles2.la] Error 2 make[2]: Leaving directory '/var/tmp/portage/media-libs/cogl-1.22.8/work/cogl-1.22.8/cogl-gles2' make[1]: *** [Makefile:598: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-libs/cogl-1.22.8/work/cogl-1.22.8' make: *** [Makefile:525: all] Error 2 * ERROR: media-libs/cogl-1.22.8::gentoo failed (compile phase): * emake failed This requires the gles2 useflag to reproduce. Haven't looked in-depth but if libcogl-gles2 links against libcogl it seems to fix both bugs. Created attachment 693447 [details, diff] https://gitlab.gnome.org/GNOME/cogl/-/merge_requests/35 Another case of GNU libtool ignoring -no-undefined... The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0098ec8fad775917aeaeddc0fa4d2f7f2ad992e7 commit 0098ec8fad775917aeaeddc0fa4d2f7f2ad992e7 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-03-27 01:37:14 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-27 02:57:37 +0000 media-libs/cogl: fix build with slibtool (Closing the NEEDED bug too which I filed in the past as I can't reproduce right now. Possibly fixed by this.) Thanks-to: orbea <orbea@riseup.net> Closes: https://bugs.gentoo.org/778041 Closes: https://bugs.gentoo.org/739644 Signed-off-by: Sam James <sam@gentoo.org> media-libs/cogl/cogl-1.22.8.ebuild | 8 ++++++++ media-libs/cogl/files/cogl-1.22.8-slibtool.patch | 26 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+) |