Jump to content

Compiling Clamav Library


flaviu2

Recommended Posts

Hi all of you. I am struggling for days to compile clamav library, with no success. Could you provide me the clamav library in order to use it in a simple test application ?

 

I have tried to compile the clamav library, and I respected whole steps, versions, etc.

 

The source code I have taken from here: https://github.com/vrtadmin/clamav-devel

 

The instructions I have taken from here; http://blog.clamav.net/2014/07/compiling-openssl-for-windows.html

 

I have compiled the library on Win10, with VS2017, and I get following errors:

1>d:\tempx\clamav-devel-master\libclamav\libmspack.c(12): fatal error C1083: Cannot open include file: 'mspack.h': No such file or directory
1>Done building project "libclamav.vcxproj" -- FAILED.

2>"D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib"
3>LINK : fatal error LNK1104: cannot open file 'D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib'
3>Done building project "clamscan.vcxproj" -- FAILED.

5>LINK : fatal error LNK1104: cannot open file 'D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib'

4>"D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib"
5>Done building project "clamdscan.vcxproj" -- FAILED.
6>------ Build started: Project: clamd, Configuration: Debug Win32 ------
4>LINK : fatal error LNK1104: cannot open file 'libcrypto.lib'
4>Done building project "freshclam.vcxproj" -- FAILED.
7>------ Build started: Project: clamconf, Configuration: Debug Win32 ------
6>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\link.exe /ERRORREPORT:PROMPT /OUT:"D:\Tempx\clamav-devel-master\win32\Win32\Debug\clamd.exe" /INCREMENTAL /NOLOGO /LIBPATH:C:\clamdeps\win32\openssl\lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG:FASTLINK /PDB:"D:\Tempx\clamav-devel-master\win32\Win32\Debug\clamd.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:\Tempx\clamav-devel-master\win32\Win32\Debug\clamd.lib" /MACHINE:X86 "D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\clamd.res"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\onaccess_fan.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\clamd.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\localserver.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\others.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\scanner.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\server-th.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\session.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\tcpserver.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\thrmgr.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\idmef_logging.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\misc.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\output.obj"
6>"D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib"
6>LINK : fatal error LNK1104: cannot open file 'D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib'
6>Done building project "clamd.vcxproj" -- FAILED.
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\link.exe /ERRORREPORT:PROMPT /OUT:"D:\Tempx\clamav-devel-master\win32\Win32\Debug\clamconf.exe" /INCREMENTAL /NOLOGO /LIBPATH:C:\clamdeps\win32\openssl\lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG:FASTLINK /PDB:"D:\Tempx\clamav-devel-master\win32\Win32\Debug\clamconf.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:\Tempx\clamav-devel-master\win32\Win32\Debug\clamconf.lib" /MACHINE:X86 "D:\Tempx\clamav-devel-master\win32\build\Win32\clamconf\Debug\clamconf.res"
7>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamconf\Debug\clamconf.obj"
7>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamconf\Debug\misc.obj"
7>"D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib"
7>LINK : fatal error LNK1104: cannot open file 'D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib'
7>Done building project "clamconf.vcxproj" -- FAILED.

8>"D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib"
8>LINK : fatal error LNK1104: cannot open file 'D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib'
8>Done building project "clambc.vcxproj" -- FAILED.

Could you provide me the clamav library in order to use in a test app, just like in the test example ? Thank you for any support/hint !

 

Link to comment
Share on other sites

  • 2 weeks later...

Since ClamAV is open-sourced you can subscribe, via email, to receive the latest ClamAV virus database signature announcements at this link. http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-virusdb
 

By further reviewing your first thread I would have to concur with the ClamAV team, since you got so many error messages, that maybe a preexisting malware infection is present on your system. Sorry for not immediately picking up on that myself.

Many forms of malware will not allow you to update your AV solution, or worse yet, completely disable your AV in a worse case scenario.

 

Regards, Ritchie...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...