Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672898 - app-antivirus/clamav-0.101.0 wrong check libjson/libcurl on configure stage. Can't install clamsubmit
Summary: app-antivirus/clamav-0.101.0 wrong check libjson/libcurl on configure stage. ...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-12-10 20:47 UTC by Maxim Britov
Modified: 2019-08-22 04:27 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Britov 2018-12-10 20:47:11 UTC
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
Comment 1 Maxim Britov 2019-01-07 20:13:19 UTC
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.
Comment 2 Thomas Raschbacher gentoo-dev 2019-08-21 20:09:26 UTC
can you please let me know if the latest versions still work ok? it works fine here.
Comment 3 Maxim Britov 2019-08-22 04:27:53 UTC
(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