I've just spent the last couple of hours trying to compile just the
ClamAV-Milter, and was having errors like;

clamav-milter.c: In function `main':
clamav-milter.c:1175: `SHUT_RD' undeclared (first use this function)
clamav-milter.c:1175: (Each undeclared identifier is reported only once
clamav-milter.c:1175: for each function it appears in.)
clamav-milter.c: In function `clamfi_connect':
clamav-milter.c:1996: `INET_ADDRSTRLEN' undeclared (first use this
function)
clamav-milter.c: In function `connect2clamd':
clamav-milter.c:3557: `SHUT_RD' undeclared (first use this function)
clamav-milter.c: In function `quit':
clamav-milter.c:4256: `SHUT_WR' undeclared (first use this function)
make: *** [clamav-milter.o] Error 1


After looking around for ages, I found this is just a number of
constants missing from my machine. I'm running a Cobalt Qube2 btw. Its a
fairly old machine though, only 266mhz.

#define SHUT_RD         0       /* shutdown for reading */
#define SHUT_WR         1       /* shutdown for writing */
#define SHUT_RDWR       2       /* shutdown for reading and writing */
#define INET_ADDRSTRLEN 16
/* these four Posix.1g names are quite new */


This fixed it perfectly! Not sure if its quite the right way to do it,
but I hope this helps someone else.

Dug
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

Reply via email to