Re: [Clamav-devel] ClamAV® blog: ClamAV 0.100.0 has been released!

2018-04-11 Thread Gary R. Schmidt

On 10/04/2018 04:48, Joel Esler (jesler) wrote:



https://blog.clamav.net/2018/04/clamav-01000-has-been-released.html

ClamAV 0.100.0 has been released!
Join us as we welcome ClamAV 0.100.0 to the family officially.  You can grab it, as 
always, from the downloads page on ClamAV.net.

ClamAV 0.100.0 is a feature release which includes many code submissions from 
the ClamAV community.  Some of the more prominent submissions include:


And doesn't build on Solaris 11.3 using Developer Studio 12.5.

$ cc -V
cc: Studio 12.5 Sun C 5.14 SunOS_i386 Patch 152236-01 2017/08/14

$ env CONFIG_SHELL=/bin/bash \
/bin/bash ./configure \
CC=cc \
CONFIG_SHELL=/bin/bash \
--prefix=/opt/local
$ gmake
...
gmake[5]: Entering directory 
`/home/grs/src/clamav-0.100.0/libclamav/libmspack-0.5alpha'

...
  CCLD libclammspack.la
./libtool: eval: line 1083: syntax error near unexpected token `|'
./libtool: eval: line 1083: `/bin/nm -p  .libs/system.o .libs/cabc.o 
.libs/cabd.o .libs/chmc.o .libs/chmd.o .libs/hlpc.o .libs/hlpd.o 
.libs/litc.o .libs/litd.o .libs/kwajc.o .libs/kwajd.o .libs/szddc.o 
.libs/szddd.o .libs/oabc.o .libs/oabd.o .libs/lzxc.o .libs/lzxd.o 
.libs/mszipc.o .libs/mszipd.o .libs/qtmd.o .libs/lzssd.o .libs/crc32.o | 
 | /bin/gsed 's/.* //' | sort | uniq > .libs/libclammspack.exp'

gmake[5]: *** [libclammspack.la] Error 2

Note the cheeky "|  |" in there.

After far too much fiddling around on my part I worked out that it is a 
fault in the configure scripts when they are trying to work out how to 
parse the output of nm.

Currently it looks like this:
solaris*)
  symcode='[BDRT]'
  ;;
It should be:
solaris*)
  symcode='[BCDRT]'
  ;;

Next!
Why is cli_strndup undefined?
gmake[4]: Entering directory `/home/grs/src/clamav-0.100.0/libclamav'
...
  CCLD libclamav.la
Undefined   first referenced
 symbol in file
cli_strndup ../libclamav/libclamav.map
ld: warning: symbol referencing errors

Which leads to:
gmake[2]: Entering directory `/home/grs/src/clamav-0.100.0/clamscan'
...
  CCLD clamscan
Undefined   first referenced
 symbol in file
cli_strndup ../libclamav/.libs/libclamav.so
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status

Okay, just delete the line containing "cli_strndup" from libclamav.map. 
It would be better to generate this file, rather than having names 
hard-coded in it.


Next!
It doesn't like my libcurl, oh, it's not libcurl, it's that configure 
wants libidn2 when it checks libcurl, add a libidn2, and all is copacetic.


And installed and seems to be working.

Cheers,
GaryB-)


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

http://www.clamav.net/contact.html#ml


Re: [Clamav-devel] [clamav-users] Freshclam 0.100.0 returning 1 on up-to-date

2018-04-11 Thread Mark Allan
Looks like the problem actually stems from a new #define in
"freshclam/freshclamcodes.h".  Change the value of FC_UPTODATE from 1 to 0
and you'll get the old/correct functionality.  Patch below.

Cheers
Mark

diff -Naurw freshclamOrig/freshclamcodes.h freshclam/freshclamcodes.h
--- freshclamOrig/freshclamcodes.h 2018-04-11 14:50:44.0 +0100
+++ freshclam/freshclamcodes.h 2018-04-11 14:57:54.0 +0100
@@ -20,7 +20,7 @@
 #ifndef __FRESHCLAMCODES_H
 #define __FRESHCLAMCODES_H

-#define FC_UPTODATE1
+#define FC_UPTODATE0

 #define FCE_INIT  40
 #define FCE_CHECKS41

On 10 April 2018 at 13:36, Andreas Schulze  wrote:

> Am 10.04.2018 um 10:32 schrieb Pertti Karppinen:
> > Freshclam seems to be returning 1 on up-to-date situation, but man page
> > says it should return 0:
> > 0 : Database is up-to-date or successfully updated.
> >
> I think, I had the similar (same?) problem some times ago and fixed it
> with this patch:
>
> Description: freshclam should return 0 if only custom databases
>  are updated and all are up to date
> Author: A. Schulze
> URL: https://bugzilla.clamav.net/show_bug.cgi?id=11812
> ---
> This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
> Index: clamav-0.100.0~beta/freshclam/manager.c
> ===
> --- clamav-0.100.0~beta.orig/freshclam/manager.c
> +++ clamav-0.100.0~beta/freshclam/manager.c
> @@ -2612,6 +2612,7 @@ downloadmanager (const struct optstruct
>   updatecustomdb (opt->strarg, &signo, opts, localip,
>   logerr)) == 0)
>  updated = 1;
> +if (custret == 1) { /* not updated but up to date */ custret
> = 0; }
>  opt = opt->nextarg;
>  }
>  }
>
>
> --
> A. Schulze
> DATEV eG
> ___
> clamav-users mailing list
> clamav-us...@lists.clamav.net
> http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
>
>
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
>
> http://www.clamav.net/contact.html#ml
>
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

http://www.clamav.net/contact.html#ml