Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949574 - games-server/crossfire-server-1.75.0 - [meson] [glibc] [gcc-15] [ffmpeg] init.c: error: initialization of void ( )(void) from incompatible pointer type void ( )(const cha
Summary: games-server/crossfire-server-1.75.0 - [meson] [glibc] [gcc-15] [ffmpeg] init...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2025-02-10 17:28 UTC by Toralf Förster
Modified: 2025-02-14 05:18 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.94 KB, text/plain)
2025-02-10 17:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,84.43 KB, text/plain)
2025-02-10 17:28 UTC, Toralf Förster
Details
environment (environment,15.41 KB, text/plain)
2025-02-10 17:28 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,27.91 KB, application/x-xz)
2025-02-10 17:28 UTC, Toralf Förster
Details
games-server:crossfire-server-1.75.0:20250210-160103.log (games-server:crossfire-server-1.75.0:20250210-160103.log,120.10 KB, text/plain)
2025-02-10 17:28 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,78.41 KB, application/x-xz)
2025-02-10 17:28 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,185.05 KB, text/plain)
2025-02-10 17:28 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,5.30 KB, application/x-xz)
2025-02-10 17:28 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 2025-02-10 17:28:36 UTC
too long lines were shrinked:

make[1]: Leaving directory '/var/tmp/portage/games-server/crossfire-server-1.75.0/work/crossfire-1.75.0/server'
make[1]: Entering directory '/var/tmp/portage/games-server/crossfire-server-1.75.0/work/crossfire-1.75.0/server'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -DDATADIR=\"/usr/share/crossfire\" -DCONFDIR=\"/etc/crossfire\" -DLIBDIR=\"/usr/lib64/crossfire\" -DLOCALDIR=\"/var/lib/crossfire\" -DPLUGIN_SUFFIX=\".so\"   -O2 -pipe -march=native -fno-diagnostics-color -fvisibility=hidden -c -
make[1]: Leaving directory '/var/tmp/portage/games-server/crossfire-server-1.75.0/work/crossfire-1.75.0/server'
make[1]: Entering directory '/var/tmp/portage/games-server/crossfire-server-1.75.0/work/crossfire-1.75.0/server'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -DDATADIR=\"/usr/share/crossfire\" -DCONFDIR=\"/etc/crossfire\" -DLIBDIR=\"/usr/lib64/crossfire\" -DLOCALDIR=\"/var/lib/crossfire\" -DPLUGIN_SUFFIX=\".so\"   -O2 -pipe -march=native -fno-diagnostics-color -fvisibility=hidden -c -
init.c:288:22: error: initialization of void (*)(void) from incompatible pointer type void (*)(const char *) [-Wincompatible-pointer-types]
  288 |     { "-arch", 1, 1, set_archetypes },
      |                      ^~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_hardened-20250209-062006

  UNMASKED:

    Requested by sam
  =media-video/ffmpeg-7*

    
  <sys-devel/gcc-15.0.9999:15

    Requested by dilfridge
  ~sys-libs/glibc-2.41

    Please re-assign to ztrawhcse@ if you cannot reproduced it with regular meson.
  <dev-build/meson-9999

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
llvm-config: 19.1.7
Python 3.12.9
go version go1.23.6 linux/amd64
Available Rust versions:
  [1]   rust-bin-1.84.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21]
2)	Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 24fa86b21f133a40842a4823b23e1266c6a899ed
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Feb 10 13:48:35 2025 +0000

    2025-02-10 13:48:35 UTC

emerge -qpvO =games-server/crossfire-server-1.75.0
[ebuild  N    ] games-server/crossfire-server-1.75.0  USE="-X"
Comment 1 Toralf Förster gentoo-dev 2025-02-10 17:28:37 UTC
Created attachment 918609 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-02-10 17:28:38 UTC
Created attachment 918610 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2025-02-10 17:28:39 UTC
Created attachment 918611 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2025-02-10 17:28:40 UTC
Created attachment 918612 [details]
etc.portage.tar.xz
Comment 5 Toralf Förster gentoo-dev 2025-02-10 17:28:41 UTC
Created attachment 918613 [details]
games-server:crossfire-server-1.75.0:20250210-160103.log
Comment 6 Toralf Förster gentoo-dev 2025-02-10 17:28:43 UTC
Created attachment 918614 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-02-10 17:28:44 UTC
Created attachment 918615 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2025-02-10 17:28:45 UTC
Created attachment 918616 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2025-02-14 05:18:30 UTC
The bug has been closed via the following commit(s):

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

commit 7be46628ec604d533b1eeea5df0ae2c8cceef7d4
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-02-11 12:14:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-14 05:13:45 +0000

    games-server/crossfire-server: port to C23
    
    function pointer to (void)() functions was used as a prototype for
    polymorphic dispatch, with num_args parameter showing number of
    arguments to pass to function. As num_args is either 0 or 1,
    and non-void functions take const char* as an argument, changing
    every signature to const char* and not passing argument to
    0-argument functions is the only solution without major re-engineering.
    
    Closes: https://bugs.gentoo.org/949574
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40529
    Signed-off-by: Sam James <sam@gentoo.org>

 ....0.ebuild => crossfire-server-1.75.0-r1.ebuild} |   4 +-
 ...-server-1.75.0-incompatible-func-pointers.patch | 175 +++++++++++++++++++++
 2 files changed, 178 insertions(+), 1 deletion(-)