Re: ClamAV® blog: ClamAV 0.100.0 has been released!

"Gary R. Schmidt" <[email protected]>
Newsgroups gmane.comp.security.virus.clamav.devel,gmane.comp.security.virus.clamav.user
Message-ID <[email protected]>
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<https://www.clamav.net/downloads>.
> 
> 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,
		Gary	B-)


_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.