Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913368 - sys-apps/coreutils-9.4 fails to compile (GLIBC-2.38-SYSTEM): md5.h:36:12: fatal error: configuration.h: No such file or directory
Summary: sys-apps/coreutils-9.4 fails to compile (GLIBC-2.38-SYSTEM): md5.h:36:12: fat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 913411 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-08-31 07:50 UTC by Agostino Sarubbo
Modified: 2023-09-01 14:05 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,259.00 KB, text/plain)
2023-08-31 07:50 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-08-31 07:50:18 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-apps/coreutils-9.4 fails to compile (GLIBC-2.38-SYSTEM).
Discovered on: amd64 (internal ref: glibc2.38_tinderbox)

NOTE:
(GLIBC-2.38-SYSTEM) in the summary means that the bug was found on a machine that runs glibc-2.38 but this bug MAY or MAY NOT BE related to the new libc version
Comment 1 Agostino Sarubbo gentoo-dev 2023-08-31 07:50:20 UTC
Created attachment 869081 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-08-31 07:50:21 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


./lib/md5.h:36:12: fatal error: openssl/configuration.h: No such file or directory
./lib/md5.h:36:12: fatal error: openssl/configuration.h: No such file or directory
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-31 07:54:10 UTC
I imagine this is an openssl 1.1.x vs openssl-3 thing.

Probably introduced by https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=a436f5f498d7e747864d40d4450fa8330dd44d12.
Comment 4 hangglider 2023-08-31 12:08:10 UTC
dev-libs/openssl-1.1* doesn't have configuration.h, it's introduced later (dev-libs/openssl-3.1.2 has, just quick checked). So sys-apps/coreutils should probably depend on dev-libs/openssl-3 instead of just dev-libs/openssl.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-01 08:21:52 UTC
(In reply to hangglider from comment #4)
> dev-libs/openssl-1.1* doesn't have configuration.h, it's introduced later
> (dev-libs/openssl-3.1.2 has, just quick checked). So sys-apps/coreutils
> should probably depend on dev-libs/openssl-3 instead of just
> dev-libs/openssl.

That's more of a workaround than a fix. Reported upstream at https://debbugs.gnu.org/65674.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-01 13:57:41 UTC
*** Bug 913411 has been marked as a duplicate of this bug. ***
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-01 13:57:52 UTC
I'll backport the patch in a minute.
Comment 8 Larry the Git Cow gentoo-dev 2023-09-01 14:05:09 UTC
The bug has been closed via the following commit(s):

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

commit a3a11cfe962d506e6e6e5c96cdab2376c8167110
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-01 14:00:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-01 14:04:53 +0000

    sys-apps/coreutils: fix build w/ <openssl-3
    
    Closes: https://bugs.gentoo.org/913368
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/coreutils/coreutils-9.4.ebuild            |   1 +
 .../files/coreutils-9.4-gnulib-openssl-1.1.patch   | 165 +++++++++++++++++++++
 2 files changed, 166 insertions(+)