? mypatch.diff
Index: common/m4/gst-error.m4
===================================================================
RCS file: /cvs/gstreamer/common/m4/gst-error.m4,v
retrieving revision 1.3
diff -u -r1.3 gst-error.m4
--- common/m4/gst-error.m4	16 Oct 2005 12:26:58 -0000	1.3
+++ common/m4/gst-error.m4	5 Oct 2006 11:14:41 -0000
@@ -30,6 +30,11 @@
   if test "x$1" != "xno"
   then
     AS_COMPILER_FLAG(-Werror, ERROR_CFLAGS="$ERROR_CFLAGS -Werror")
+    dnl if -Werror isn't suported, try -errwarn=%all
+    if test "x$ERROR_CFLAGS" == "x"
+    then
+      AS_COMPILER_FLAG(-errwarn=%all, ERROR_CFLAGS="$ERROR_CFLAGS -errwarn=%all")
+    fi
   fi
   
   AC_SUBST(ERROR_CFLAGS)
Index: libs/gst/net/Makefile.am
===================================================================
RCS file: /cvs/gstreamer/gstreamer/libs/gst/net/Makefile.am,v
retrieving revision 1.7
diff -u -r1.7 Makefile.am
--- libs/gst/net/Makefile.am	1 Jul 2006 23:26:06 -0000	1.7
+++ libs/gst/net/Makefile.am	5 Oct 2006 11:14:41 -0000
@@ -12,8 +12,12 @@
     gstnettimepacket.c \
     gstnettimeprovider.c
 
+if HAVE_CPU_SPARC
+    EXTRALIBS = -lresolv
+endif
+
 libgstnet_@GST_MAJORMINOR@_la_CFLAGS = $(GST_OBJ_CFLAGS)
-libgstnet_@GST_MAJORMINOR@_la_LIBADD = $(GST_OBJ_LIBS)
+libgstnet_@GST_MAJORMINOR@_la_LIBADD = $(GST_OBJ_LIBS) $(EXTRALIBS)
 libgstnet_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
 
 CLEANFILES = *.gcno *.gcda *.gcov
