Quoting Odhiambo Washington ([EMAIL PROTECTED]):
>
> And here is how it fails on my FreeBSD 4.11 (yes, I still use this for
> production):
Just as many, many, many, of us do because it just works!
12:40PM up 567 days, 21:32, 2 users, load averages: 1.23, 0.52, 0.31
> /bin/sh /usr/local/bin/libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H
> -I. -I. -I.. -I.. -I./unrar -I/usr/local/include -I/usr/include -I/
> usr/local/include -O -pipe -c -o mbox.lo mbox.c
> cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./unrar -I/usr/local/include
> -I/usr/include -I/usr/local/include -O -pipe -c mbox.c -fPIC -DPIC -o .libs
> /mbox.o
> mbox.c: In function `rfc1341':
> mbox.c:3858: warning: passing arg 3 of `readdir_r' from incompatible pointer
> type
> mbox.c: In function `do_checkURLs':
> mbox.c:4092: `args' undeclared (first use in this function)
> mbox.c:4092: (Each undeclared identifier is reported only once
> mbox.c:4092: for each function it appears in.)
> *** Error code 1
>
> Stop in /usr/ports/security/clamav/work/clamav-0.90.2/libclamav.
> *** Error code 1
>
> Stop in /usr/ports/security/clamav/work/clamav-0.90.2.
> *** Error code 1
>
> Stop in /usr/ports/security/clamav/work/clamav-0.90.2.
> *** Error code 1
>
> Stop in /usr/ports/security/clamav.
> *** Error code 1
>
> Stop in /usr/ports/security/clamav.
Here is a cut-and-paste patch that will not apply but you can see
what needs to be changed.
--- configure.orig Thu Apr 12 19:27:29 2007
+++ configure Fri Apr 13 12:38:18 2007
@@ -22225,9 +22225,12 @@
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <netinet/in.h>
+#include <sys/types.h>
+#include <netinet/in.h>
+#include <arpa/nameser.h>
#include <resolv.h>
+
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
@@ -23085,9 +23088,9 @@
_ACEOF
;;
-freebsd45*)
+freebsd4* | freebsd5*)
if test "$have_pthreads" = "yes"; then
- THREAD_LIBS="-pthread -lc_r"
+ THREAD_LIBS="-pthread"
TH_SAFE="-thread-safe"
cat >>confdefs.h <<\_ACEOF
Here is my configure script for 4.11.
#!/bin/sh
DBDIR="/var/db/clamav"
./configure --with-dbdir=${DBDIR} \
--with-zlib=/usr \
--mandir=/usr/local/share/man \
--disable-zlib-vcheck \
--disable-clamuko \
--disable-clamav \
--enable-bigstack \
--disable-gethostbyname_r \
--enable-readdir_r \
--disable-dependency-tracking \
--with-user=sweep \
--with-group=sweep \
--without-libcurl
I have been running 0.90 since its release with the build options
above on 6 machines with zero problems. 0.90.2 builds but I haven't
run it yet.
Hope this helps.
John Capo
Tuffmail.com
>
>
>
>
> -Wash
>
> http://www.netmeister.org/news/learn2quote.html
>
> DISCLAIMER: See http://www.wananchi.com/bms/terms.php
>
> --
> +======================================================================+
> |\ _,,,---,,_ | Odhiambo Washington <[EMAIL PROTECTED]>
> Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com
> |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922
> '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121
> +======================================================================+
>
> Don't change the reason, just change the excuses!
> -- Joe Cointment
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html