Date: Wed, 14 Dec 2022 21:13:10 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 268069] security/clamav: 1.0.0 does no work with cld and cvd files Message-ID: <bug-268069-7788-fLETpd27iF@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-268069-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-268069-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268069 fsbruva@yahoo.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #238736|0 |1 is obsolete| | --- Comment #28 from fsbruva@yahoo.com --- Created attachment 238795 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D238795&action= =3Dedit clamav: patch to avoid math/tomsfastmath incompatibility (In reply to Yasuhiro Kimura from comment #24) It is related to the header search location used by CMake when it detects security/openssl is installed. My previous patch was an error. I confirmed this a few ways. First method, I re-tried my submitted patch by itself, and it failed to fix= the error. I hadn't tested it alone - I had tested it with a few other CMake fl= ags, and obviously wasn't fully keeping track of which flag fixed it. Adding this (by itself), clamav builds correctly, but fails to start: -DCMAKE_IGNORE_PATH=3D"/usr/local/include/tfm.h;/usr/local/lib/libtfm.a" Second method, I reverted the clamav Makefile, then developed a series of p= ort patches that removed references to tfm.h and TOMSFASTMATH from clamav/bignu= m.h and clamav-config.cmake.in. Resulting clamav 1.0.0 builds successfully, but still errors out. Third method, I removed the patches that modified the clamav source code. I then moved the math/tomsfastmath header (tfm.h) out of /usr/local/include. Resulting clamav 1.0.0 builds and starts successfully. Fourth test, I re-installed the math/tomsfastmath header, and remove the math/tomsfastmath library from /usr/local/lib (libftm.a). Resulting clamav 1.0.0 builds successfully, but fails to start. Fifth method, I re-installed the math/tomsfastmath library, and then added = the following to the clamav Makefile: -DOPENSSL_INCLUDE_DIR=3D"/usr/local/include/openssl" Resulting clamav 1.0.0 builds successfully and starts successfully. My latest theory is the error is induced by CMake, when attempting to compi= le the bundled tomsfastmath in clamav, when security/openssl and math/tomsfast= math are both installed, because CMake adds this to the compile flags for the detected security/openssl:=20 -I/usr/local/include.=20 I cannot find a way to tell CMake to exclude the specific tfm.h header file that is confusing it. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268069-7788-fLETpd27iF>