Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779121 - app-i18n/scim-bridge-0.4.16-r3[gtk] - scim-bridge-client-key-event-utility-gtk.c:(.text+<snip>): undefined reference to XGetKeyboardMap
Summary: app-i18n/scim-bridge-0.4.16-r3[gtk] - scim-bridge-client-key-event-utility-gt...
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:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-29 17:44 UTC by Toralf Förster
Modified: 2022-05-15 22:16 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.63 KB, text/plain)
2021-03-29 17:44 UTC, Toralf Förster
Details
app-i18n:scim-bridge-0.4.16-r3:20210329-160245.log (app-i18n:scim-bridge-0.4.16-r3:20210329-160245.log,63.89 KB, text/plain)
2021-03-29 17:44 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,471.10 KB, text/plain)
2021-03-29 17:44 UTC, Toralf Förster
Details
environment (environment,111.04 KB, text/plain)
2021-03-29 17:44 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,30.50 KB, application/x-bzip)
2021-03-29 17:44 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,15.93 KB, application/x-bzip)
2021-03-29 17:44 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,34.47 KB, application/x-bzip)
2021-03-29 17:44 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-03-29 17:44:33 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/im_scim_bridge_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+0x2d1): 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+0x2f0): undefined reference to `XFree'
collect2: error: ld returned 1 exit status
rdlibtool: exec error upon slbt_exec_link_create_library(), line 1446: (see child process error messages).

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-20210315-143628

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.50.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.17.1 [icedtea-8]
2)	IcedTea JDK 3.16.0 [icedtea-bin-8]
3)	JamVM JDK 2.0.0 [jamvm]
4)	OpenJDK 8.282_p08 [openjdk-8]
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8 
  [3]   jamvm 
  [4]   openjdk-8 
  [5]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon Mar 29 15:50:50 UTC 2021

emerge -qpvO app-i18n/scim-bridge
[ebuild  N    ] app-i18n/scim-bridge-0.4.16-r3  USE="gtk -doc"
Comment 1 Toralf Förster gentoo-dev 2021-03-29 17:44:34 UTC
Created attachment 696012 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-29 17:44:35 UTC
Created attachment 696015 [details]
app-i18n:scim-bridge-0.4.16-r3:20210329-160245.log
Comment 3 Toralf Förster gentoo-dev 2021-03-29 17:44:37 UTC
Created attachment 696018 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-03-29 17:44:39 UTC
Created attachment 696021 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-03-29 17:44:40 UTC
Created attachment 696024 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-29 17:44:41 UTC
Created attachment 696027 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-03-29 17:44:43 UTC
Created attachment 696030 [details]
temp.tar.bz2
Comment 8 orbea 2021-03-29 19:09:11 UTC
I ran into an unrelated bug.

scim-bridge-agent-signal-listener.cpp: In function ‘void sig_quit(int)’:
scim-bridge-agent-signal-listener.cpp:67:24: error: invalid conversion from ‘char’ to  const void*’ [-fpermissive]
   67 |         send (pipe_in, '\0', sizeof (char), MSG_NOSIGNAL);
      |                        ^~~~
      |                        |
      |                        char
In file included from scim-bridge-agent-signal-listener.cpp:27:
/usr/include/sys/socket.h:138:44: note:   initializing argument 2 of ‘ssize_t send(int, const void*, size_t, int)’
  138 | extern ssize_t send (int __fd, const void *__buf, size_t __n, int __flags);
      |                                ~~~~~~~~~~~~^~~~~
make[2]: *** [Makefile:666: scim_bridge-scim-bridge-agent-signal-listener.o] Error 1
Comment 9 orbea 2021-03-29 19:17:55 UTC
Since upstream seems dead and the build fails for unrelated issues I probably won't look into this unless someone cares enough to fix the compile issues, but for the record its probably missing something like -lX11.
Comment 10 orbea 2022-05-15 17:54:59 UTC
Upstream patch: https://sourceforge.net/p/scim/patches/15/
Comment 11 Larry the Git Cow gentoo-dev 2022-05-15 22:11:28 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9471a43212eb183e3880f832d70e81f8046a7980

commit 9471a43212eb183e3880f832d70e81f8046a7980
Author:     orbea <orbea@riseup.net>
AuthorDate: 2022-05-15 18:01:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-15 22:09:43 +0000

    app-i18n/scim-bridge: Fix undefined references
    
    With slibtool the gtk+2 build fails with undefined references for -lx11
    which is missing entirely.
    
    GNU libtool silently hides the bug by ignoring -no-undefined while
    slibtool does not do this.
    
    Bug: https://bugs.gentoo.org/779121
    Upstream-PR: https://sourceforge.net/p/scim/patches/15/
    Signed-off-by: orbea <orbea@riseup.net>
    Closes: https://github.com/gentoo/gentoo/pull/25505
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/scim-bridge-0.4.16-slibtool.patch        | 58 ++++++++++++++++++++++
 app-i18n/scim-bridge/scim-bridge-0.4.16-r3.ebuild  |  1 +
 2 files changed, 59 insertions(+)