Mailing List Archive

[PATCH] zlib detection for autofoo
Hi,

The current configure.ac use many hack to determine if zlib is present,
recent enough. Is a (fast done) patch like this can help you ? The main
idea is to relie on pkg-config.

--
Beber
Re: [PATCH] zlib detection for autofoo [ In reply to ]
Thanks, Bertrand.

One of the developers is specifically looking at these tasks now. I'll
forward this to him.

Matt


On Mon, Jun 10, 2013 at 3:46 PM, Bertrand Jacquin <beber@meleeweb.net>wrote:

> Hi,
>
> The current configure.ac use many hack to determine if zlib is present,
> recent enough. Is a (fast done) patch like this can help you ? The main
> idea is to relie on pkg-config.
>
> --
> Beber
>
> _______________________________________________
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: [PATCH] zlib detection for autofoo [ In reply to ]
It will be a great honor to me to solve this problem.

I am ready to work on it please send me problem definition in detail.



Best Regards,
Nilesh Salunke.

--- On Tue, 11/6/13, Bertrand Jacquin <beber@meleeweb.net> wrote:

From: Bertrand Jacquin <beber@meleeweb.net>
Subject: [Clamav-devel] [PATCH] zlib detection for autofoo
To: clamav-devel@lists.clamav.net
Date: Tuesday, 11 June, 2013, 1:16 AM

Hi,

The current configure.ac use many hack to determine if zlib is present,
recent enough. Is a (fast done) patch like this can help you ? The main
idea is to relie on pkg-config.

--
Beber

-----Inline Attachment Follows-----

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: [PATCH] zlib detection for autofoo [ In reply to ]
> From: Bertrand Jacquin <beber@meleeweb.net>

> The current configure.ac use many hack to determine if zlib is present,
> recent enough. Is a (fast done) patch like this can help you ? The main
> idea is to relie on pkg-config.

I'd warn against sole reliance on pkgconfig in the ./configure. The latter is
all about maximum portability, and not all systems may have pkgconfig. Use it by
all means, but fall back to the "old" ways if it is not available.

Regards,

Eugene
Re: [PATCH] zlib detection for autofoo [ In reply to ]
Hi....

I am not getting problem exactly. So elaborate the problem.

Before that i am having below problems for getting start working on ClamAV project.

1:
I have downloaded ClamAV project from below location:
"git clone git://clamwin.git.sourceforge.net/gitroot/clamwin/clamav-win32.git"

I have build it in Visual Studio 2008. But while running executable it give below errors:

ERROR: Can't open/parse the config file C:\Users\Nilesh.admin-PC\clamav-win32\contrib\msvc\Debug\Win32\clamd.conf

ERROR: Can't open/parse the config file C:\Users\Nilesh.admin-PC\clamav-win32\co
ntrib\msvc\Debug\Win32\freshclam.conf

Loading Clamav DB...
LibClamAV Error: cl_load(): Can't get status of daily.cvd
Error loading daily.cvd...

2.
Usage C:\Users\Nilesh.admin-PC\clamav-win32\contrib\msvc\Debug\Win32\unscrambler.exe scrambled.dmp
What is exactly that "scrambled.dmp" files and their use..?

3.
The file "clamscan.exe" generated after build in Visual Studio. I used that file for scanning some viruses samples.
Result summary  was:
----------- SCAN SUMMARY -----------
Known viruses: 2341759
Engine version: devel@clamwin msvc - Jun 10 2013
Scanned directories: 1
Scanned files: 7
Infected files: 5
Data scanned: 0.50 MB
Data read: 0.45 MB (ratio 1.09:1)
Time: 19.889 sec (0 m 19 s)

But i scanned same samples using "clamscan.exe"  which is generated after installing ClamWin Antivirus it gives scan summary as below:
----------- SCAN SUMMARY -----------
Known viruses: 2341759
Engine version: 0.97.8
Scanned directories: 1
Scanned files: 7
Infected files: 5
Data scanned: 0.50 MB
Data read: 0.45 MB (ratio 1.09:1)
Time: 7.051 sec (0 m 7 s)

There is huge difference in scan time. Why...?
Is ClamAV project at location "git clone git://clamwin.git.sourceforge.net/gitroot/clamwin/clamav-win32.git" is outdated..?
If that so then send me URL to download latest ClamAV project.

3.
I am getting problem to understand the working flow of project. So please help me.


Best Regards,
Nilesh Salunke.

--- On Tue, 11/6/13, Eugene Crosser <crosser@average.org> wrote:

From: Eugene Crosser <crosser@average.org>
Subject: Re: [Clamav-devel] [PATCH] zlib detection for autofoo
To: clamav-devel@lists.clamav.net
Date: Tuesday, 11 June, 2013, 12:03 PM

> From: Bertrand Jacquin <beber@meleeweb.net>

> The current configure.ac use many hack to determine if zlib is present,
> recent enough. Is a (fast done) patch like this can help you ? The main
> idea is to relie on pkg-config.

I'd warn against sole reliance on pkgconfig in the ./configure. The latter is
all about maximum portability, and not all systems may have pkgconfig. Use it by
all means, but fall back to the "old" ways if it is not available.

Regards,

Eugene





-----Inline Attachment Follows-----

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: [PATCH] zlib detection for autofoo [ In reply to ]
D'ar meurzh 11 a viz Mezheven 2013 e 08 eur 33, « Eugene Crosser » he deus skrivet :
>
> > The current configure.ac use many hack to determine if zlib is present,
> > recent enough. Is a (fast done) patch like this can help you ? The main
> > idea is to relie on pkg-config.
>
> I'd warn against sole reliance on pkgconfig in the ./configure. The latter is
> all about maximum portability, and not all systems may have pkgconfig. Use it by
> all means, but fall back to the "old" ways if it is not available.

Hi,

User can still define zlib_CFLAGS and zlib_LIBS manually if needed in
any cases if it's what you are warning about.

http://www.flameeyes.eu/autotools-mythbuster/pkgconfig/pkg_check_modules.html

--
Beber
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: [PATCH] zlib detection for autofoo [ In reply to ]
On Jun 11, 2013, at 19:10 PM, Bertrand Jacquin wrote:

> D'ar meurzh 11 a viz Mezheven 2013 e 08 eur 33, « Eugene Crosser »
> he deus skrivet :
>>
>>> The current configure.ac use many hack to determine if zlib is
>>> present,
>>> recent enough. Is a (fast done) patch like this can help you ?
>>> The main
>>> idea is to relie on pkg-config.
>>
>> I'd warn against sole reliance on pkgconfig in the ./configure.
>> The latter is
>> all about maximum portability, and not all systems may have
>> pkgconfig. Use it by
>> all means, but fall back to the "old" ways if it is not available.
>
> Hi,
>
> User can still define zlib_CFLAGS and zlib_LIBS manually if needed in
> any cases if it's what you are warning about.

You missed the bus here, this is manual declaration and not finding.

>
> http://www.flameeyes.eu/autotools-mythbuster/pkgconfig/
> pkg_check_modules.html
>
> --
> Beber
> _______________________________________________
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>



-- Dale



_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net