Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944399 - x11-misc/gbdfed-1.6 - [libtool] [gcc-15] bdfgrab.c: error: assignment to int ( )(void) from incompatible pointer type XErrorHandler {aka int ( )(Display , XErrorEvent )}
Summary: x11-misc/gbdfed-1.6 - [libtool] [gcc-15] bdfgrab.c: error: assignment to int ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-11-22 08:17 UTC by Toralf Förster
Modified: 2025-04-12 20:59 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,21.12 KB, text/plain)
2024-11-22 08:17 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,71.11 KB, application/x-xz)
2024-11-22 08:17 UTC, Toralf Förster
Details
environment (environment,28.80 KB, text/plain)
2024-11-22 08:17 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-11-22 08:17 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,25.71 KB, application/x-xz)
2024-11-22 08:17 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,5.80 KB, application/x-xz)
2024-11-22 08:17 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,80.99 KB, application/x-xz)
2024-11-22 08:17 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,8.53 KB, application/x-xz)
2024-11-22 08:17 UTC, Toralf Förster
Details
x11-misc:gbdfed-1.6:20241122-015431.log (x11-misc:gbdfed-1.6:20241122-015431.log,15.50 KB, text/plain)
2024-11-22 08:17 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 2024-11-22 08:17:44 UTC
too long lines were shrinked:

bdfcons.c:340:9: warning: ignoring return value of fread declared with attribute warn_unused_result [-Wunused-result]
  340 |         fread((char *) gp->bitmap, height, 1, in);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -DHAVE_FREETYPE -DHAVE_HBF -DHAVE_XLIB -O2 -pipe -march=native -fno-diagnostics-color -I/usr/include/freetype2 -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/gdk-pixbuf-2.0 -pthread -I/usr/include/libmount -I
x86_64-pc-linux-gnu-gcc -DHAVE_FREETYPE -DHAVE_HBF -DHAVE_XLIB -O2 -pipe -march=native -fno-diagnostics-color -I/usr/include/freetype2 -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/gdk-pixbuf-2.0 -pthread -I/usr/include/libmount -I
bdfgrab.c: In function bdf_load_server_font:
bdfgrab.c:277:23: error: assignment to int (*)(void) from incompatible pointer type XErrorHandler {aka int (*)(Display *, XErrorEvent *)} [-Wincompatible-pointer-types]
  277 |     old_error_handler = XSetErrorHandler(error_handler);
      |                       ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma-20241113-211502

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 19.1.4
llvm-config: 19.1.4
Python 3.12.7
go version go1.23.3 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.82.0
  [3]   rust-1.82.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 2dd166e231720f85ebfbdfafdf5a0b859f630fd2
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Nov 22 01:03:22 2024 +0000

    2024-11-22 01:03:22 UTC

emerge -qpvO =x11-misc/gbdfed-1.6
[ebuild  N    ] x11-misc/gbdfed-1.6
Comment 1 Toralf Förster gentoo-dev 2024-11-22 08:17:45 UTC
Created attachment 911420 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-22 08:17:46 UTC
Created attachment 911421 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-11-22 08:17:47 UTC
Created attachment 911422 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-11-22 08:17:48 UTC
Created attachment 911423 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-11-22 08:17:49 UTC
Created attachment 911424 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-22 08:17:50 UTC
Created attachment 911425 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-22 08:17:51 UTC
Created attachment 911426 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-11-22 08:17:52 UTC
Created attachment 911427 [details]
temp.tar.xz
Comment 9 Toralf Förster gentoo-dev 2024-11-22 08:17:53 UTC
Created attachment 911428 [details]
x11-misc:gbdfed-1.6:20241122-015431.log
Comment 10 Larry the Git Cow gentoo-dev 2025-04-12 20:59:26 UTC
The bug has been closed via the following commit(s):

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

commit 106d254a63d44358465bf7496e6a4886b6449c6c
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-02-23 20:29:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-12 20:58:21 +0000

    x11-misc/gbdfed: port to C23
    
    Closes: https://bugs.gentoo.org/944399
    Closes: https://bugs.gentoo.org/944095
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/41190
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-misc/gbdfed/files/gbdfed-1.6-c23.patch | 36 ++++++++++++++++++++++++++++++
 x11-misc/gbdfed/gbdfed-1.6-r1.ebuild       | 25 +++++++++++++++++++++
 2 files changed, 61 insertions(+)