Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777297 - app-i18n/scim-1.4.18 undefined reference to `XGetKeyboardMapping' when using rlibtool
Summary: app-i18n/scim-1.4.18 undefined reference to `XGetKeyboardMapping' when using ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL: https://github.com/scim-im/scim/pull/31
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-19 15:43 UTC by Alessandro Barbieri
Modified: 2021-03-24 19:42 UTC (History)
2 users (show)

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


Attachments
scim-1.4.18:20210319-153240.log (scim-1.4.18:20210319-153240.log,528.51 KB, text/plain)
2021-03-19 15:44 UTC, Alessandro Barbieri
Details
https://github.com/scim-im/scim/pull/31 (scim-xlib.patch,1.34 KB, patch)
2021-03-19 17:13 UTC, orbea
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-19 15:43:58 UTC
rlibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I
/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib64/libffi/incl
ude -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -Os -pipe -march=native -fdiagnostics-color=always -Os -pipe -march=native -fdiagnostics-color=always -Wimplicit-function-declaration -Wno-error=implicit-f
unction-declaration -rpath /usr/lib64/gtk-2.0/2.10.0/immodules -avoid-version -no-undefined -module -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgio-2.0 -lpangoft2-1.0 -lfontconfig -lfreetype -lpango-1.0 -lgdk_pixbuf-2
.0 -lgobject-2.0 -lglib-2.0 -Wl,-O1 -Wl,--as-needed -o im-scim.la -rpath /usr/lib64/gtk-2.0/2.10.0/immodules im_scim_la-im-scim-bridge-gtk.lo im_scim_la-scim-bridge-client-gtk.lo im_scim_la-scim-bridge-client-imcontext-gtk.lo im_scim_la-s
cim-bridge-client-key-event-utility-gtk.lo ../../../../extras/immodules/common/libscimbridgecommon.la ../../../../extras/immodules/client-common/libscimbridgeclientcommon.la 
rlibtool: lconf: {.name="libtool"}.                                                                                    
rlibtool: fdcwd: {.fdcwd=AT_FDCWD, .realpath="/var/tmp/portage/app-i18n/scim-1.4.18/work/scim-1.4.18/extras/immodules/client-gtk/gtk2"}.
rlibtool: lconf: fstatat(AT_FDCWD,".",...) = 0 {.st_dev = 40, .st_ino = 1083989}.                                   
rlibtool: lconf: openat(AT_FDCWD,"libtool",O_RDONLY,0) = -1 [ENOENT].                                 
rlibtool: lconf: openat(AT_FDCWD,"../",O_DIRECTORY,0) = 5.                                                             
rlibtool: lconf: fstat(5,...) = 0 {.st_dev = 40, .st_ino = 1083988}.
rlibtool: lconf: openat(5,"libtool",O_RDONLY,0) = -1 [ENOENT].
rlibtool: lconf: openat(5,"../",O_DIRECTORY,0) = 6.                                                                    
rlibtool: lconf: fstat(6,...) = 0 {.st_dev = 40, .st_ino = 1083940}.
rlibtool: lconf: openat(6,"libtool",O_RDONLY,0) = -1 [ENOENT].               
rlibtool: lconf: openat(6,"../",O_DIRECTORY,0) = 5.                                                                    
rlibtool: lconf: fstat(5,...) = 0 {.st_dev = 40, .st_ino = 1083926}.
rlibtool: lconf: openat(5,"libtool",O_RDONLY,0) = -1 [ENOENT].                                                                                                                                                                                
rlibtool: lconf: openat(5,"../",O_DIRECTORY,0) = 6.                                                                    
rlibtool: lconf: fstat(6,...) = 0 {.st_dev = 40, .st_ino = 1083847}.
rlibtool: lconf: openat(6,"libtool",O_RDONLY,0) = 5.                                                                                                                                                                                          
rlibtool: lconf: found "/var/tmp/portage/app-i18n/scim-1.4.18/work/scim-1.4.18/libtool".
rlibtool: link: ar crs .libs/im-scim.a .libs/im_scim_la-im-scim-bridge-gtk.o .libs/im_scim_la-scim-bridge-client-gtk.o .libs/im_scim_la-scim-bridge-client-imcontext-gtk.o .libs/im_scim_la-scim-bridge-client-key-event-utility-gtk.o
rlibtool: link: x86_64-pc-linux-gnu-gcc .libs/im_scim_la-im-scim-bridge-gtk.o .libs/im_scim_la-scim-bridge-client-gtk.o .libs/im_scim_la-scim-bridge-client-imcontext-gtk.o .libs/im_scim_la-scim-bridge-client-key-event-utility-gtk.o -Wl,--
whole-archive ../../../../extras/immodules/common/.libs/libscimbridgecommon.a -Wl,--no-whole-archive -Wl,--whole-archive ../../../../extras/immodules/client-common/.libs/libscimbridgeclientcommon.a -Wl,--no-whole-archive -pthread -I/usr/i
nclude/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/
include/pango-1.0 -I/usr/include/fribidi -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/s
ysprof-4 -Os -pipe -march=native -fdiagnostics-color=always -Os -pipe -march=native -fdiagnostics-color=always -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0
 -lcairo -lgio-2.0 -lpangoft2-1.0 -lfontconfig -lfreetype -lpango-1.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -Wl,-O1 -Wl,--as-needed -shared -fPIC -Wl,--no-undefined -o .libs/im-scim.so
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/im_scim_la-scim-bridge-client-key-event-utility-gtk.o: in function `scim_bridge_key_event_gdk_to_bridge':
scim-bridge-client-key-event-utility-gtk.c:(.text+0x275): undefined reference to `XGetKeyboardMapping'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: scim-bridge-client-key-event-utility-gtk.c:(.text+0x294): undefined reference to `XFree'
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 1843.
make[4]: *** [Makefile:588: im-scim.la] Error 2
make[4]: Leaving directory '/var/tmp/portage/app-i18n/scim-1.4.18/work/scim-1.4.18/extras/immodules/client-gtk/gtk2'
make[3]: *** [Makefile:517: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-i18n/scim-1.4.18/work/scim-1.4.18/extras/immodules'
make[2]: *** [Makefile:499: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-i18n/scim-1.4.18/work/scim-1.4.18/extras'
make[1]: *** [Makefile:642: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-i18n/scim-1.4.18/work/scim-1.4.18'
make: *** [Makefile:545: all] Error 2
 * ERROR: app-i18n/scim-1.4.18::gentoo failed (compile phase):
 *   emake failed
Comment 1 Alessandro Barbieri 2021-03-19 15:44:17 UTC
Created attachment 692448 [details]
scim-1.4.18:20210319-153240.log

buildlog
Comment 2 orbea 2021-03-19 17:13:34 UTC
Created attachment 692454 [details, diff]
https://github.com/scim-im/scim/pull/31

This is another case of GNU libtool silently removing -no-undefined which slibtool does not.
Comment 3 Larry the Git Cow gentoo-dev 2021-03-24 19:42:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d5b709e98f3b20f9cbde21f8c739730e6725de9

commit 9d5b709e98f3b20f9cbde21f8c739730e6725de9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-24 19:38:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-24 19:39:08 +0000

    app-i18n/scim: fix build with slibtool
    
    Thanks-to: orbea <orbea@riseup.net>
    Closes: https://bugs.gentoo.org/777297
    Signed-off-by: Sam James <sam@gentoo.org>

 app-i18n/scim/files/scim-1.4.18-slibtool.patch | 36 ++++++++++++++++++++++++++
 app-i18n/scim/scim-1.4.18.ebuild               |  6 ++++-
 2 files changed, 41 insertions(+), 1 deletion(-)