Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943847 - =dev-perl/Tk-804.36.0-r4 fails with c23/gcc-15.0.0_pre20241117: ClientWin.c:58:11: error: too many arguments to function ‘TryChildren’
Summary: =dev-perl/Tk-804.36.0-r4 fails with c23/gcc-15.0.0_pre20241117: ClientWin.c:5...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-18 20:03 UTC by tdr
Modified: 2024-11-24 23:31 UTC (History)
1 user (show)

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


Attachments
emerge --info (tdr-emerge--info.txt,6.41 KB, text/plain)
2024-11-18 20:04 UTC, tdr
Details
build failure log (Tk-804.36.0-r4:20241118-191902.build.log,228.39 KB, text/plain)
2024-11-18 20:06 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-18 20:03:57 UTC
gcc-15.0.0_pre20241117 default to using -std=gnu23 (stricter)

Reproducible: Always

Steps to Reproduce:
emerge =gcc-15.0.0_pre20241117
emerge =dev-perl/Tk-804.36.0-r4
Actual Results:  
ClientWin.c:58:11: error: too many arguments to function ‘TryChildren’
   58 |     inf = TryChildren(dpy, win, WM_STATE);
      |           ^~~~~~~~~~~
ClientWin.c:33:15: note: declared here
   33 | static Window TryChildren();
      |               ^~~~~~~~~~~
ClientWin.c: In function ‘TryChildren’:
ClientWin.c:66:8: warning: old-style function definition [-Wold-style-definition]
   66 | Window TryChildren (dpy, win, WM_STATE)
      |        ^~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -c -I/usr/include/freetype2  -I..  -I/usr/include/freetype2 -I. -Ibitmaps  -I/usr/include/freetype2 -march=native -O3 -flto=56 -mprefer-vector-width=512 -fno-vect-cost-model -pipe -fno-strict-aliasing -DNO_PERL_RAND_SEED -fwrapv -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=native -O3 -flto=56 -mprefer-vector-width=512 -fno-vect-cost-model -pipe   -DVERSION=\"804.036\" -DXS_VERSION=\"804.036\" -fPIC "-I/usr/lib64/perl5/5.40/x86_64-linux/CORE"    tixInputO.c
ClientWin.c:94:15: error: too many arguments to function ‘TryChildren’
   94 |         inf = TryChildren(dpy, children[i], WM_STATE);
      |               ^~~~~~~~~~~
ClientWin.c:66:8: note: declared here
   66 | Window TryChildren (dpy, win, WM_STATE)


builds with -std=gnu17

also works with gcc:15.0.0_pre20241110
Comment 1 tdr 2024-11-18 20:04:31 UTC
Created attachment 909551 [details]
emerge --info
Comment 2 tdr 2024-11-18 20:06:11 UTC
Created attachment 909552 [details]
build failure log
Comment 3 Larry the Git Cow gentoo-dev 2024-11-24 23:31:19 UTC
The bug has been closed via the following commit(s):

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

commit f9dff0e51a93e1f40ea815f9ffd5823d8b48c540
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-24 23:27:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-24 23:27:18 +0000

    dev-perl/Tk: build w/ -std=gnu17
    
    dev-perl/Tk has various modern C issues already with lots of pending
    PRs upstream.
    
    Closes: https://bugs.gentoo.org/943847
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-perl/Tk/Tk-804.36.0-r4.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)