Hello,
Looks like it's still not working for FreeBSD4.X when
"--enable-milter" is enabled during "configure". Applied
the following to configure.in and all is well. Credit to
Dave Dumbeck <[EMAIL PROTECTED]>
Hope it'll be useful to others who can't upgrade from
FreeBSD4.X systems just yet.
Cheers,
N
rcsdiff -c configure.in
===================================================================
RCS file: RCS/configure.in,v
retrieving revision 1.1
diff -c -r1.1 configure.in
*** configure.in 2007/07/16 08:51:46 1.1
--- configure.in 2007/07/16 08:52:52
***************
*** 401,406 ****
--- 401,409 ----
;;
freebsd[[45]]*)
if test "$have_pthreads" = "yes"; then
+ LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -pthread -lc_r"
+ CLAMD_LIBS="$CLAMD_LIBS -pthread -lc_r"
+ CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread
-lc_r"
THREAD_LIBS="-pthread -lc_r"
TH_SAFE="-thread-safe"
AC_DEFINE(CL_THREAD_SAFE,1,[thread safe])
***************
*** 593,599 ****
dnl Check for libmilter and it's header files in the
usual locations
save_LDFLAGS="$LDFLAGS"
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
if test -d /usr/lib/libmilter ; then
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS
-L/usr/lib/libmilter"
fi
--- 596,601 ----
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net