Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

Compilation and cli_malloc missing

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


kristof.p at fce

Aug 17, 2003, 4:40 AM

Post #1 of 2 (542 views)
Permalink
Compilation and cli_malloc missing

Hi,

version 20030720 is OK.
From version 20030808+ compilation fails.

gcc -O2 -march=i386 -mcpu=i686 -o clamav-milter clamav-milter.o
../clamd/cfgfile.o ../clamd/others.o
-L/usr/src/redhat/BUILD/clamav-20030806/libclamav -L/usr/lib/libmilter
-lmilter -lpthread
../clamd/others.o: In function `virusaction':
../clamd/others.o(.text+0x5ff): undefined reference to `cli_malloc'
collect2: ld returned 1 exit status
make[1]: *** [clamav-milter] Error 1


Build commands are
./configure \
--enable-debug \
--enable-milter \
--enable-id-check \
--disable-clamav \
--disable-clamuko \
--with-user=clamav \
--with-group=clamav \
--with-dbdir=/var/lib/clamav
make



Any help?

Thanks

Petr


njh at bandsman

Aug 17, 2003, 5:32 AM

Post #2 of 2 (535 views)
Permalink
Re: Compilation and cli_malloc missing [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've seen this as well.

In clamd/others.c, change line 260 (the line with cli_malloc) to:

buffer = (char *) mcalloc(strlen(cmd) + strlen(filename) + strlen(virname) + 10, sizeof(char));

- -Nigel

- --
Nigel Horne. Arranger, Composer, Typesetter.
NJH Music, Barnsley, UK. ICQ#20252325
njh [at] despammed http://www.bandsman.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/P3VNhTUd3VwpF6IRArn8AKDBfv2E6PKZb55F+xz/89M03Vfr4QCeOY8B
tW9Eq8wSG6/TNnO92JDoHe8=
=TYCg
-----END PGP SIGNATURE-----

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.