Mailing List Archive

clamav_milter problem
I install clamav.0-65 on suse7.2-SMP(linux390)
when i wanted to use clamav-milter and run ./configure --enable-milter
these error were appered:
/usr/lib/libmilter.a(main.o): In function `smfi_register':
main.o(.text+0x18): undefined reference to `strlcpy'
/usr/lib/libmilter.a(main.o): In function `smfi_setconn':
main.o(.text+0x160): undefined reference to `strlcpy'
/usr/lib/libmilter.a(listener.o): In function `mi_milteropen':
listener.o(.text+0x30): undefined reference to `strlcpy'
/usr/lib/libmilter.a(engine.o): In function `st_connectinfo':
engine.o(.text+0x76c): undefined reference to `strlcpy'
collect2: ld returned 1 exit status
make: *** [clamav-milter] Error 1


therefore I can't use clamav-milter in sendmail . What is the problem
and how can i solve it?

-- by regards sophia
Re: clamav_milter problem [ In reply to ]
Alikhani wrote:

> /usr/lib/libmilter.a(main.o): In function `smfi_register':
> main.o(.text+0x18): undefined reference to `strlcpy'
> /usr/lib/libmilter.a(main.o): In function `smfi_setconn':
> main.o(.text+0x160): undefined reference to `strlcpy'
> /usr/lib/libmilter.a(listener.o): In function `mi_milteropen':
> listener.o(.text+0x30): undefined reference to `strlcpy'

The strl...() functions are an OpenBSD invention and not available on
all Linuxes. They are, however, very easy to get and install. You can
either get the source from OpenBSD or you might get the smtp-vilter
distribution from http://www.etc.msys.ch/software/smtp-vilter which
contains a strlfunc library. The link clamav-milter against this small
library.

- Marc