On Mon, Sep 19, 2005 at 03:59:48PM -0500, Carl Thompson said:
> 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.

Move line 3444 of clamav-milter/clamav-milter.c:

int ret;

up above the previous line, I bleieve - this is from memory.  I had to
do the same thing to make it compile on Debian woody (it's a pre 3.0
compiler problem, IIRC).
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | If you have to ask how much it is, you  |
|  [EMAIL PROTECTED]             | can't afford it.                        |
|  http://www.lobefin.net/~steve |                                         |
 --------------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

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

Reply via email to