Re: compile problem for nautilus-media



> media-info.c: In function `gst_media_info_read_idler':
> media-info.c:264: parse error before `*'
> media-info.c:267: `priv' undeclared (first use in this function)
> media-info.c:267: (Each undeclared identifier is reported only once
> media-info.c:267: for each function it appears in.)
> media-info.c:269: case label not within a switch statement
> media-info.c:274: case label not within a switch statement
> media-info.c:311: case label not within a switch statement
> media-info.c:332: case label not within a switch statement
> media-info.c:355: case label not within a switch statement
> media-info.c:374: case label not within a switch statement
> media-info.c:416: case label not within a switch statement
> media-info.c:418: default label not within a switch statement
> make[4]: *** [libgstmedia_info_la-media-info.lo] Error 1
> make[4]: Leaving directory `/home/gaohe/PD_Work/build/garnome/garnome-0.27.1/gnome/nautilus-media/work/main.d/nautilus-media-0.3.3.1/media-info'

This is a gcc 2.9x issue -- the attached patch should fix it for you.

Regards,

Paul

diff -urN vanilla/gnome/nautilus-media/checksums debian/gnome/nautilus-media/checksums
--- vanilla/gnome/nautilus-media/checksums	2003-09-11 10:02:22.000000000 +1000
+++ debian/gnome/nautilus-media/checksums	2003-12-09 16:31:31.000000000 +1100
@@ -1 +1,2 @@
 10e16c2db8bb62e96ef79b0f25af8f68  download/nautilus-media-0.3.3.1.tar.bz2
+4c9364f2ed025b2a947c0e97f8f4317c  download/gcc-2.95-compile.patch
diff -urN vanilla/gnome/nautilus-media/files/gcc-2.95-compile.patch debian/gnome/nautilus-media/files/gcc-2.95-compile.patch
--- vanilla/gnome/nautilus-media/files/gcc-2.95-compile.patch	1970-01-01 10:00:00.000000000 +1000
+++ debian/gnome/nautilus-media/files/gcc-2.95-compile.patch	2003-12-09 16:31:31.000000000 +1100
@@ -0,0 +1,16 @@
+--- nautilus-media-0.3.3.1/media-info/media-info.c~	Tue Aug 12 16:04:06 2003
++++ nautilus-media-0.3.3.1/media-info/media-info.c	Fri Sep 19 01:48:14 2003
+@@ -258,10 +258,12 @@
+ gboolean
+ gst_media_info_read_idler (GstMediaInfo *info, GstMediaInfoStream **streamp)
+ {
++  GstMediaInfoPriv *priv = NULL;
++
+   /* if it's NULL then we're sure something went wrong higher up) */
+   if (info == NULL) return FALSE;
+ 
+-  GstMediaInfoPriv *priv = info->priv;
++  priv = info->priv;
+ 
+   g_assert (streamp != NULL);
+   switch (priv->state)
diff -urN vanilla/gnome/nautilus-media/Makefile debian/gnome/nautilus-media/Makefile
--- vanilla/gnome/nautilus-media/Makefile	2003-09-11 10:02:22.000000000 +1000
+++ debian/gnome/nautilus-media/Makefile	2003-12-09 16:31:31.000000000 +1100
@@ -2,6 +2,7 @@
 GARVERSION = 0.3.3.1
 CATEGORIES = gnome
 DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2
+PATCHFILES = gcc-2.95-compile.patch
 
 LIBDEPS = gnome/nautilus gnome/gst-plugins
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]