Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
deanguenther opened this issue Aug 23, 2022 · 7 comments
Open

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

deanguenther opened this issue Aug 23, 2022 · 7 comments
Labels

Comments

@deanguenther
Copy link

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
Copy link

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

@deanguenther
Copy link
Author

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

@shawniverson
Copy link
Member

@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
Copy link
Author

@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
Copy link
Member

just that module

@deanguenther
Copy link
Author

Thanks for your help @shawniverson I appreciate the help

@deanguenther
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants