Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880387 - sys-process/cronie-1.6.1-r2 - src/entry.c: error: passing arguments to a function without a prototype
Summary: sys-process/cronie-1.6.1-r2 - src/entry.c: error: passing arguments to a func...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 943895 944232 (view as bug list)
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2022-11-08 10:24 UTC by Toralf Förster
Modified: 2024-11-25 23:28 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.20 KB, text/plain)
2022-11-08 10:24 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,1.80 KB, application/x-bzip)
2022-11-08 10:24 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,34.41 KB, text/plain)
2022-11-08 10:24 UTC, Toralf Förster
Details
environment (environment,108.47 KB, text/plain)
2022-11-08 10:24 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,22.69 KB, application/x-bzip)
2022-11-08 10:24 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,12.31 KB, application/x-bzip)
2022-11-08 10:24 UTC, Toralf Förster
Details
sys-process:cronie-1.6.1-r2:20221108-095338.log (sys-process:cronie-1.6.1-r2:20221108-095338.log,9.04 KB, text/plain)
2022-11-08 10:24 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,30.37 KB, application/x-bzip)
2022-11-08 10:24 UTC, Toralf Förster
Details
cronie-1.7.2 (cronie-1.7.2.build.log,13.79 KB, text/x-log)
2024-11-18 11:48 UTC, immolo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-11-08 10:24:42 UTC
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)"
Comment 1 Toralf Förster gentoo-dev 2022-11-08 10:24:43 UTC
Created attachment 829047 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-08 10:24:44 UTC
Created attachment 829049 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-11-08 10:24:45 UTC
Created attachment 829051 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-11-08 10:24:47 UTC
Created attachment 829053 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-11-08 10:24:48 UTC
Created attachment 829055 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-08 10:24:49 UTC
Created attachment 829057 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-08 10:24:50 UTC
Created attachment 829059 [details]
sys-process:cronie-1.6.1-r2:20221108-095338.log
Comment 8 Toralf Förster gentoo-dev 2022-11-08 10:24:51 UTC
Created attachment 829061 [details]
temp.tar.bz2
Comment 9 NHO 2024-11-17 17:13:02 UTC
Bug is obsolete
Cronie-1.6.1-r2 is off the tree, cronie-1.7.2 builds.
Comment 10 immolo 2024-11-18 11:48:41 UTC
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
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-18 11:53:24 UTC
(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.
Comment 12 NHO 2024-11-18 16:23:54 UTC
Noted, will fix my test environment.
Upstream bug: https://github.com/cronie-crond/cronie/issues/193
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-25 21:57:07 UTC
*** Bug 944232 has been marked as a duplicate of this bug. ***
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-25 21:57:19 UTC
*** Bug 943895 has been marked as a duplicate of this bug. ***
Comment 16 Larry the Git Cow gentoo-dev 2024-11-25 23:28:01 UTC
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(+)