Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880519 - net-misc/chrony-4.3 - getdate.y: error: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter Prototype in C2x, conflicting with a previous declaration
Summary: net-misc/chrony-4.3 - getdate.y: error: a function declaration without a prot...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2022-11-08 21:10 UTC by Toralf Förster
Modified: 2022-11-10 07:13 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.72 KB, text/plain)
2022-11-08 21:10 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,105.99 KB, text/plain)
2022-11-08 21:10 UTC, Toralf Förster
Details
environment (environment,81.88 KB, text/plain)
2022-11-08 21:10 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,739 bytes, application/x-bzip)
2022-11-08 21:10 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,25.93 KB, application/x-bzip)
2022-11-08 21:10 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,2.25 KB, application/x-bzip)
2022-11-08 21:10 UTC, Toralf Förster
Details
net-misc:chrony-4.3:20221108-210848.log (net-misc:chrony-4.3:20221108-210848.log,7.24 KB, text/plain)
2022-11-08 21:10 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,25.23 KB, application/x-bzip)
2022-11-08 21:10 UTC, Toralf Förster
Details
var.tmp.clang.tar.bz2 (var.tmp.clang.tar.bz2,852 bytes, application/x-bzip)
2022-11-08 21:10 UTC, Toralf Förster
Details
Fixes for errors/warnings with clang-16 (4.3-prototypes.patch,1.42 KB, patch)
2022-11-08 22:13 UTC, Holger Hoffstätte
Details | Diff

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 21:10:19 UTC
clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wmissing-prototypes -Wall -pthread  -c getdate.c
clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wmissing-prototypes -Wall -pthread  -c util.c
clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wmissing-prototypes -Wall -pthread  -c client.c
clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wmissing-prototypes -Wall -pthread  -c cmdparse.c
getdate.y:451:19: error: a function declaration without a prototype is
      deprecated in all versions of C and is treated as a zero-parameter
      prototype in C2x, conflicting with a previous declaration

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-j4-20221108-023017

  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
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:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.6
php cli (if any):

  HEAD of ::gentoo
commit 01bcecb6150e3df576568f2050291d4e5bf3e344
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Nov 8 20:16:54 2022 +0000

    2022-11-08 20:16:54 UTC

emerge -qpvO net-misc/chrony
[ebuild  N    ] net-misc/chrony-4.3  USE="caps cmdmon ipv6 nettle ntp nts phc refclock rtc seccomp sechash -debug -html -libedit -libtomcrypt -nss -pps -samba (-selinux) -verify-sig"
Comment 1 Toralf Förster gentoo-dev 2022-11-08 21:10:20 UTC
Created attachment 829779 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-08 21:10:22 UTC
Created attachment 829781 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-11-08 21:10:23 UTC
Created attachment 829783 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-11-08 21:10:24 UTC
Created attachment 829785 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-11-08 21:10:25 UTC
Created attachment 829787 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-08 21:10:26 UTC
Created attachment 829789 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-08 21:10:28 UTC
Created attachment 829791 [details]
net-misc:chrony-4.3:20221108-210848.log
Comment 8 Toralf Förster gentoo-dev 2022-11-08 21:10:29 UTC
Created attachment 829793 [details]
temp.tar.bz2
Comment 9 Toralf Förster gentoo-dev 2022-11-08 21:10:30 UTC
Created attachment 829795 [details]
var.tmp.clang.tar.bz2
Comment 10 Holger Hoffstätte 2022-11-08 22:03:33 UTC
I've made a patch and will send it upstream.
Comment 11 Holger Hoffstätte 2022-11-08 22:13:21 UTC
Created attachment 829931 [details, diff]
Fixes for errors/warnings with clang-16

Submitted as:
https://www.mail-archive.com/chrony-dev@chrony.tuxfamily.org/msg02507.html
Comment 12 Holger Hoffstätte 2022-11-09 09:43:27 UTC
My patch has been applied upstream:
https://git.tuxfamily.org/chrony/chrony.git/commit/?id=7b97668319f9449b4adb1a978bb1fe9b0fb22e4d
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-10 07:02:47 UTC
(In reply to Holger Hoffstätte from comment #12)
> My patch has been applied upstream:
> https://git.tuxfamily.org/chrony/chrony.git/commit/
> ?id=7b97668319f9449b4adb1a978bb1fe9b0fb22e4d

Many thanks!
Comment 14 Larry the Git Cow gentoo-dev 2022-11-10 07:13:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b8a644606babdb63998693ece2f3a9d5a8e9e6e

commit 5b8a644606babdb63998693ece2f3a9d5a8e9e6e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-11-10 07:02:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-10 07:02:31 +0000

    net-misc/chrony: fix -Wstrict-prototypes
    
    Closes: https://bugs.gentoo.org/880519
    Thanks-to: Holger Hoffstätte <holger@applied-asynchrony.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/chrony/chrony-4.3-r1.ebuild               | 254 +++++++++++++++++++++
 .../chrony-4.3-strict-prototypes-clang16.patch     |  71 ++++++
 2 files changed, 325 insertions(+)