Carl Thompson wrote:
I get a compilation failure on redhat 7.2 box

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../clamd -I../libclamav -I../shared    -g -O2 -MT 
clamav-milter.o -MD -MP -MF ".deps/clamav-milter.Tpo" -c -o clamav-milter.o 
clamav-milter.c; \
then mv -f ".deps/clamav-milter.Tpo" ".deps/clamav-milter.Po"; else rm -f 
".deps/clamav-milter.Tpo"; exit 1; fi
clamav-milter.c: In function `clamd_recv':
clamav-milter.c:3444: parse error before `int'
clamav-milter.c:3448: `ret' undeclared (first use in this function)
clamav-milter.c:3448: (Each undeclared identifier is reported only once
clamav-milter.c:3448: for each function it appears in.)
make[2]: *** [clamav-milter.o] Error 1
make[2]: Leaving directory `/root/clamav-0.87/clamav-milter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/clamav-0.87'
make: *** [all] Error 2

This is with ./configure --sysconfdir=/etc --enable-milter
and
./configure --sysconfdir=/etc --enable-milter --without-curl

any suggestions? never had a problem compiling clamav before.

Carl

A patch was posted on the 09/16/05 for this problem.  Below is
the patch:

--- clamav-milter.c.old 2005-09-16 23:44:39.000000000 +0200
+++ clamav-milter.c     2005-09-16 23:56:50.000000000 +0200
@@ -3439,9 +3439,9 @@
 {
        fd_set rfds;
        struct timeval tv;
+       int ret;

        assert(sock >= 0);
-       int ret;

        if(readTimeout == 0) {
                do

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to