Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944360 - games-util/qstat-2.14 - [ncurses-6.5] [gcc-15] packet_manip.c: error: too many arguments to function (int ( )(void))server->type->packet_func
Summary: games-util/qstat-2.14 - [ncurses-6.5] [gcc-15] packet_manip.c: error: too man...
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: 2024-11-21 20:24 UTC by Toralf Förster
Modified: 2025-02-10 09:32 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.71 KB, text/plain)
2024-11-21 20:24 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,64.32 KB, application/x-xz)
2024-11-21 20:24 UTC, Toralf Förster
Details
environment (environment,77.87 KB, text/plain)
2024-11-21 20:24 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-11-21 20:24 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,24.52 KB, application/x-xz)
2024-11-21 20:24 UTC, Toralf Förster
Details
games-util:qstat-2.14:20241121-054700.log (games-util:qstat-2.14:20241121-054700.log,13.62 KB, text/plain)
2024-11-21 20:24 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,29.48 KB, application/x-xz)
2024-11-21 20:24 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,75.25 KB, application/x-xz)
2024-11-21 20:24 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,20.01 KB, application/x-xz)
2024-11-21 20:24 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-21 20:24:02 UTC
  195 |         int len= strlen(var);
      |                  ^~~~~~~~~~~
make[2]: Leaving directory '/var/tmp/portage/games-util/qstat-2.14/work/qstat-2.14'
make[2]: Entering directory '/var/tmp/portage/games-util/qstat-2.14/work/qstat-2.14'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -Dsysconfdir=\"/etc\"  -DENABLE_DUMP  -O2 -pipe -march=native -fno-diagnostics-color -Wall -c -o packet_manip.o packet_manip.c
packet_manip.c: In function combine_packets:
packet_manip.c:150:25: error: too many arguments to function (int (*)(void))server->type->packet_func
  150 |                 ret = ( (int (*)()) server->type->packet_func)( server, combined, datalen );
      |                       ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma_systemd-20241112-111005

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15
    Issues involving opaque types / incomplete typedefs should block bug 930805
  >=sys-libs/ncurses-6.5

  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)
  [2]   ruby33 (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 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 6f9f04c8d985f9b593fa688828ed6234142183ff
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Nov 21 02:48:48 2024 +0000

    2024-11-21 02:48:47 UTC

emerge -qpvO =games-util/qstat-2.14
[ebuild  N    ] games-util/qstat-2.14  USE="-debug"
Comment 1 Toralf Förster gentoo-dev 2024-11-21 20:24:03 UTC
Created attachment 911185 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-21 20:24:04 UTC
Created attachment 911186 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-11-21 20:24:06 UTC
Created attachment 911187 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-11-21 20:24:06 UTC
Created attachment 911188 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-11-21 20:24:08 UTC
Created attachment 911189 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-21 20:24:08 UTC
Created attachment 911190 [details]
games-util:qstat-2.14:20241121-054700.log
Comment 7 Toralf Förster gentoo-dev 2024-11-21 20:24:09 UTC
Created attachment 911191 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-11-21 20:24:11 UTC
Created attachment 911192 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-11-21 20:24:11 UTC
Created attachment 911193 [details]
temp.tar.xz
Comment 10 NHO 2025-01-26 15:03:47 UTC
Upstream bug
https://github.com/Unity-Technologies/qstat/issues/122
Comment 11 Larry the Git Cow gentoo-dev 2025-02-10 08:56:47 UTC
The bug has been referenced in the following commit(s):

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

commit 46ae3b8e567d43a891f8818bb92b6258b412e07e
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-01-26 15:18:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-10 08:54:22 +0000

    games-util/qstat: Remove bad function pointer cast, C23 porting
    
    Existing function pointer is already of correct type, any additional
    casting is superfluous, and in this case lacks argument types.
    Safely removed.
    Added strnstr to whitelist of QA checks for implicit declarations:
    there is a fallback implementation, safe to ignore
    
    Closes: https://bugs.gentoo.org/899024
    Bug: https://bugs.gentoo.org/944360
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 games-util/qstat/Manifest                                  |  1 +
 games-util/qstat/files/qstat-2.14-unneeded-cast.patch      | 14 ++++++++++++++
 .../qstat/{qstat-2.14.ebuild => qstat-2.14-r1.ebuild}      | 13 +++++++++----
 3 files changed, 24 insertions(+), 4 deletions(-)