Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953866 - net-ftp/proftpd-1.3.9: USE=kerberos fails with GCC-15
Summary: net-ftp/proftpd-1.3.9: USE=kerberos fails with GCC-15
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-04-14 20:57 UTC by NHO
Modified: 2025-04-15 16:25 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NHO 2025-04-14 20:57:47 UTC
Missing include, bools

mod_gss.c: In function ‘gss_auth’:
mod_gss.c:1415:9: error: implicit declaration of function ‘end_login’ [-Wimplicit-function-declaration]
 1415 |         end_login(0);
      |         ^~~~~~~~~
mod_gss.c: In function ‘set_gssengine’:
mod_gss.c:2129:16: error: ‘bool’ cannot be used here
 2129 |     int        bool = -1;
      |                ^~~~
mod_gss.c:2129:16: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
mod_gss.c:2129:21: error: expected identifier or ‘(’ before ‘=’ token
 2129 |     int        bool = -1;
      |                     ^
mod_gss.c:2135:14: error: expected ‘)’ before ‘=’ token
 2135 |     if ((bool = get_boolean(cmd, 1)) == -1)
      |         ~    ^~
      |              )
mod_gss.c:2135:38: error: expected expression before ‘==’ token
 2135 |     if ((bool = get_boolean(cmd, 1)) == -1)
      |                                      ^~
mod_gss.c:2140:39: error: expected expression before ‘bool’
 2140 |     *((unsigned char *) c->argv[0]) = bool;
      |                                       ^~~~
mod_gss.c: In function ‘set_gssrequired’:
mod_gss.c:2220:19: error: ‘bool’ cannot be used here
 2220 |     int           bool = -1;
      |                   ^~~~
mod_gss.c:2220:19: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
mod_gss.c:2220:24: error: expected identifier or ‘(’ before ‘=’ token
 2220 |     int           bool = -1;
      |                        ^
mod_gss.c:2227:14: error: expected ‘)’ before ‘=’ token
 2227 |     if ((bool = get_boolean(cmd, 1)) == -1) {
      |         ~    ^~
      |              )
mod_gss.c:2227:38: error: expected expression before ‘==’ token
 2227 |     if ((bool = get_boolean(cmd, 1)) == -1) {
      |                                      ^~
mod_gss.c:2243:18: error: expected identifier or ‘(’ before ‘==’ token
 2243 |         if (bool == TRUE) {
      |                  ^~
mod_gss.c:2243:13: error: declaration in the controlling expression must have an initializer
 2243 |         if (bool == TRUE) {
      |             ^~~~
mod_gss.c: In function ‘set_gss_af_inet6’:
mod_gss.c:2262:19: error: ‘bool’ cannot be used here
 2262 |     int           bool = -1;
      |                   ^~~~
mod_gss.c:2262:19: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
mod_gss.c:2262:24: error: expected identifier or ‘(’ before ‘=’ token
 2262 |     int           bool = -1;
      |                        ^
mod_gss.c:2269:14: error: expected ‘)’ before ‘=’ token
 2269 |     if ((bool = get_boolean(cmd, 1)) == -1) {
      |         ~    ^~
      |              )
mod_gss.c:2269:38: error: expected expression before ‘==’ token
 2269 |     if ((bool = get_boolean(cmd, 1)) == -1) {
      |                                      ^~
mod_gss.c:2281:18: error: expected identifier or ‘(’ before ‘==’ token
 2281 |         if (bool == TRUE)
      |                  ^~
mod_gss.c:2281:13: error: declaration in the controlling expression must have an initializer
 2281 |         if (bool == TRUE)
      |             ^~~~


Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2025-04-15 16:25:28 UTC
The bug has been closed via the following commit(s):

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

commit 4d757e0f788ee948f9ddc225bd3afed05e55ce6c
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-04-14 22:14:00 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2025-04-15 16:20:02 +0000

    net-ftp/proftpd: fix compilation errors with GCC-15 with more USE flags
    
    errors were happening with USE=kerberos,diskuse,clamav
    
    Closes: https://bugs.gentoo.org/953814
    Closes: https://bugs.gentoo.org/953866
    Closes: https://bugs.gentoo.org/953810
    Closes: https://bugs.gentoo.org/953871
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/41596
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-ftp/proftpd/Manifest                           |   1 +
 .../files/proftpd-1.3.9-clamav-debool.patch        |  82 ++++++
 .../files/proftpd-1.3.9-clamav-refresh-api.patch   |  24 ++
 .../files/proftpd-1.3.9-gss-refresh-api.patch      |  87 ++++++
 net-ftp/proftpd/proftpd-1.3.9-r1.ebuild            | 301 +++++++++++++++++++++
 5 files changed, 495 insertions(+)