Compiling clamd on Tru64 v5.1b fails with the following error (NOTE: using
DEC's cc not gcc):

# make
make  all-recursive
make[1]: Entering directory `/usr/local/sources/ClamAV/clamav-0.90.1'
Making all in libclamav
make[2]: Entering directory `/usr/local/sources/ClamAV/clamav-0.90.1
/libclamav'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/sources/ClamAV/clamav-0.90.1
/libclamav'
Making all in clamscan
make[2]: Entering directory `/usr/local/sources/ClamAV/clamav-0.90.1
/clamscan'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/sources/ClamAV/clamav-0.90.1
/clamscan'
Making all in clamd
make[2]: Entering directory `/usr/local/sources/ClamAV/clamav-0.90.1/clamd'
source='server-th.c' object='server-th.o' libtool=no \
DEPDIR=.deps depmode=tru64 /bin/ksh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../shared -I../libclamav
-I/usr/local/include  -g -c server-th.c
cc: Error: server-th.c, line 184: Invalid declarator. (declarator)
       unsigned int sigs = 0, try = 1;
-------------------------------^
cc: Error: server-th.c, line 230: Invalid expression. (badexpr)
       logg("!reload db failed: %s (try %u)\n", cl_strerror(retval), try);
----------------------------------------------------------------------^
cc: Error: server-th.c, line 231: Invalid expression. (badexpr)
       if(++try > 3)
-------------^
cc: Error: server-th.c, line 229: In this statement, "sigs" is not declared.
(undeclared)
   while((retval = cl_load(dbdir, &engine, &sigs, dboptions)) ==
CL_ELOCKDB) {
---------------------------------------------^
make[2]: *** [server-th.o] Error 1
make[2]: Leaving directory `/usr/local/sources/ClamAV/clamav-0.90.1/clamd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/sources/ClamAV/clamav-0.90.1'
make: *** [all] Error 2

I know that 'try' is Not a reserved word in ANSI C, but it is in C++.  I
editted the file server-th.c and changed the name of the variable to 'tries'
and clamd compiled.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to