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

MS Windows clamav-0.104.1.win.x64.msi broke freshclam.exe and clamscan.exe - .dll errors #371

Closed
caganer opened this issue Nov 11, 2021 · 4 comments

Comments

@caganer
Copy link

caganer commented Nov 11, 2021

(A) After noting the message in log output of freshclam.exe I upgraded from preceding version of ClamAV to clamav-0.104.1.win.x64.msi on Windows 7 Professional SP1 which has broken at least freshclam.exe and clamscan.exe

Error message splash screen on running freshclam.exe:
"The procedure entry point cli_strdup could not be located in the dynamic link library libclamav.dll."

This occurs both where (i) the msi installation is run without following the steps (formerly) at
https://www.clamav.net/documents/installing-clamav-on-windows [ie settings made using Powershell - see below *]
and
(ii) after doing the settings procedure in powershell as described above AND after rebooting.

(B) Likewise after the aforesaid steps, running clamscan.exe results in error screen:
"The procedure entry point cli_sigperf_print could not be located in the dynamic link library libclamav.dll."

[*] I note the above Windows installation guide now appears to be at:
https://docs.clamav.net/manual/Usage/Configuration.html#windows

@micahsnyder
Copy link
Contributor

micahsnyder commented Nov 16, 2021

Can you confirm that you fully removed the old version before installing 0.104.1? The error you're describing sounds to me like you may have an older clamav DLL being used by the newer freshclam.exe (or maybe the other way around).

(I don't know why you'd have a mix of two versions if you didn't remove the old version first, but it's possible that's the problem)

@markpizz
Copy link
Contributor

I'm not using the .msi installer, however a more robust Windows installer would detect the prior installation and usually prompt about removing it or just remove it automatically before installing the newer version.

I use the .zip file and had no problems dumping the contained .dlls and .exe on top of the prior versions after stopping the running freshclam and clamd processes.

@caganer
Copy link
Author

caganer commented Nov 18, 2021 via email

@micahsnyder
Copy link
Contributor

I'm not using the .msi installer, however a more robust Windows installer would detect the prior installation and usually prompt about removing it or just remove it automatically before installing the newer version.

I use the .zip file and had no problems dumping the contained .dlls and .exe on top of the prior versions after stopping the running freshclam and clamd processes.

The tooling we use to make ClamAV's installer has some features to make upgrades smoother, but only in 0.104.0+ and it may not be configured correctly. It's newer and we haven't done a lot of testing to make sure it's all set correctly.

@caganer I'm glad to see that you resolved it in the end. I did try testing the clamav-0.104.1.win.x64.msi installer on a windows 7 x64 Enterprise SP1 VM that's mostly clean. I uninstalled previously installed VC runtime packages to make sure that the clamav installer provides all the required DLL's. It worked okay for me. Both clamscan and freshclam ran as expected.

I'm not sure how your install got into a bad state, but glad to know you have a working install now.

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

No branches or pull requests

3 participants