Created attachment 908891 [details] build log sys-process/lsof-4.99.3 fails to compile with gcc 15-9999, adding -std=gnu17 to CFLAGS makes it build. lib/misc.c: In function ‘doinchild’: lib/misc.c:369:26: error: too many arguments to function ‘r_fn’ 369 | rv = r_fn(r_arg, r.r_rbuf, r_rbln); | ^~~~ lib/misc.c:422:14: error: too many arguments to function ‘fn’ 422 | rv = fn(fp, rbuf, rbln); | ^~ lib/misc.c: In function ‘lstatsafely’: lib/misc.c:998:28: error: passing argument 2 of ‘doinchild’ from incompatible pointer type [-Wincompatible-pointer-types] 998 | return (doinchild(ctx, dolstat, path, (char *)buf, sizeof(struct stat))); | ^~~~~~~ | | | int (*)(char *, char *, int) lib/misc.c:241:28: note: expected ‘int (*)(void)’ but argument is of type ‘int (*)(char *, char *, int)’ 241 | int (*fn)(), /* function to perform */ | ~~~~~~^~~~~ lib/misc.c: In function ‘Readlink’: lib/misc.c:1058:36: error: passing argument 2 of ‘doinchild’ from incompatible pointer type [-Wincompatible-pointer-types] 1058 | if ((llen = doinchild(ctx, doreadlink, tbuf, lbuf, sizeof(lbuf) - 1)) >= | ^~~~~~~~~~ | | | int (*)(char *, char *, int) lib/misc.c:241:28: note: expected ‘int (*)(void)’ but argument is of type ‘int (*)(char *, char *, int)’ 241 | int (*fn)(), /* function to perform */ | ~~~~~~^~~~~ lib/misc.c: In function ‘statsafely’: lib/misc.c:1508:28: error: passing argument 2 of ‘doinchild’ from incompatible pointer type [-Wincompatible-pointer-types] 1508 | return (doinchild(ctx, dostat, path, (char *)buf, sizeof(struct stat))); | ^~~~~~ | | | int (*)(char *, char *, int) lib/misc.c:241:28: note: expected ‘int (*)(void)’ but argument is of type ‘int (*)(char *, char *, int)’ 241 | int (*fn)(), /* function to perform */ | ~~~~~~^~~~~
Created attachment 908892 [details] build log sorry, the previously attached log was for another bug.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78143eec123c0601b77631d989eba1ff030322fc commit 78143eec123c0601b77631d989eba1ff030322fc Author: Sam James <sam@gentoo.org> AuthorDate: 2024-11-18 12:28:02 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-18 12:28:12 +0000 sys-process/lsof: add 4.99.4 Closes: https://bugs.gentoo.org/943694 Signed-off-by: Sam James <sam@gentoo.org> sys-process/lsof/Manifest | 1 + sys-process/lsof/lsof-4.99.4.ebuild | 52 +++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+)
*** Bug 943869 has been marked as a duplicate of this bug. ***
*** Bug 944271 has been marked as a duplicate of this bug. ***