View Issue Details

IDProjectCategoryView StatusLast Update
0018212CentOS-8cmakepublic2021-06-08 08:33
Reporterolupton Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version8.3.2011 
Summary0018212: cmake: undefined symbol: archive_write_add_filter_zstd
DescriptionTrying to execute CMake gives the error:

cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd

Using the centos:8 Docker image as of this morning. This showed up in a nightly CI job whose configuration has not changed.
Steps To Reproduce% docker run -it centos:8
Unable to find image 'centos:8' locally
8: Pulling from library/centos
7a0437f04f83: Pull complete
Digest: sha256:5528e8b1b1719d34604c87e11dcd1c0a20bedf46e83b5632cdeac91b8c04efc1
Status: Downloaded newer image for centos:8
[root@7711c31dd8f9 /]# yum install -y cmake
...
Installed:
  cmake-3.18.2-9.el8.x86_64 cmake-data-3.18.2-9.el8.noarch cmake-filesystem-3.18.2-9.el8.x86_64 cmake-rpm-macros-3.18.2-9.el8.noarch emacs-filesystem-1:26.1-5.el8.noarch
  libuv-1:1.40.0-1.el8.x86_64 vim-filesystem-2:8.0.1763-15.el8.noarch

Complete!
[root@7711c31dd8f9 /]# cmake
cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd
[root@7711c31dd8f9 /]# cat /etc/redhat-release
CentOS Linux release 8.3.2011
TagsNo tags attached.

Activities

fightinggg

fightinggg

2021-06-04 17:36

reporter   ~0038473

hahaha
the same with you
how to deal with it ?


```shell
Sending build context to Docker daemon 2.353MB
Step 1/11 : FROM centos:8
 ---> 300e315adb2f
Step 2/11 : RUN yum install cmake make gcc-c++ -y
 ---> Using cache
 ---> 43f7114bdbf3
Step 3/11 : COPY . /app
 ---> 942b753457d1
Step 4/11 : WORKDIR /app
 ---> Running in e4742b17e821
Removing intermediate container e4742b17e821
 ---> c1696c37553f
Step 5/11 : RUN cmake .
 ---> Running in 2e3026c803f3
cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd
```
huangjun

huangjun

2021-06-05 02:43

reporter   ~0038474

As https://github.com/ComplianceAsCode/content/issues/7016 tested, upgrade to libarchive-3.3.3-1.el8.x86_64 will resolve this problem.
olupton

olupton

2021-06-08 08:33

reporter   ~0038479

I confirm that running `dnf update` inside the Docker image before installing CMake was sufficient to avoid the error.

Issue History

Date Modified Username Field Change
2021-06-04 07:23 olupton New Issue
2021-06-04 17:36 fightinggg Note Added: 0038473
2021-06-05 02:43 huangjun Note Added: 0038474
2021-06-08 08:33 olupton Note Added: 0038479