clang -DHAVE_CONFIG_H -I. -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -o anacron/runjob.o anacron/runjob.c clang -DHAVE_CONFIG_H -I. -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -o anacron/readtab.o anacron/readtab.c clang -DHAVE_CONFIG_H -I. -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -o anacron/log.o anacron/log.c clang -DHAVE_CONFIG_H -I. -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -o src/entry.o src/entry.c src/entry.c:457:17: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_no_multilib-j4-20221108-023017 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-12 * clang/llvm (if any): clang version 15.0.4 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/15 15.0.4 Python 3.10.8 Available Rust versions: [1] rust-bin-1.64.0 * The following VMs are available for generation-2: Available Java Virtual Machines: (none found) The Glorious Glasgow Haskell Compilation System, version 8.10.6 php cli (if any): GNU Make 4.4 HEAD of ::gentoo commit 5c62c228257b375a4680cb55f3573cbf3d80326c Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Tue Nov 8 09:01:56 2022 +0000 2022-11-08 09:01:56 UTC emerge -qpvO sys-process/cronie [ebuild N ] sys-process/cronie-1.6.1-r2 USE="anacron inotify pam (-selinux)"
Created attachment 829047 [details] emerge-info.txt
Created attachment 829049 [details] clang.tar.bz2
Created attachment 829051 [details] emerge-history.txt
Created attachment 829053 [details] environment
Created attachment 829055 [details] etc.portage.tar.bz2
Created attachment 829057 [details] logs.tar.bz2
Created attachment 829059 [details] sys-process:cronie-1.6.1-r2:20221108-095338.log
Created attachment 829061 [details] temp.tar.bz2
Bug is obsolete Cronie-1.6.1-r2 is off the tree, cronie-1.7.2 builds.
Created attachment 908969 [details] cronie-1.7.2 sys-process/cronie-1.7.2 with GCC15 Snapshot 15.0.0_pre20241117 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -O2 -march=native -pipe -flto -c -o src/entry.o src/entry.c src/entry.c: In function ‘load_entry’: src/entry.c:488:18: error: too many arguments to function ‘error_func’ 488 | (*error_func) (ecodes[(int) ecode]); | ~^~~~~~~~~~~~ make[1]: *** [Makefile:747: src/entry.o] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-process/cronie-1.7.2/work/cronie-1.7.2' make[1]: Entering directory '/var/tmp/portage/sys-process/cronie-1.7.2/work/cronie-1.7.2' x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -O2 -march=native -pipe -flto -c -o src/pw_dup.o src/pw_dup.c make[1]: Leaving directory '/var/tmp/portage/sys-process/cronie-1.7.2/work/cronie-1.7.2' make[1]: Entering directory '/var/tmp/portage/sys-process/cronie-1.7.2/work/cronie-1.7.2' x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -O2 -march=native -pipe -flto -c -o src/crontab.o src/crontab.c src/crontab.c: In function ‘check_syntax’: src/crontab.c:1094:54: error: passing argument 2 of ‘load_entry’ from incompatible pointer type [-Wincompatible-pointer-types] 1094 | e = load_entry(crontab_file, check_error, pw, envp); | ^~~~~~~~~~~ | | | void (*)(const char *) In file included from src/crontab.c:61: src/funcs.h:92:37: note: expected ‘void (*)(void)’ but argument is of type ‘void (*)(const char *)’ 92 | entry *load_entry(FILE *, void (*)(), struct passwd *, char **); | ^~~~~~~~~~ make[1]: *** [Makefile:747: src/crontab.o] Error 1
(In reply to NHO from comment #9) > Bug is obsolete > Cronie-1.6.1-r2 is off the tree, cronie-1.7.2 builds. That doesn't mean it's obsolete as toralf was building w/ stricter.
Noted, will fix my test environment. Upstream bug: https://github.com/cronie-crond/cronie/issues/193
https://github.com/cronie-crond/cronie/commit/09c630c654b2aeff06a90a412cce0a60ab4955a4 Upstream fix
*** Bug 944232 has been marked as a duplicate of this bug. ***
*** Bug 943895 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b25f2e9b34509633498ff8b61e00884b64e172c9 commit b25f2e9b34509633498ff8b61e00884b64e172c9 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-11-25 23:27:06 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-25 23:27:34 +0000 sys-process/cronie: fix C23 compat Closes: https://bugs.gentoo.org/880387 Signed-off-by: Sam James <sam@gentoo.org> sys-process/cronie/cronie-1.7.2.ebuild | 4 +++ sys-process/cronie/files/cronie-1.7.2-c23.patch | 42 +++++++++++++++++++++++++ 2 files changed, 46 insertions(+)