Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 946064

Summary: app-crypt/mit-krb5-appl-1.0.3-r4 fails to compile: krlogind.c:215:14: error: conflicting types for ‘ptsname’; have ‘char *(void)’
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Kerberos Maintainers <kerberos>
Status: CONFIRMED ---    
Severity: normal CC: jy6x2b32pie9
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/40406
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 880545    
Attachments: build.log

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(+)