Package: clamav
Version: 0.85.2-0.86rc1-1
Severity: normal
Tags: patch
When building 'clamav' on amd64/unstable with gcc-4.0,
I get the following error:
if x86_64-linux-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:1057:26: error: operator '>' has no left operand
clamav-milter.c:1576:26: error: operator '>' has no left operand
clamav-milter.c: In function 'clamfi_connect':
clamav-milter.c:2101: warning: passing argument 1 of 'hosts_ctl' discards
qualifiers from pointer target type
make[3]: *** [clamav-milter.o] Error 1
make[3]: Leaving directory `/clamav-0.85.2-0.86rc1/clamav-milter'
With the attached patch 'clamav' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/clamav-0.85.2-0.86rc1/clamav-milter/clamav-milter.c
./clamav-milter/clamav-milter.c
--- ../tmp-orig/clamav-0.85.2-0.86rc1/clamav-milter/clamav-milter.c
2005-06-13 10:50:15.0 +0200
+++ ./clamav-milter/clamav-milter.c 2005-06-19 12:51:14.0 +0200
@@ -1054,9 +1054,6 @@
if(cfgopt(copt, "LogVerbose")) {
logVerbose = 1;
-#if((SENDMAIL_VERSION_A > 8) || ((SENDMAIL_VERSION_A == 8) &&
(SENDMAIL_VERSION_B >= 13)))
- smfi_setdbg(6);
-#endif
}
use_syslog = 1;
@@ -1573,12 +1570,6 @@
return EX_UNAVAILABLE;
}
-#if((SENDMAIL_VERSION_A > 8) || ((SENDMAIL_VERSION_A == 8) &&
(SENDMAIL_VERSION_B >= 13)))
- if(smfi_opensocket(1) == MI_FAILURE) {
- cli_errmsg("Can't open/create %s\n", port);
- return EX_CONFIG;
- }
-#endif
signal(SIGPIPE, SIG_IGN); /* libmilter probably does this as well
*/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]