Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944153 - =media-gfx/fig2dev-3.2.9-r5 fails with c23/gcc-15.0.0_pre20241117-r2: error: too many arguments to function ‘putfig
Summary: =media-gfx/fig2dev-3.2.9-r5 fails with c23/gcc-15.0.0_pre20241117-r2: error: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: mario.haustein
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-20 15:46 UTC by tdr
Modified: 2025-02-19 12:05 UTC (History)
3 users (show)

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


Attachments
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-20 15:46 UTC, tdr
Details
build failure log (fig2dev-3.2.9-r5.build.log,41.54 KB, text/plain)
2024-11-20 15:47 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-20 15:46:14 UTC
c23 is stricter than previous standards

Reproducible: Always

Steps to Reproduce:
emerge -v1 =gcc-15.0.0_pre20241117-r2
USE="ghostscript" emerge -1 =media-gfx/fig2dev-3.2.9-r5
Actual Results:  
mkfile.c:55:17: error: too many arguments to function ‘putfig’
   55 |                 putfig(mk, box, altfonts, NULL, NULL, a->m, NULL, i, "tex");
      |                 ^~~~~~
mkfile.c:21:6: note: declared here
   21 | void putfig();
      |      ^~~~~~
mkfile.c:84:17: error: too many arguments to function ‘putfig’
   84 |                 putfig(mk, to, altfonts, a->f, a->s, a->m, a->o, i, lname[(int)to]);
      |                 ^~~~~~
mkfile.c:21:6: note: declared here
   21 | void putfig();
      |      ^~~~~~
mkfile.c:93:17: error: too many arguments to function ‘putfig’
   93 |                 putfig(mk, to, altfonts, a->f, a->s, a->m, a->o, i, "tex");
      |                 ^~~~~~
mkfile.c:21:6: note: declared here
   21 | void putfig();
      |      ^~~~~~
mkfile.c:98:17: error: too many arguments to function ‘putfig’
   98 |                 putfig(mk, latex, altfonts, a->f, a->s, a->m, a->o, i, "tex");
      |                 ^~~~~~
mkfile.c:21:6: note: declared here
   21 | void putfig();
      |      ^~~~~~


builds correctly with CFLAGS="${CFLAGS} -std=gnu17"
Comment 1 tdr 2024-11-20 15:46:37 UTC
Created attachment 910513 [details]
emerge --info
Comment 2 tdr 2024-11-20 15:47:03 UTC
Created attachment 910514 [details]
build failure log
Comment 3 Larry the Git Cow gentoo-dev 2025-02-19 11:13:58 UTC
The bug has been closed via the following commit(s):

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

commit 93644497325b6df7a17f8bd05ad0495607aa5c34
Author:     Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
AuthorDate: 2025-01-30 21:44:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-19 11:11:09 +0000

    media-gfx/fig2dev: add 3.2.9a
    
    Closes: https://bugs.gentoo.org/944153
    Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/fig2dev/Manifest                         |   1 +
 media-gfx/fig2dev/fig2dev-3.2.9a.ebuild            | 103 +++++++++++++++++++++
 .../fig2dev/files/fig2dev-3.2.9a-prototypes.patch  |  62 +++++++++++++
 3 files changed, 166 insertions(+)