NVIDIA / enroot

A simple yet powerful tool to turn traditional container/OS images into unprivileged sandboxes.
Apache License 2.0
648 stars 94 forks source link

MD5 functions not found in libc or libmd when building from source #149

Closed SolidTux closed 1 year ago

SolidTux commented 1 year ago

I'm trying to build the latest version (e4a5445) under Debian. enroot-check runs sucessfully (see below) and all required packages are installed. But when trying to run make, I get the following error (the full log is attached).

make

checking for library containing MD5Update... no
configure: error: cannot find required MD5 functions in libc or libmd

enroot-check --verify

Kernel version:

Linux version 5.10.0-20-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.158-2 (2022-12-13)

Kernel configuration:

CONFIG_NAMESPACES                 : OK
CONFIG_USER_NS                    : OK
CONFIG_SECCOMP_FILTER             : OK
CONFIG_OVERLAY_FS                 : OK (module)
CONFIG_X86_VSYSCALL_EMULATION     : OK
CONFIG_VSYSCALL_EMULATE           : KO (required if glibc <= 2.13)
CONFIG_VSYSCALL_NATIVE            : KO (required if glibc <= 2.13)

Kernel command line:

vsyscall=native                   : KO (required if glibc <= 2.13)
vsyscall=emulate                  : KO (required if glibc <= 2.13)

Kernel parameters:

kernel.unprivileged_userns_clone  : OK
user.max_user_namespaces          : OK
user.max_mnt_namespaces           : OK

Extra packages:

nvidia-container-cli              : KO (required for GPU support)
SolidTux commented 1 year ago

Bisecting it leads to 1a9c5e3

1a9c5e3db8d06c094a469b68da1432d9de3e8c1e is the first bad commit
commit 1a9c5e3db8d06c094a469b68da1432d9de3e8c1e
Author: Jonathan Calmels <jcalmels@nvidia.com>
Date:   Wed Feb 1 16:00:33 2023 -0800

    Update dependencies

 .gitmodules        |  2 +-
 deps/Makefile      | 17 ++++++++++++-----
 deps/libbsd        |  2 +-
 deps/linux-headers |  2 +-
 deps/makeself      |  2 +-
 deps/musl          |  2 +-
flx42 commented 1 year ago

I had the same problem and I did apt-get install libmd-dev, I think we need to document this new build-time dependency @3XX0