Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943882 - =media-libs/t1lib-5.1.2-r5 fails with c23/gcc-15.0.0_pre20241117-r2: aths.h:117:35: error: too many arguments to function 't1_PathDelta'
Summary: =media-libs/t1lib-5.1.2-r5 fails with c23/gcc-15.0.0_pre20241117-r2: aths.h:1...
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:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-19 07:00 UTC by tdr
Modified: 2024-11-24 23:21 UTC (History)
1 user (show)

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


Attachments
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-19 07:01 UTC, tdr
Details
build failure log (t1lib-5.1.2-r5.build.log,411.45 KB, text/plain)
2024-11-19 07:02 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-19 07:00:56 UTC
gcc-15 now defaults to using -std=gnu23 (which is stricter)

multiple: error: too many arguments to function
          number of arguments doesn't match prototype 
          rror: prototype declaration

Reproducible: Always

Actual Results:  
1snap.c: In function 't1_Phantom':
t1snap.c:43:17: warning: old-style function definition [-Wold-style-definition]
   43 | struct segment *t1_Phantom(obj)
      |                 ^~~~~~~~~~
In file included from t1snap.c:33:
paths.h:117:35: error: too many arguments to function 't1_PathDelta'
  117 | #define   PathDelta(p,pt)         t1_PathDelta(p,pt)
      |                                   ^~~~~~~~~~~~
t1snap.c:51:16: note: in expansion of macro 'PathDelta'
   51 |                PathDelta(obj, &pt);
      |                ^~~~~~~~~
paths.h:127:6: note: declared here
  127 | void t1_PathDelta();          /* calculate the ending point of a path         */
      |      ^~~~~~~~~~~~
paths.h:119:35: error: too many arguments to function 't1_PathSegment'
  119 | #define   PathSegment(t,x,y)      t1_PathSegment(t,(fractpel)x,(fractpel)y)
      |                                   ^~~~~~~~~~~~~~
t1snap.c:53:15: note: in expansion of macro 'PathSegment'
   53 |        return(PathSegment(MOVETYPE, pt.x, pt.y));
      |               ^~~~~~~~~~~
paths.h:128:17: note: declared here
  128 | struct segment *t1_PathSegment(); /* produce a MOVE or LINE segment           */
      |                 ^~~~~~~~~~~~~~
t1snap.c: In function 't1_Snap':
curves.c: In function 'BezierTerminationTest':
t1snap.c:62:17: warning: old-style function definition [-Wold-style-definition]
   62 | struct xobject *t1_Snap(p)
      |                 ^~~~~~~
paths.h:117:35: error: too many arguments to function 't1_PathDelta'
  117 | #define   PathDelta(p,pt)         t1_PathDelta(p,pt)
      |                                   ^~~~~~~~~~~~


(many many more lines)


works with CFLAGS="${CFLAGS} -std=gnu17"
also works with =gcc-15.0.0_pre20241110
Comment 1 tdr 2024-11-19 07:01:34 UTC
Created attachment 909688 [details]
emerge --info
Comment 2 tdr 2024-11-19 07:02:45 UTC
Created attachment 909689 [details]
build failure log
Comment 3 Larry the Git Cow gentoo-dev 2024-11-24 23:21:37 UTC
The bug has been closed via the following commit(s):

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

commit 743cd76336b2c8d8602cfd14405097e21a321306
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-24 23:20:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-24 23:20:11 +0000

    media-libs/t1lib: build w/ -std=gnu17
    
    Nowhere to report upstream.
    
    Closes: https://bugs.gentoo.org/943882
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/t1lib/t1lib-5.1.2-r5.ebuild | 2 ++
 1 file changed, 2 insertions(+)