From ebuild: $(use_with metadata-analysis-api libjson /usr) It generage ./configure --with-libjson=/usr Configure script broken when with-libclamav/with-libcurl used. Upstream fixed issue. Patch can be found in upstream bug. URL provided. PS. Also ebuild have option --disable-gcc-vcheck With this option configure breaks optimization and binary compiles with -O0 Example: configure: WARNING: ****** Optimizations disabled to avoid compiler bugs ****** The resulting binaries will be slow! ****** It is recommended to either upgrade or downgrade your compiler /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libclammspack -DLT_CONFIG_H='<clamav-config.h>' -DLTDL -I. -I. -Ilibltdl -I./libltdl -O2 -march=native -fexcess-precision=fast -pipe -O0 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o dlopen.lo `test -f 'loaders/dlopen.c' || echo './'`loaders/dlopen.c
Issue fixed in clamav-0.101.1 https://blog.clamav.net/2019/01/clamav-01011-patch-has-been-released.html But ebuild with --disable-gcc-vcheck still produced nonoptimized (-O0) binaries.
can you please let me know if the latest versions still work ok? it works fine here.
(In reply to Thomas Raschbacher from comment #2) > can you please let me know if the latest versions still work ok? it works > fine here. 1. Issue with libjson/libcurl was resolved in 0.100.1, see See Also URL. 2. 0.100.4 still use --disable-gcc-vcheck in ebuild and makes slow -O0 binary