GNOME Bugzilla – Bug 515727
2.15.4 not compiling with glib 2.15.5
Last modified: 2008-02-12 14:13:12 UTC
It looks like you guys are releasing code using stuff that's not even released yet! :-) file.cc:3230: error: 'g_file_query_default_handler' was not declared in this scope
Indeed, that function was added after glib 2.15.4.
Oh well. A new glib tarball will arrive sooner or later.
2.15.5 was just released, I guess it should build with that tarball. I've committed a change to glibmm to require this version in svn.
Does not compile with 2.5.15 either : file.cc: In member function 'void Gio::File::mount_mountable(const Glib::RefPtr<Gio::MountOperation>&, const Gio::SlotAsyncReady&, const Glib::RefPtr<Gio::Cancellable>&)': file.cc:1018: error: cannot convert 'GMountOperation*' to 'GMountMountFlags' for argument '2' to 'void g_file_mount_mountable(GFile*, GMountMountFlags, GMountOperation*, GCancellable*, void (*)(GObject*, GAsyncResult*, void*), void*)' file.cc: In member function 'void Gio::File::mount_mountable(const Glib::RefPtr<Gio::MountOperation>&, const Gio::SlotAsyncReady&)': file.cc:1032: error: cannot convert 'GMountOperation*' to 'GMountMountFlags' for argument '2' to 'void g_file_mount_mountable(GFile*, GMountMountFlags, GMountOperation*, GCancellable*, void (*)(GObject*, GAsyncResult*, void*), void*)' file.cc: In member function 'void Gio::File::mount_mountable(const Gio::SlotAsyncReady&)': file.cc:1046: error: invalid conversion from 'int' to 'GMountMountFlags' file.cc:1046: error: cannot convert 'void (*)(GObject*, GAsyncResult*, void*)' to 'GCancellable*' for argument '4' to 'void g_file_mount_mountable(GFile*, GMountMountFlags, GMountOperation*, GCancellable*, void (*)(GObject*, GAsyncResult*, void*), void*)' file.cc: In member function 'void Gio::File::mount_mountable()': file.cc:1055: error: invalid conversion from 'int' to 'GMountMountFlags' /usr/include/glib-2.0/gio/gfile.h:818: error: too few arguments to function 'void g_file_mount_mountable(GFile*, GMountMountFlags, GMountOperation*, GCancellable*, void (*)(GObject*, GAsyncResult*, void*), void*)' file.cc:1055: error: at this point in file file.cc: In member function 'void Gio::File::mount_enclosing_volume(const Glib::RefPtr<Gio::MountOperation>&, const Gio::SlotAsyncReady&, const Glib::RefPtr<Gio::Cancellable>&)': file.cc:1108: error: cannot convert 'GMountOperation*' to 'GMountMountFlags' for argument '2' to 'void g_file_mount_enclosing_volume(GFile*, GMountMountFlags, GMountOperation*, GCancellable*, void (*)(GObject*, GAsyncResult*, void*), void*)' file.cc: In member function 'void Gio::File::mount_enclosing_volume(const Glib::RefPtr<Gio::MountOperation>&, const Gio::SlotAsyncReady&)': file.cc:1122: error: cannot convert 'GMountOperation*' to 'GMountMountFlags' for argument '2' to 'void g_file_mount_enclosing_volume(GFile*, GMountMountFlags, GMountOperation*, GCancellable*, void (*)(GObject*, GAsyncResult*, void*), void*)' file.cc: In member function 'void Gio::File::mount_enclosing_volume(const Gio::SlotAsyncReady&)': file.cc:1136: error: invalid conversion from 'int' to 'GMountMountFlags' file.cc:1136: error: cannot convert 'void (*)(GObject*, GAsyncResult*, void*)' to 'GCancellable*' for argument '4' to 'void g_file_mount_enclosing_volume(GFile*, GMountMountFlags, GMountOperation*, GCancellable*, void (*)(GObject*, GAsyncResult*, void*), void*)' file.cc: In member function 'void Gio::File::mount_enclosing_volume()': file.cc:1145: error: invalid conversion from 'int' to 'GMountMountFlags' /usr/include/glib-2.0/gio/gfile.h:809: error: too few arguments to function 'void g_file_mount_enclosing_volume(GFile*, GMountMountFlags, GMountOperation*, GCancellable*, void (*)(GObject*, GAsyncResult*, void*), void*)' file.cc:1145: error: at this point in file
ugh, that change was in the 2.15.5 tarball of glib? Well, I fixed that error in svn last night, so I guess you'll just have to wait for the next glibmm release.
I released a new glibmm tarball.