Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946064 - app-crypt/mit-krb5-appl-1.0.3-r4 fails to compile: krlogind.c:215:14: error: conflicting types for ‘ptsname’; have ‘char *(void)’
Summary: app-crypt/mit-krb5-appl-1.0.3-r4 fails to compile: krlogind.c:215:14: error: ...
Status: CONFIRMED
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: PullRequest
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-12-07 17:45 UTC by Agostino Sarubbo
Modified: 2025-02-07 12:18 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,124.87 KB, text/plain)
2024-12-07 17:45 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-12-07 17:45:16 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-crypt/mit-krb5-appl-1.0.3-r4 fails to compile.
Discovered on: amd64 (internal ref: gcc15_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-12-07 17:45:17 UTC
Created attachment 913528 [details]
build.log

build log and emerge --info
Comment 2 NHO 2025-02-01 12:59:40 UTC
Porting to C23 is annoying, so many vararg functions that are now illegal.
Slapping -std=gnu17 and fixing bug 878615 appears the solution.
Comment 3 Larry the Git Cow gentoo-dev 2025-02-07 12:18:14 UTC
The bug has been referenced in the following commit(s):

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

commit 546b5929b0b382b7fc0d66c1a8d51454431f6ab0
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-02-01 13:50:32 +0000
Commit:     Eray Aslan <eras@gentoo.org>
CommitDate: 2025-02-07 12:11:40 +0000

    app-crypt/mit-krb5-appl: port to C99 and up to C17
    
    Fails to build with C23 due to very active usage of vararg functions:
    Some of function pointers take parameters, some of them take no parameters
    
    Bug: https://bugs.gentoo.org/946064
    Closes: https://bugs.gentoo.org/878615
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Signed-off-by: Eray Aslan <eras@gentoo.org>

 .../mit-krb5-appl/files/mit-krb5-appl-c99.patch    | 71 ++++++++++++++++++++++
 .../mit-krb5-appl/mit-krb5-appl-1.0.3-r5.ebuild    | 71 ++++++++++++++++++++++
 2 files changed, 142 insertions(+)