GNOME Bugzilla – Bug 303668
make fails with error: StockIcons.cs(48) error CS1501: No overload for method `Add' takes `1' arguments
Last modified: 2005-05-12 08:54:02 UTC
Distribution/Version: Ubuntu Hoary (5.04) This is on a Ubuntu Hoary (version 5.04) machine, with liblcms1 version 1.13-1 installed from a .deb. The corresponding liblcms1-dev package is also installed. Both these, and other dependencies were installed from the Ubuntu repository. I was trying to install F-spot from a CVS Checkout. Steps: 1. Check out from CVS : $cvs -d :pserver:anonymous@anoncvs.gnome.org:/cvs/gnome -z3 co f-spot 2. execute ./autogen.sh 3. run make Upon doing the above, the following errors and warnings were observed: ./PhotoArray.cs(14) warning CS0067: The event 'FSpot.PhotoArray.Changed' is never used ./PhotoArray.cs(15) warning CS0067: The event 'FSpot.PhotoArray.ItemChanged' is never used ./GroupAdaptor.cs(19) warning CS0067: The event 'FSpot.GroupAdaptor.GlassSet' is never used ./GroupAdaptor.cs(22) warning CS0067: The event 'FSpot.GroupAdaptor.Changed' is never used ./DirectoryCollection.cs(19) warning CS0067: The event 'FSpot.DirectoryCollection.Changed' is never used ./DirectoryCollection.cs(20) warning CS0067: The event 'FSpot.DirectoryCollection.ItemChanged' is never used ./StockIcons.cs(48) error CS1501: No overload for method `Add' takes `1' arguments ./gnomevfs/ModuleCallback.cs(25) warning CS0067: The event 'Gnome.Vfs.ModuleCallback.Callback' is never used Compilation failed: 1 error(s), 7 warnings make[2]: *** [f-spot.exe] Error 1 make[2]: Leaving directory `/home/carthik/software/cvs/f-spot/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/carthik/software/cvs/f-spot' make: *** [all] Error 2 This prevents me from compiling f-spot from the CVS source. Note, also refer to http://blog.carthik.net/vault/2005/05/09/flickr-f-spot-bug/ for background.
Created attachment 46294 [details] [review] Patch for old versions of gtk-sharp Your verison of gtk-sharp is very old. try applying this patch to f-spot/src/StockIcon.cs with it everything should build fine.
Thank you. I applied the patch, and I could install it just fine. However, now, f-spot does not run on this system. Note: I already uninstalled the version I had installed from the Ubuntu repository by doing a sudo apt-get --purge remove f-spot before installing it from the CVS source. The following is the error I get when I run f-spot from the command line: carthik@milan:~/software/cvs/f-spot $ f-spot Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object in <0x00000> <unknown method> in (wrapper managed-to-native) System.Object:__icall_wrapper_mono_struct_delete_old (intptr,intptr) in (wrapper managed-to-native) Gtk.StockManager:gtk_stock_lookup (string,Gtk.StockItem&) in <0x00017> Gtk.StockManager:Lookup (System.String stock_id, Gtk.StockItem item) in <0x0004b> GtkUtil:MakeToolbarButton (Gtk.Toolbar toolbar, System.String stock_id, System.EventHandler e) in <0x00185> MainWindow:.ctor (.Db db) in <0x0013d> Driver:Main (System.String[] args) I wonder if it is a problem specific to my computer, or with the fact that I had f-spot installed from the ubuntu .deb earlier. Thank you.
This particular problem is still related to using an older version of gtk-sharp. I was hopeful that fixing the compile problem would be enough, but it isn't. I highly recomend installing the latest versions of mono (1.1.7) and gtk-sharp (1.0.8) they should be in breezy and I think some people are offering backports to earlier ubuntu versions.
*** This bug has been marked as a duplicate of 302853 ***
*** This bug has been marked as a duplicate of 303832 *** *** This bug has been marked as a duplicate of 303832 ***