Index: doc/Makefile.in
--- doc/Makefile.in.orig	2008-05-14 12:04:44 +0200
+++ doc/Makefile.in	2008-05-15 13:29:33 +0200
@@ -747,7 +747,7 @@
 
 install-data-local: install-man
 	rm -f $(DESTDIR)$(man1dir)/gst-reload.1
-	$(LN_S) $(DESTDIR)$(man1dir)/gst-load.1 $(DESTDIR)$(man1dir)/gst-reload.1
+	$(LN_S) $(man1dir)/gst-load.1 $(DESTDIR)$(man1dir)/gst-reload.1
 
 $(srcdir)/blox.texi: $(top_srcdir)/packages/blox/tk/stamp-classes
 	$(GST_PACKAGE) $(patsubst %, %/package.xml, $(^D)) \
Index: lib-src/sincosl.c
--- lib-src/sincosl.c.orig	2008-01-09 18:20:46 +0100
+++ lib-src/sincosl.c	2008-05-15 13:29:33 +0200
@@ -228,7 +228,7 @@
    Computed using gmp.
  */
 
-const long double sincosl_table[] = {
+static const long double sincosl_table[] = {
 
 /* x =  1.48437500000000000000000000000000000e-01L 3ffc3000000000000000000000000000 */
 /* cos(x) = 0.fd2f5320e1b790209b4dda2f98f79caaa7b873aff1014b0fbc5243766d03cb006bc837c4358 */
Index: libgst/prims.def
--- libgst/prims.def.orig	2008-05-14 12:02:33 +0200
+++ libgst/prims.def	2008-05-15 13:29:33 +0200
@@ -1929,7 +1929,11 @@
       long double oopValue = FLOATQ_OOP_VALUE (oop1);
       if COMMON (oopValue >= MIN_ST_INT && oopValue <= MAX_ST_INT)
 	{
+#if defined(__FreeBSD__)
+	  PUSH_INT (lrint ((double)truncl (oopValue)));
+#else
 	  PUSH_INT (lrintl (truncl (oopValue)));
+#endif
 	  PRIM_SUCCEEDED;
 	}
     }
Index: snprintfv/snprintfv/format.c
--- snprintfv/snprintfv/format.c.orig	2008-01-09 18:20:48 +0100
+++ snprintfv/snprintfv/format.c	2008-05-15 13:29:33 +0200
@@ -54,7 +54,7 @@
 #   define isinfl(x) isnanl ((x) - (x))
 #  endif
 #  ifndef HAVE_MODFL
-static snv_long_double modfl (long double x, long double *exp);
+snv_long_double modfl (long double x, long double *exp);
 #  endif
 #  ifndef HAVE_COPYSIGNL
 static snv_long_double copysignl (long double x, long double y);
@@ -1097,7 +1097,7 @@
 
 #if !defined NO_FLOAT_PRINTING && defined HAVE_LONG_DOUBLE
 # ifndef HAVE_MODFL
-static long double modfl (long double x, long double *exp)
+long double modfl (long double x, long double *exp)
 {
   /* To compute the integer part of a positive integer (in this case
      abs(X)), sum a big enough integer to the absolute value, so that
