简体   繁体   English

freshclam:符号查找错误:freshclam:未定义符号:print_version,版本 FRESHCLAM_PRIVATE

[英]freshclam: symbol lookup error: freshclam: undefined symbol: print_version, version FRESHCLAM_PRIVATE

I was following this guide to install clamav from source on Ubuntu 20.04 LTS and I stopped after getting the following error: freshclam: symbol lookup error: freshclam: undefined symbol: print_version, version FRESHCLAM_PRIVATE .我按照本指南在 Ubuntu 20.04 LTS 上从源代码安装 clamav,但在收到以下错误后我停止了: freshclam: symbol lookup error: freshclam: undefined symbol: print_version, version FRESHCLAM_PRIVATE Here are the commands I issued:以下是我发出的命令:

./configure --enable-check
make -j2
make check
make install
sudo cp /usr/local/etc/freshclam.conf.sample /usr/local/etc/freshclam.conf
sudo nano /usr/local/etc/freshclam.conf

In freshclam.conf, I have just added # before Example to comment it out.在 freshclam.conf 中,我刚刚在 Example 之前添加了 # 以将其注释掉。 Then:然后:

sudo mkdir /usr/local/share/clamav
freshclam
freshclam: symbol lookup error: freshclam: undefined symbol: print_version, version FRESHCLAM_PRIVATE

What does this error mean?这个错误是什么意思?

Here are the outputs of./configure --enable-check and make check:以下是 ./configure --enable-check 和 make check 的输出:

./configure --enable-check

configure: Summary of detected features follows
              OS          : linux-gnu
              pthreads    : yes (-lpthread)
configure: Summary of miscellaneous features
              check       : -lcheck_pic -pthread -lrt -lm -lsubunit
              fanotify    : yes
              fdpassing   : 1
              IPv6        : yes
              openssl     : /usr
              libcurl     : /usr
configure: Summary of optional tools
              clamdtop    : yes (-Wl,-Bsymbolic-functions -lncurses -ltinfo)
              milter      : no (missing libmilter) (disabled)
              clamsubmit  : yes (libjson-c-dev found at /usr, linking=dynamic)
              clamonacc   : yes (auto)
configure: Summary of engine performance features
              release mode: yes
              llvm        : no (disabled)
              mempool     : yes
configure: Summary of engine detection features
              iconv       : yes
              bzip2       : ok
              zlib        : yes (from system)
              unrar       : yes
              preclass    : yes (libjson-c-dev found at /usr, linking=dynamic)
              pcre        : /usr
              libmspack   : yes (Internal)
              libxml2     : yes, from /usr
              yara        : yes
              fts         : yes (libc)

configure: WARNING:
****** libjson-c is known to share symbol names with other JSON libraries
****** which may result in crashes for applications that use libclamav.
****** Consider using --with-libjson-static=path/to/libjson-c.a,
****** providing a json-c library that was compiled with CFLAGS="-fPIC".


make check
PASS: check_clamav
PASS: check_freshclam.sh
PASS: check_sigtool.sh
SKIP: check_unit_vg.sh
PASS: check1_clamscan.sh
PASS: check2_clamd.sh
PASS: check3_clamd.sh
PASS: check4_clamd.sh
SKIP: check5_clamd_vg.sh
SKIP: check6_clamd_vg.sh
SKIP: check7_clamd_hg.sh
SKIP: check8_clamd_hg.sh
SKIP: check9_clamscan_vg.sh
============================================================================
Testsuite summary for ClamAV 0.103.0
============================================================================
# TOTAL: 13
# PASS:  7
# SKIP:  6
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0

PS This is not the first time I try to install clamav on this computer. PS 这不是我第一次尝试在此计算机上安装 clamav。 I didn't have this error the first time, but then I removed some files manually after doing sudo make uninstall to completely remove clamav files and start installation from scratch.我第一次没有这个错误,但后来我在执行sudo make uninstall以完全删除 clamav 文件并从头开始安装后手动删除了一些文件。 I also removed clamav user and group, and now they don't seem to be created automatically again, I wonder why.我还删除了 clamav 用户和组,现在它们似乎不再自动创建,我想知道为什么。

I was able to solve this particular error by running ldconfig as root.我能够通过以 root 身份运行ldconfig来解决这个特定错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM