Jump to content


Photo

Compiling Clamav Library

clamav library

  • Please log in to reply
4 replies to this topic

#1 flaviu2

flaviu2

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 11 May 2017 - 07:08 AM

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/v...in/clamav-devel

 

The instructions I have taken from here; http://blog.clamav.n...or-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 !

 



#2 flaviu2

flaviu2

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 11 May 2017 - 11:59 AM

I have noticed that I am missing

 

C:\clamdeps\win32\mspack\include

 

how can I get this "mspack" folder, and what it is that ?



#3 ritchie58

ritchie58

    Staff Member

  • Moderators
  • 1,974 posts
  • LocationOil City, Pa. U.S.A.

Posted 12 May 2017 - 01:26 AM

Hello gentlemen, might I suggest you direct your inquiries directly to the ClamAV team. I'm sure they can give you the answers you're looking for. https://www.clamav.net/contact

Cheers, Ritchie...


* Immunet Global Forum Moderator *


#4 flaviu2

flaviu2

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 25 May 2017 - 11:38 AM

I had write them, but their mailing list are working bad ... their mailing list said that I have a virus on my PC, and ban me ... hmm ... I don't know how to get clamav library ... and I really need this !



#5 ritchie58

ritchie58

    Staff Member

  • Moderators
  • 1,974 posts
  • LocationOil City, Pa. U.S.A.

Posted 25 May 2017 - 03:12 PM

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


* Immunet Global Forum Moderator *





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users