MailScanner / v5

MailScanner v5
GNU General Public License v2.0
187 stars 60 forks source link

Mail::ClamAV .30 does not build as part of MailScanner 5.4.4 #606

Open deanguenther opened 2 years ago

deanguenther commented 2 years ago

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

github-actions[bot] commented 2 years ago

Thank you for submitting your first issue to MailScanner! We will respond to you soon!

deanguenther commented 2 years ago

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.

shawniverson commented 2 years ago

@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.

deanguenther commented 2 years ago

@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

shawniverson commented 2 years ago

just that module

deanguenther commented 2 years ago

Thanks for your help @shawniverson I appreciate the help

deanguenther commented 2 years ago

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