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

Bug 645168

Summary: app-i18n/scim-bridge-0.4.16-r3 : scim-bridge-agent-signal-listener.cpp:67:57: error: invalid conversion from char to const void* [-fpermissive]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: CJK Team <cjk>
Status: RESOLVED FIXED    
Severity: normal CC: orbea, samuel.bauer
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=779121
https://github.com/gentoo/gentoo/pull/25505
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-i18n:scim-bridge-0.4.16-r3:20180120-163426.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2
ebuild
gcc 7 patch

Description Toralf Förster gentoo-dev 2018-01-20 19:26:19 UTC
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../common -DSCIM_LOCALEDIR=\"@SCIM_LOCALEDIR@\" -DSCIM_ICONDIR=\"/usr/share/scim/icons\" -DSCIM_KEYBOARD_ICON_FILE=\"/usr/share/scim/icons/keyboard.png\" -DSCIM_LIBEXECDIR=\"/usr/lib64/scim-1.0\" -DSCIM_VERSION=\"1.4.6\" -DGETTEXT_PACKAGE=\"@GETTEXT_PACKAGE@\"   -I/usr/include/scim-1.0 -O2 -pipe -march=native -c -o scim_bridge-scim-bridge-agent-signal-listener.o `test -f 'scim-bridge-agent-signal-listener.cpp' || echo './'`scim-bridge-agent-signal-listener.cpp
scim-bridge-agent-signal-listener.cpp: In function ‘void sig_quit(int)’:
scim-bridge-agent-signal-listener.cpp:67:57: error: invalid conversion from ‘char’ to ‘const void*’ [-fpermissive]
         send (pipe_in, '\0', sizeof (char), MSG_NOSIGNAL);
                                                         ^
In file included from scim-bridge-agent-signal-listener.cpp:27:0:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma-systemd_test_20180117-215521

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv app-i18n/scim-bridge
Comment 1 Toralf Förster gentoo-dev 2018-01-20 19:26:22 UTC
Created attachment 515494 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-01-20 19:26:25 UTC
Created attachment 515496 [details]
app-i18n:scim-bridge-0.4.16-r3:20180120-163426.log
Comment 3 Toralf Förster gentoo-dev 2018-01-20 19:26:28 UTC
Created attachment 515498 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-01-20 19:26:31 UTC
Created attachment 515500 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-01-20 19:26:34 UTC
Created attachment 515502 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-01-20 19:26:37 UTC
Created attachment 515504 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-01-20 19:26:40 UTC
Created attachment 515506 [details]
temp.tbz2
Comment 8 Malcolm Lashley 2018-07-16 00:01:01 UTC
Fix is here - if someone would care to apply it :)
https://github.com/scim-im/scim-bridge/commit/a50943a2f9e1e10e8db168e083c3d64de2369c0c
Comment 9 Samuel Bauer 2018-08-26 22:55:23 UTC
Created attachment 545180 [details]
ebuild
Comment 10 Samuel Bauer 2018-08-26 22:56:48 UTC
Created attachment 545182 [details, diff]
gcc 7 patch

(In reply to Malcolm Lashley from comment #8)
> Fix is here - if someone would care to apply it :)
> https://github.com/scim-im/scim-bridge/commit/
> a50943a2f9e1e10e8db168e083c3d64de2369c0c

Thanks
Comment 11 orbea 2022-05-15 17:55:52 UTC
Fixed for gcc7 in Fedora 5 years ago.

https://src.fedoraproject.org/rpms/scim-bridge/c/0532ab48617e02f5bfb1edaba17b22e88d9beaf4
Comment 12 Larry the Git Cow gentoo-dev 2022-05-15 22:10:23 UTC
The bug has been referenced in the following commit(s):

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

commit c5188fb4153e8626cc2c0ba0a8aad7c5b4aa86c4
Author:     orbea <orbea@riseup.net>
AuthorDate: 2022-05-15 17:23:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-15 22:09:42 +0000

    app-i18n/scim-bridge: Fix build with gcc7
    
    Uses an old patch from Fedora.
    
    Bug: https://bugs.gentoo.org/645168
    Fedora Commit: https://src.fedoraproject.org/rpms/scim-bridge/c/0532ab48617e02f5bfb1edaba17b22e88d9beaf4
    Signed-off-by: orbea <orbea@riseup.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../scim-bridge-0.4.16-fixes-send-function-call.patch     | 15 +++++++++++++++
 app-i18n/scim-bridge/scim-bridge-0.4.16-r3.ebuild         |  3 ++-
 2 files changed, 17 insertions(+), 1 deletion(-)