Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944006 - =app-crypt/mit-krb5-1.21.3-r1 fails with c23/gcc-15.0.0_pre20241117-r2: auth_none.c:146:18: error: too many arguments to function ‘xfunc’
Summary: =app-crypt/mit-krb5-1.21.3-r1 fails with c23/gcc-15.0.0_pre20241117-r2: auth_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Kerberos Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15 944915
  Show dependency tree
 
Reported: 2024-11-19 14:51 UTC by tdr
Modified: 2025-04-25 15:50 UTC (History)
2 users (show)

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


Attachments
build fail log (mit-krb5-1.21.3-r1:20241119-095310.log,399.00 KB, text/plain)
2024-11-19 14:52 UTC, tdr
Details
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-19 14:52 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 14:51:19 UTC
gcc-15.0.0_pre20241117 default to using -std=gnu23 (which is stricter)

Reproducible: Always

Steps to Reproduce:
emerge =gcc-15.0.0_pre20241117-r2:
emerge =app-crypt/mit-krb5-1.21.3-r1 
Actual Results:  
var/tmp/portage/app-crypt/mit-krb5-1.21.3-r1/work/krb5-1.21.3/src/lib/rpc/auth_none.c: In function ‘authnone_wrap’:
/var/tmp/portage/app-crypt/mit-krb5-1.21.3-r1/work/krb5-1.21.3/src/lib/rpc/auth_none.c:146:18: error: too many arguments to function ‘xfunc’
  146 |         return ((*xfunc)(xdrs, xwhere));
      |                 ~^~~~~~~



builds with -std=gnu17
also builds with gcc:15.0.0_pre20241110
Comment 1 tdr 2024-11-19 14:52:07 UTC
Created attachment 910214 [details]
build fail log
Comment 2 tdr 2024-11-19 14:52:48 UTC
Created attachment 910216 [details]
emerge --info
Comment 3 Larry the Git Cow gentoo-dev 2024-11-22 16:42:25 UTC
The bug has been closed via the following commit(s):

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

commit 65a3e488d9726cf06e31cbc6285746bd5b5b301b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-22 16:37:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-22 16:42:07 +0000

    app-crypt/mit-krb5: build w/ -std=gnu17
    
    There's a PR upstream to fix this but in the past when I've tried to
    backport patches, they won't apply, so just use gnu17 for now.
    
    Closes: https://bugs.gentoo.org/944006
    Signed-off-by: Sam James <sam@gentoo.org>

 app-crypt/mit-krb5/mit-krb5-1.21.3.ebuild | 3 +++
 1 file changed, 3 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2025-04-25 15:50:49 UTC
The bug has been closed via the following commit(s):

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

commit 4af8bc8de6c160554ff0e634f1837879961dbcb3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-25 15:45:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-25 15:45:59 +0000

    app-crypt/mit-krb5: fix headers for C23
    
    Use the upstream patch that Fedora is using too.
    
    Closes: https://bugs.gentoo.org/944006
    Closes: https://bugs.gentoo.org/944915
    Signed-off-by: Sam James <sam@gentoo.org>

 app-crypt/mit-krb5/Manifest                  |   1 +
 app-crypt/mit-krb5/mit-krb5-1.21.3-r1.ebuild | 157 +++++++++++++++++++++++++++
 2 files changed, 158 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit 98b0490aaace089a0df45217197bca620b541968
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-25 15:50:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-25 15:50:07 +0000

    net-nds/gssproxy: fix build w/ C23
    
    This needed a patch in mit-krb5 too.
    
    Bug: https://bugs.gentoo.org/944006
    Closes: https://bugs.gentoo.org/944915
    Signed-off-by: Sam James <sam@gentoo.org>

 net-nds/gssproxy/files/gssproxy-0.9.2-c23.patch | 106 +++++++++++++++++++++
 net-nds/gssproxy/gssproxy-0.9.2-r1.ebuild       | 117 ++++++++++++++++++++++++
 2 files changed, 223 insertions(+)