Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900382 - sys-apps/sed-4.9 has implicit function declarations in configure logs (CLANG-17-SYSTEM)
Summary: sys-apps/sed-4.9 has implicit function declarations in configure logs (CLANG-...
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: fixed in 4.9-r1
Keywords:
Depends on:
Blocks: implicit-in-configure
  Show dependency tree
 
Reported: 2023-03-08 14:05 UTC by Agostino Sarubbo
Modified: 2024-11-03 16:59 UTC (History)
0 users

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


Attachments
build.log (build.log,181.61 KB, text/plain)
2023-03-08 14:05 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-03-08 14:05:08 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-apps/sed-4.9 has implicit function declarations in configure logs (CLANG-17-SYSTEM).
Discovered on: amd64 (internal ref: hardened_tinderbox)

NOTE:
(CLANG-17-SYSTEM) in the summary means that the bug was found on a machine that runs clang-17 but this bug MAY or MAY NOT BE related to the new compiler
See also: https://bugs.gentoo.org/898488#c4.
Comment 1 Agostino Sarubbo gentoo-dev 2023-03-08 14:05:11 UTC
Created attachment 856818 [details]
build.log

build log and emerge --info
Comment 2 connor-gh 2023-11-23 06:54:49 UTC
The functions in question are alignof (_Alignof), MIN (macro), and free is attempting to be used without a prototype (!!!). The latter - the only actual issue - can be solved by adding #include <stdlib.h> to the file or by including the prototype, but that isn't our job.
Comment 3 connor-gh 2023-11-23 06:55:16 UTC
It's also relatively clear that if a system has malloc(), *very rarely* will it not have free().
Comment 4 Eli Schwartz gentoo-dev 2023-11-23 07:54:53 UTC
All the instances of `free` are caused by autoconf builtin logic, and is fixed by adding `eautoreconf` to src_prepare. The other solution is waiting for upstream to release a new dist tarball.
Comment 5 Larry the Git Cow gentoo-dev 2024-05-19 16:02:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93f46f4f8dfd02fc6bc515d6f8293a65dccfa154

commit 93f46f4f8dfd02fc6bc515d6f8293a65dccfa154
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-05-17 06:05:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-19 16:01:43 +0000

    sys-apps/sed: regenerate autoconf to get a Modern C fix in
    
    There are also some suppressions that are going to be added to portage
    itself for gnulib checks that are *expected* to fail. Backported to
    sys-apps/portage.
    
    [sam: Revbump.]
    
    Closes: https://bugs.gentoo.org/900382
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/sed/{sed-4.9.ebuild => sed-4.9-r1.ebuild} | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)