Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875056 - x11-libs/libgxim-0.5.0 - gximcore.c: error: implicit declaration of function gdk_x11_atom_to_xatom_for_display [-Werror=implicit-f
Summary: x11-libs/libgxim-0.5.0 - gximcore.c: error: implicit declaration of function ...
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: c99-porting
  Show dependency tree
 
Reported: 2022-10-04 16:40 UTC by Toralf Förster
Modified: 2024-07-10 15:24 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.61 KB, text/plain)
2022-10-04 16:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,249.65 KB, text/plain)
2022-10-04 16:40 UTC, Toralf Förster
Details
environment (environment,78.86 KB, text/plain)
2022-10-04 16:40 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,11.67 KB, application/x-bzip)
2022-10-04 16:40 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,10.95 KB, application/x-bzip)
2022-10-04 16:40 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,28.98 KB, application/x-bzip)
2022-10-04 16:40 UTC, Toralf Förster
Details
x11-libs:libgxim-0.5.0:20221004-133605.log (x11-libs:libgxim-0.5.0:20221004-133605.log,62.75 KB, text/plain)
2022-10-04 16:40 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 2022-10-04 16:40:11 UTC
gximcore.c: In function 'g_xim_core_atom_init':
gximcore.c:100:20: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
  100 |         GXimCorePrivate *priv = G_XIM_CORE_GET_PRIVATE (core);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                      
gximcore.c:118:17: error: implicit declaration of function 'gdk_x11_atom_to_xatom_for_display' [-Werror=implicit-function-declaration]
  118 |                 gdk_x11_atom_to_xatom_for_display(priv->dpy, atom);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20221002-183753

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.3.1
 [2] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
3)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *
GNU Make 4.3

  HEAD of ::gentoo
commit 770088fc0e2d8baa4598d5810af4ce723f7f50da
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Oct 4 13:18:15 2022 +0000

    2022-10-04 13:18:15 UTC

emerge -qpvO x11-libs/libgxim
[ebuild  N    ] x11-libs/libgxim-0.5.0  USE="-static-libs -test" RUBY_TARGETS="ruby27 -ruby25 -ruby26"
Comment 1 Toralf Förster gentoo-dev 2022-10-04 16:40:12 UTC
Created attachment 819616 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 16:40:13 UTC
Created attachment 819619 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-04 16:40:15 UTC
Created attachment 819622 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-04 16:40:16 UTC
Created attachment 819625 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-04 16:40:17 UTC
Created attachment 819628 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-04 16:40:18 UTC
Created attachment 819631 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-04 16:40:19 UTC
Created attachment 819634 [details]
x11-libs:libgxim-0.5.0:20221004-133605.log
Comment 8 Larry the Git Cow gentoo-dev 2024-07-10 15:24:43 UTC
The bug has been closed via the following commit(s):

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

commit b1631392ca489e12652ed5682f2b79205b976c56
Author:     Eli Schwartz <eschwartz@gentoo.org>
AuthorDate: 2024-07-10 01:45:41 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-07-10 15:23:57 +0000

    x11-libs/libgxim: backport gcc 14 fix for implicit-function-decl
    
    Upstream has fixed this in 2018 but simply not released a new version:
    https://bitbucket.org/tagoh/libgxim/commits/274976ff39d9142169a18655f5013e66233ac9c8
    
    Due to the implicit function declaration, compilation fails on gcc 14.
    On gcc 13, instead, there is an lto-type-mismatch because the K&R C
    style incorrect prototype was... incorrect and mismatched the required
    types. :)
    
    The same upstream commit also includes an unrelated fix for a different
    build issue: -Werror=format-security.
    
    Closes: https://bugs.gentoo.org/875056
    Closes: https://bugs.gentoo.org/928090
    Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>

 x11-libs/libgxim/files/libgxim-0.5.0-gcc14.patch   | 40 ++++++++++++++++++++++
 ...ibgxim-0.5.0.ebuild => libgxim-0.5.0-r1.ebuild} |  6 ++++
 2 files changed, 46 insertions(+)