Index: Makefile
--- Makefile.orig	2009-12-21 20:42:51 +0100
+++ Makefile	2010-01-05 16:42:42 +0100
@@ -222,7 +222,7 @@
 	crm_expr_window.o crm_expr_isolate.o crm_expr_file_io.o \
 	crm_expr_syscall.o crm_expr_classify.o crm_expr_translate.o \
 	crm_exec_engine.o crm_debugger.o crm_str_funcs.o \
-	crm_preprocessor.o crmregex_tre.c \
+	crm_preprocessor.o crmregex_tre.o \
 	crm_expr_sks.o crm_stats.o \
 	crm_svm_matrix_util.o crm_svm_quad_prog.o crm_svm_matrix.o\
 	crm_svm_lib_fncts.o crm_svm.o crm_pca_lib_fncts.o crm_pca.o\
Index: crm_osb_hyperspace.c
--- crm_osb_hyperspace.c.orig	2009-12-21 20:42:51 +0100
+++ crm_osb_hyperspace.c	2010-01-05 16:42:28 +0100
@@ -1182,7 +1182,7 @@
 
 		//    Proper pythagorean (Euclidean) distance - best in
 		//   SpamConf 2006 paper
-		dist = sqrtf (unotk + knotu) ;
+		dist = (double)sqrt ((double)(unotk + knotu)) ;
 
 		//    treat kandu better... count matches like mismatches
 		//     5/500 pass 1 (0 thk)
Index: crm114.h
--- crm114.h.orig	2009-12-21 20:42:51 +0100
+++ crm114.h	2010-01-05 16:46:05 +0100
@@ -456,6 +456,9 @@
 
 //   The following mumbo-jumbo needed for BSD to compile cleanly, because
 //    BSD's logl function is not defined in all builds!  What a crock!
+#ifdef __FreeBSD__
+#define NO_LOGL
+#endif
 #ifdef NO_LOGL
 #warning Redefinining crm_logl as log because logl is missing
 #define crm_logl(x) log(x)
