Gnome-vfs fails to build from source:
Message-Id: <E1BrvtT-0007zW-2U@localhost>
Date: Tue, 03 Aug 2004 11:47:39 +0200
From: Andreas Jochens <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: gnome-vfs: FTBFS with gcc-3.4: conflicting types for 'gnome_vfs_process_run_cancellable'
Package: gnome-vfs
Severity: normal
Tags: patch
When building 'gnome-vfs' with gcc-3.4 I get the following error:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DGNOME_VFS_CONFDIR=\"/etc\" -DGNOME_VFS_DATADIR=\"/usr/share\" -DGNOME_VFS_PREFIX=\"/usr\" -I.. -I../intl -I.. -I../intl -I../libgnomevfs -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gnome-xml -I/usr/include/gconf/1 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -Wall -Wunused -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DLIBDIR=\"/usr/lib\" -DSYSCONFDIR=\"/etc\" -DG_LOG_DOMAIN=\"GnomeVFS\" -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wp,-MD,.deps/gnome-vfs-private-utils.pp -c gnome-vfs-private-utils.c -fPIC -DPIC -o .libs/gnome-vfs-private-utils.o
gnome-vfs-private-utils.c:272: error: conflicting types for 'gnome_vfs_process_run_cancellable'
gnome-vfs-private-utils.h:50: error: previous declaration of 'gnome_vfs_process_run_cancellable' was here
gnome-vfs-private-utils.c:272: error: conflicting types for 'gnome_vfs_process_run_cancellable'
gnome-vfs-private-utils.h:50: error: previous declaration of 'gnome_vfs_process_run_cancellable' was here
make[4]: *** [gnome-vfs-private-utils.lo] Error 1
make[4]: Leaving directory `/gnome-vfs-1.0.5/libgnomevfs'
With the attached patch 'gnome-vfs' can be compiled using gcc-3.4.
Regards
Andreas Jochens
diff -urN ../tmp-orig/gnome-vfs-1.0.5/libgnomevfs/gnome-vfs-private-utils.c ./libgnomevfs/gnome-vfs-private-utils.c
--- ../tmp-orig/gnome-vfs-1.0.5/libgnomevfs/gnome-vfs-private-utils.c2001-07-16 20:21:07.000000000 +0200
+++ ./libgnomevfs/gnome-vfs-private-utils.c2004-08-02 23:37:08.000000000 +0200
@@ -263,7 +263,7 @@
*
* Return value:
**/
-GnomeVFSProcessResult
+GnomeVFSProcessRunResult
gnome_vfs_process_run_cancellable (const gchar *file_name,
const gchar * const argv[],
GnomeVFSProcessOptions options,
diff -urN ../tmp-orig/gnome-vfs-1.0.5/libgnomevfs/gnome-vfs-process.c ./libgnomevfs/gnome-vfs-process.c
--- ../tmp-orig/gnome-vfs-1.0.5/libgnomevfs/gnome-vfs-process.c2001-07-16 20:21:07.000000000 +0200
+++ ./libgnomevfs/gnome-vfs-process.c2004-08-03 11:24:08.349978235 +0200
@@ -258,7 +258,7 @@
*
* Return value: A numeric value reporting the result of the operation.
**/
-GnomeVFSProcessRunResult
+GnomeVFSProcessResult
gnome_vfs_process_signal (GnomeVFSProcess *process,
guint signal_number)
{
Just syncing from Debian should fix this bug.