Daniel Moreda García | 16 Sep 2011 11:29

problem building 0.97.2 OpenSuSE 11.0

Hi list.

I'm in trouble building ClamAV 0.97.2:

make[4]: Entering directory `/usr/local/src/clamav-0.97.2/libclamav'
   GEN    version.h.tmp
   GEN    version.h
   CCLD   libclamav.la
c++/.libs/libclamavcxx.a: member  
c++/.libs/libclamavcxx.a(SelectionDAGBuilder.o) in archive is not an  
object
collect2: ld returned 1 exit status
make[4]: *** [libclamav.la] Error 1
make[4]: Leaving directory `/usr/local/src/clamav-0.97.2/libclamav'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/clamav-0.97.2/libclamav'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/clamav-0.97.2/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/clamav-0.97.2'
make: *** [all] Error 2

My distro is OpenSuSE 11.0

TIA.

--

-- 
Dani

----------------------------------------------------------------
(Continue reading)

Picon

Hello

I intend to translate clamAV interface for linux and windows into
ukrainian. i also want to translate clamAV website into ukrainian
later on if its possible.
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Tomasz Kojm | 21 Sep 2011 17:54
Favicon

Re: Hello

On Wed, 21 Sep 2011 14:24:04 +0300 Віктор Михайлович <postvmc <at> gmail.com>
wrote:
> I intend to translate clamAV interface for linux and windows into
> ukrainian. i also want to translate clamAV website into ukrainian
> later on if its possible.

Hi Віктор,

ClamAV is command-line based and doesn't provide a multi-language
interface. When it comes to the website, please send a mail to
luca <at> clamav.net and he'll send you the instructions.

Thanks in advance,

--

-- 
   oo    .....         Tomasz Kojm <tkojm <at> clamav.net>
  (\/)\.........         http://www.ClamAV.net/gpg/tkojm.gpg
     \..........._         0DCA5A08407D5288279DB43454822DC8985A444B
       //\   /\              Wed Sep 21 17:50:05 CEST 2011
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Chatsiri Ratana | 21 Sep 2011 18:11
Picon

Debug code in Clam Antivirus.

Hello All,

       I try to build ClamAV by ./configure  include with  --enable-debug
flag. Because I would to found step AC algorithms for matching between data
and virus signature on database. How can i debug code in order to seen on AC
algorithms for scanning virus?

After run GDB. GDB represent as below.

This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/home/chatsiri/clamav/clamav-devel/clamscan/clamscan": not in executable
format: File format not recognised

Best Regards,
Chatsiri Ratana.

--

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

aCaB | 21 Sep 2011 18:33
Picon

Re: Debug code in Clam Antivirus.

On 09/21/11 18:11, Chatsiri Ratana wrote:
> Hello All,
> 
>        I try to build ClamAV by ./configure  include with  --enable-debug
> flag. Because I would to found step AC algorithms for matching between data
> and virus signature on database. How can i debug code in order to seen on AC
> algorithms for scanning virus?

Hi,
In an ideal world, you'd run "make install" and then start gdb --args
/path/to/installed/clamscan ...
However, if you want really want to run it from within the build dir,
then you need to use ./libtool --mode=execute gdb --args
clamscan/clamscan ...

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

Chatsiri Ratana | 21 Sep 2011 18:45
Picon

Re: Debug code in Clam Antivirus.

On Wed, Sep 21, 2011 at 11:33 PM, aCaB <acabng <at> digitalfuture.it> wrote:

> On 09/21/11 18:11, Chatsiri Ratana wrote:
> > Hello All,
> >
> >        I try to build ClamAV by ./configure  include with  --enable-debug
> > flag. Because I would to found step AC algorithms for matching between
> data
> > and virus signature on database. How can i debug code in order to seen on
> AC
> > algorithms for scanning virus?
>
> Hi,
> In an ideal world, you'd run "make install" and then start gdb --args
> /path/to/installed/clamscan ...
> However, if you want really want to run it from within the build dir,
> then you need to use ./libtool --mode=execute gdb --args
> clamscan/clamscan ...
>
> HtH,
> -aCaB
> _______________________________________________
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>

Okey, It's represent good result in this time. Last time,I don't included
libtool before command gdb :D

Best Regards,
(Continue reading)

Chatsiri Ratana | 29 Sep 2011 20:24
Picon

What's function for check between virus and signature on database ( AC)?

Hello All,

 I debug clamscan programs by insert a input test to it. I have question on
function for check match string between virus and signature on database.
What a function for checking a virus and signature on database?
My view, It's should as function below in file name matcher-ac.c.

 int cli_ac_chklsig(const char *expr, const char *end, uint32_t *lsigcnt,
unsigned int *cnt, uint64_t *ids, unsigned int parse_o     nly)

In last email in mail-list suggested  we should start with  cli_parse_add()
function in readdb.c file for debuging with AC algorithms,but It's step for
AC algorithms in order to check start string with signature base( stage 1
check with prefix of string but not stage 2 for checking all string match
with signature base),right?

Best Regards,
Chatsiri Ratana
--

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

Török Edwin | 1 Oct 2011 17:30
Picon

Re: What's function for check between virus and signature on database ( AC)?

On 09/29/2011 09:24 PM, Chatsiri Ratana wrote:
> Hello All,
> 
>  I debug clamscan programs by insert a input test to it. I have question on
> function for check match string between virus and signature on database.
> What a function for checking a virus and signature on database?
> My view, It's should as function below in file name matcher-ac.c.
> 
>  int cli_ac_chklsig(const char *expr, const char *end, uint32_t *lsigcnt,
> unsigned int *cnt, uint64_t *ids, unsigned int parse_o     nly)

This is only one of the functions, have a look at cli_fmap_scandesc: that is
the function that calls most of the other matchers.

If you are about AC algorithm only, then look at cli_ac_scanbuff.

> 
> In last email in mail-list suggested  we should start with  cli_parse_add()
> function in readdb.c file for debuging with AC algorithms,but It's step for
> AC algorithms in order to check start string with signature base( stage 1
> check with prefix of string but not stage 2 for checking all string match
> with signature base),right?

cli_parse_add is used when loading the database to parse and convert the signatures into the internal representation.

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
(Continue reading)

Chatsiri Ratana | 1 Oct 2011 19:06
Picon

Re: What's function for check between virus and signature on database ( AC)?

2011/10/1 Török Edwin <edwintorok <at> gmail.com>

> On 09/29/2011 09:24 PM, Chatsiri Ratana wrote:
> > Hello All,
> >
> >  I debug clamscan programs by insert a input test to it. I have question
> on
> > function for check match string between virus and signature on database.
> > What a function for checking a virus and signature on database?
> > My view, It's should as function below in file name matcher-ac.c.
> >
> >  int cli_ac_chklsig(const char *expr, const char *end, uint32_t *lsigcnt,
> > unsigned int *cnt, uint64_t *ids, unsigned int parse_o     nly)
>
> This is only one of the functions, have a look at cli_fmap_scandesc: that
> is
> the function that calls most of the other matchers.
>
> If you are about AC algorithm only, then look at cli_ac_scanbuff.
>
> >
> > In last email in mail-list suggested  we should start with
>  cli_parse_add()
> > function in readdb.c file for debuging with AC algorithms,but It's step
> for
> > AC algorithms in order to check start string with signature base( stage 1
> > check with prefix of string but not stage 2 for checking all string match
> > with signature base),right?
>
> cli_parse_add is used when loading the database to parse and convert the
(Continue reading)


Gmane