Summary: | dev-libs/libevent-2.1.12 - /.../strlcpy.c: error: a function definition without a prototype is deprecated in all versions of C and | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Michał Górny <mgorny> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | orbea |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/30840 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 880545 | ||
Attachments: |
emerge-info.txt
clang.tar.bz2 dev-libs:libevent-2.1.12:20221108-093257.log emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 temp.tar.bz2 |
Description
Toralf Förster
2022-11-08 10:24:05 UTC
Created attachment 829003 [details]
emerge-info.txt
Created attachment 829005 [details]
clang.tar.bz2
Created attachment 829007 [details]
dev-libs:libevent-2.1.12:20221108-093257.log
Created attachment 829009 [details]
emerge-history.txt
Created attachment 829011 [details]
environment
Created attachment 829013 [details]
etc.portage.tar.bz2
Created attachment 829015 [details]
logs.tar.bz2
Created attachment 829017 [details]
temp.tar.bz2
orbea: ? @ Sam This is a strict-prototypes issue on clang + glibc systems, seems on my musl system the problematic code is never compiled. Check out the fix. https://github.com/libevent/libevent/commit/35375101e741d78bf49642c6929c1eb69a7c3d79 (In reply to orbea from comment #10) > @ Sam This is a strict-prototypes issue on clang + glibc systems, seems on > my musl system the problematic code is never compiled. > > Check out the fix. > > https://github.com/libevent/libevent/commit/ > 35375101e741d78bf49642c6929c1eb69a7c3d79 That means it's a C23 issue, it only becomes an error if a project build with -Werror? Perhaps I was confused which was which... It doesn't error with gcc even with -Werror, but will fail with clang-16 even without -Werror when clang-common has USE=stricter. (In reply to orbea from comment #12) > Perhaps I was confused which was which... > > It doesn't error with gcc even with -Werror, but will fail with clang-16 > even without -Werror when clang-common has USE=stricter. Yeah, USE=stricter on >= clang-16 is *stricter* than the clang-16 default, so it enforces -Werror for stuff like this. Thank you for catching my mistake. They still matter though of course, just wanted to make sure I wasn't missing something! The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae11d4beef4f60804707d74f07e0c25fe6c59b5b commit ae11d4beef4f60804707d74f07e0c25fe6c59b5b Author: orbea <orbea@riseup.net> AuthorDate: 2023-05-02 17:14:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-05-02 20:47:07 +0000 dev-libs/libevent: fix the build with clang-16 Closes: https://bugs.gentoo.org/880381 Upstream-Commit: https://github.com/libevent/libevent/commit/35375101e741d78bf49642c6929c1eb69a7c3d79 Signed-off-by: orbea <orbea@riseup.net> Closes: https://github.com/gentoo/gentoo/pull/30840 Signed-off-by: Sam James <sam@gentoo.org> .../libevent/files/libevent-2.1.12-clang16.patch | 105 +++++++++++++++++++++ dev-libs/libevent/libevent-2.1.12-r1.ebuild | 1 + 2 files changed, 106 insertions(+) |