FREE-BSD 4.4-RELEASEI only have 4.7 and 4.8 (4.4 is rather old now) so I can't be 100% sure this will work for you.
I suggest downloading the latest sendmail source from sendmail.org, cd to libmilter and doing 'make install' there. Report back here how it goes, it isn't as daunting as it sounds.
-Nigel
Sorry, but I prefer to stay on my 8.11.6...
bash-2.05# make install /bin/sh ./Build install Configuration: pfx=, os=FreeBSD, rel=4.4-RELEASE, rbase=4, rroot=4.4-RELEASE, arch=i386, sfx=, variant=optimized Using M4=/usr/local/bin/gm4 Creating ../obj.FreeBSD.4.4-RELEASE.i386/libmilter using ../devtools/OS/FreeBSD Making dependencies in ../obj.FreeBSD.4.4-RELEASE.i386/libmilter mkdep -a -f Makefile -I. -I../../sendmail -I../../include main.c engine.c listener.c handler.c comm.c smfi.c signal.c sm_gethost.c Making in ../obj.FreeBSD.4.4-RELEASE.i386/libmilter install -c -o root -g bin -m 0444 ../../include/libmilter/mfapi.h /usr/include cc -O -I. -I../../sendmail -I../../include -DXP_MT -c main.c cc -O -I. -I../../sendmail -I../../include -DXP_MT -c engine.c cc -O -I. -I../../sendmail -I../../include -DXP_MT -c listener.c cc -O -I. -I../../sendmail -I../../include -DXP_MT -c handler.c cc -O -I. -I../../sendmail -I../../include -DXP_MT -c comm.c cc -O -I. -I../../sendmail -I../../include -DXP_MT -c smfi.c cc -O -I. -I../../sendmail -I../../include -DXP_MT -c signal.c cc -O -I. -I../../sendmail -I../../include -DXP_MT -c sm_gethost.c ar crv libmilter.a main.o engine.o listener.o handler.o comm.o smfi.o signal.o sm_gethost.o a - main.o a - engine.o a - listener.o a - handler.o a - comm.o a - smfi.o a - signal.o a - sm_gethost.o ranlib libmilter.a install -c -o root -g bin -m 0444 libmilter.a /usr/lib
here it goes...
bash-2.05# cd /usr/ports/security/clamav-devel/ bash-2.05# ./configure --enable-milter
checking build system type... i386-unknown-freebsd4.4 checking host system type... i386-unknown-freebsd4.4 checking target system type... i386-unknown-freebsd4.4 creating target.h - canonical system defines checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets ${MAKE}... yes checking for gawk... (cached) awk checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets ${MAKE}... (cached) yes checking for ld used by GCC... /usr/libexec/elf/ld checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes checking for /usr/libexec/elf/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking how to recognise dependant libraries... pass_all checking command to parse /usr/bin/nm -B output... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... no checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... freebsd4.4 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether -lc should be explicitly linked in... yes creating libtool checking for ANSI C header files... (cached) yes checking for stdint.h... (cached) no checking for unistd.h... (cached) yes checking sys/int_types.h usability... no checking sys/int_types.h presence... no checking for sys/int_types.h... no checking for dlfcn.h... (cached) yes checking for inttypes.h... (cached) yes checking sys/inttypes.h usability... yes checking sys/inttypes.h presence... yes checking for sys/inttypes.h... yes checking for memory.h... (cached) yes checking ndir.h usability... no checking ndir.h presence... no checking for ndir.h... no checking for stdlib.h... (cached) yes checking for strings.h... (cached) yes checking for string.h... (cached) yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for sys/stat.h... (cached) yes checking for sys/types.h... (cached) yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for off_t... yes checking size of short... 2 checking size of int... 4 checking size of long... 4 checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking bzlib.h usability... yes checking bzlib.h presence... yes checking for bzlib.h... yes checking for bzReadOpen in -lbz2... no checking for setsid... yes checking for memcpy... yes checking whether setpgrp takes no argument... no checking libmilter/mfapi.h usability... no checking libmilter/mfapi.h presence... no checking for libmilter/mfapi.h... no checking for __gmpz_init in -lgmp... no checking for mpz_init in -lgmp... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes /dev/(u)random detected. Checking /etc/passwd... checking for gcc option to accept ANSI C... none needed checking for an ANSI C-conforming const... yes checking whether byte ordering is bigendian... no configure: creating ./config.status config.status: creating libclamav/Makefile config.status: creating clamscan/Makefile config.status: creating database/Makefile config.status: creating docs/Makefile config.status: creating clamd/Makefile config.status: creating clamdscan/Makefile config.status: creating clamav-milter/Makefile config.status: creating freshclam/Makefile config.status: creating sigtool/Makefile config.status: creating etc/Makefile config.status: creating Makefile config.status: executing depfiles commands
bash-2.05# make > make.log see log in attached file, and some warnings on console:
bash-2.05# make > make.log In file included from blob.c:29: /usr/include/malloc.h:2: warning: #warning "this file includes <malloc.h> which is deprecated, use <stdlib.h> instead" In file included from message.c:62: /usr/include/malloc.h:2: warning: #warning "this file includes <malloc.h> which is deprecated, use <stdlib.h> instead" message.c: In function `messageToBlob': message.c:616: warning: assignment makes pointer from integer without a cast message.c: In function `messageToText': message.c:879: warning: assignment makes pointer from integer without a cast message.c: At top level: message.c:957: warning: type mismatch with previous implicit declaration message.c:879: warning: previous implicit declaration of `binhexBegin' message.c:957: warning: `binhexBegin' was previously implicitly declared to return `int' In file included from text.c:25: /usr/include/malloc.h:2: warning: #warning "this file includes <malloc.h> which is deprecated, use <stdlib.h> instead" /usr/lib/libc.so: WARNING! setkey(3) not present in the system! /usr/lib/libc.so: warning: this program uses gets(), which is unsafe. /usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: WARNING! des_setkey(3) not present in the system! /usr/lib/libc.so: WARNING! encrypt(3) not present in the system! /usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: warning: this program uses f_prealloc(), which is not recommended. /usr/lib/libc.so: WARNING! des_cipher(3) not present in the system! /usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: WARNING! setkey(3) not present in the system! /usr/lib/libc.so: warning: this program uses gets(), which is unsafe. /usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: WARNING! des_setkey(3) not present in the system! /usr/lib/libc.so: WARNING! encrypt(3) not present in the system! /usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: warning: this program uses f_prealloc(), which is not recommended. /usr/lib/libc.so: WARNING! des_cipher(3) not present in the system! /usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider using mkstemp() client.c: In function `client': client.c:143: warning: assignment makes pointer from integer without a cast /usr/lib/libc.so: WARNING! setkey(3) not present in the system! /usr/lib/libc.so: warning: this program uses gets(), which is unsafe. /usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: WARNING! des_setkey(3) not present in the system! /usr/lib/libc.so: WARNING! encrypt(3) not present in the system! /usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: warning: this program uses f_prealloc(), which is not recommended. /usr/lib/libc.so: WARNING! des_cipher(3) not present in the system! /usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: WARNING! setkey(3) not present in the system! /usr/lib/libc.so: warning: this program uses gets(), which is unsafe. /usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: WARNING! des_setkey(3) not present in the system! /usr/lib/libc.so: WARNING! encrypt(3) not present in the system! /usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: warning: this program uses f_prealloc(), which is not recommended. /usr/lib/libc.so: WARNING! des_cipher(3) not present in the system! /usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: WARNING! setkey(3) not present in the system! /usr/lib/libc.so: warning: this program uses gets(), which is unsafe. /usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: WARNING! des_setkey(3) not present in the system! /usr/lib/libc.so: WARNING! encrypt(3) not present in the system! /usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: warning: this program uses f_prealloc(), which is not recommended. /usr/lib/libc.so: WARNING! des_cipher(3) not present in the system! /usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider using mkstemp()
bash-2.05# make install > make.install.log see log in attached file
bash-2.05# find / -name "clamav-*" -type f -print
/usr/local/man/man1/clamav-milter.1.gz /usr/local/man/man8/clamav-milter.8 /usr/ports/security/clamav-devel/clamav-milter/clamav-milter.c /usr/ports/security/clamav-devel/clamav-milter/clamav-milter.sh /usr/ports/security/clamav-devel/clamav-milter/.deps/clamav-milter.Po /usr/ports/security/clamav-devel/docs/man/clamav-milter.8 /usr/ports/security/clamav-devel/docs/clamav-milter.8 /usr/ports/security/clamav-devel/docs/clamav-mirror-howto.pdf /usr/ports/security/clamav-devel/docs/Portugese/clamav-howto.txt /usr/home/eyedmax/clamav-devel/clamav-milter/clamav-milter.c /usr/home/eyedmax/clamav-devel/clamav-milter/clamav-milter.sh /usr/home/eyedmax/clamav-devel/clamav-milter/.deps/clamav-milter.Po /usr/home/eyedmax/clamav-devel/docs/man/clamav-milter.8 /usr/home/eyedmax/clamav-devel/docs/clamav-milter.8 /usr/home/eyedmax/clamav-devel/docs/clamav-mirror-howto.pdf /usr/home/eyedmax/clamav-devel/docs/Portugese/clamav-howto.txt
Shit. =(
-- //EyedMax
make.log.gz
Description: application/gzip
make.install.log.gz
Description: application/gzip