Mail::ClamAV .30 does not build as part of MailScanner 5.4.4
deanguenther opened this issue · 7 comments
When I attempt to install MailScanner 5.4.4 it wants to install Mail::ClamAV. I have clamav .105 installed but there still seems to be an error. Is this a problem with Mail::ClamAV specifically? Or did MailScanner 5.4.4 need to install another prerequisite?
I'm on Ubuntu 20.04.
I have installed clamav .105.1 from source.
I emailed the person I think is the Mail::ClamAV developer.
When I install MailScanner 5.4.4 it tries to i nstall Mail::ClamAV.30.
There are a number of warnings concerning type mismatches. But these just
appear to be warnings.
The first actual error is
ClamAV.xs:219:14: error: too few arguments to function 'cl_scandesc'^M
219 | status = cl_scandesc(fd, &virname, &scanned, c->root, options);^M
| ^~~~~~~~~~~^M
In file included from ClamAV.xs:11:^M
After that the next error is the use of an undeclared first use of twenty
different functions. The first is:
ClamAV.xs:352:44: error: 'CL_SCAN_RAW' undeclared (first use in this
function)
In the ClamAV .30 INSTALL for dependencies it says to insure that
Inline::C and
Parse::RecDescent were installed, and they are installed before trying to
install Mail::ClamAV. I have done those two.
Are there some additional prerequisites I'm missing?
Any help appreciated.
thanks - Dean Guenther
Thank you for submitting your first issue to MailScanner! We will respond to you soon!
I did a /usr/sbin/ms-perl-check and the only module not installed properly is Mail::ClamAV.
All the others appear to be installed correctly including the SpamAssassin group.
- Dean Guenther
@deanguenther This module does not work with newer version of clamav and isn't needed. The clamavmodule method has been removed in favor of clamd. I probably need to drop that module entirely at this point.
@shawniverson When I run the MailScanner 5.4.4 install.sh and it ends with the Mail::ClamAV error, does that mean the remaining install itself has failed? Or just that module. Or, is there a way to send a parm to install.sh and tell it to not attempt to install Mail::ClamAV?
thanks - Dean Guenther
just that module
Thanks for your help @shawniverson I appreciate the help
Hi @shawniverson
At the end of the mailscanner 5.4.4 install it does
echo "Installing the MailScanner files ... ";
and gives an error
cp: cannot stat './var': No such file or directory
I presume its from the command
cp -fr ./var /
But there is no var directory in the build. Perhaps just another thing to clean up when removing the requested build
for Mail::ClamAV?
@deanguenther