make: error CS1061: Type `Do.Platform.IEnvironmentService' does not contain a definition for `ExpandPath'

23 views
Skip to first unread message

Ben

unread,
Dec 14, 2010, 7:22:02 AM12/14/10
to GNOME Do
Am trying to build the plugins from source (with an aim to making a
small mod to the GoogleSearch plugin to support the 'g'l location
search parameter).

I believe I have all dependencies installed, I'm running Ubuntu 10.10
and the list at http://do.davebsd.com/wiki/Installing_Do included some
packages that no longer exist. I looked for what seem to be more
recent packages until autogen.sh stopped complaining.

However, I've hit an "error CS1061" and this being my first exposure
to C#/Mono, I'm at a bit of a loss...

ben@tp:~/do-plugins$ bzr branch lp:do-plugins
...
ben@tp:~/do-plugins$ cd do-plugins/
ben@tp:~/do-plugins$ ./autogen.sh
I am going to run ./configure with no arguments - if you wish
to pass any to it, please specify them on the ./autogen.sh command
line.
Running aclocal -I . -I m4/shamrock ...
Running automake --gnu ...
configure.ac:6: installing `./install-sh'
configure.ac:6: installing `./missing'
Running autoconf ...
Running intltoolize --force --copy --automake ...
Running ./configure ...
configure: WARNING: unrecognized options: --enable-maintainer-mode
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking whether NLS is requested... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking for intltool >= 0.35.0... 0.41.1 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.1
checking for XML::Parser... ok
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed... ast bg ca cs da de en_AU
en_CA en_GB es fr gl gu hr hu is it ja ko la nb nl pl pt_BR pt ru sv
tr vi zh_CN zh_TW
checking for pkg-config... /usr/bin/pkg-config
checking for mono... /usr/bin/mono
checking for gmcs... /usr/bin/gmcs
checking pkg-config is at least version 0.9.0... yes
checking for BANSHEE_INDEXER... no
checking for EVOLUTION_SHARP... no
checking for FLICKRNET... no
checking for GDATA_SHARP_CALENDAR... no
checking for GDATA_SHARP_CONTACTS... no
checking for GDATA_SHARP_DOCUMENTS... no
checking for GDATA_SHARP_YOUTUBE... no
checking for WNCK_SHARP_10... yes
checking for GCONF_SHARP_20... yes
checking for GLADE_SHARP_20... yes
checking for GLIB_SHARP_20... yes
checking for GNOME_DESKTOP_SHARP_20... yes
checking for GNOME_KEYRING_SHARP... yes
checking for GNOME_SHARP_20... yes
checking for GNOME_VFS_SHARP_20... yes
checking for GTK_SHARP_20... yes
checking for MONO_ADDINS... yes
checking for MONO_ADDINS_GUI... yes
checking for MONO_ADDINS_SETUP... yes
checking for NDESK_DBUS_10... yes
checking for NDESK_DBUS_GLIB_10... yes
checking for NOTIFY_SHARP... yes
checking for DO_PLATFORM... yes
checking for DO_PLATFORM_LINUX... yes
checking for DO_UNIVERSE... yes
configure: creating ./config.status
config.status: creating Alias/Makefile
config.status: creating Alias/Resources/Alias.addin.xml
config.status: creating AptURL/Makefile
config.status: creating AptURL/Resources/AptURL.addin.xml
config.status: creating Archive/Makefile
config.status: creating Archive/Resources/Archive.addin.xml
config.status: creating Baconator/Makefile
config.status: creating Baconator/Resources/Baconator.addin.xml
config.status: creating Banshee/Makefile
config.status: creating Banshee/Resources/Banshee.addin.xml
config.status: creating Bibtex/Makefile
config.status: creating Bibtex/Resources/Bibtex.addin.xml
config.status: creating Chromium/Makefile
config.status: creating Chromium/Resources/Chromium.addin.xml
config.status: creating Cl.ickable/Makefile
config.status: creating Cl.ickable/Resources/Cl.ickable.addin.xml
config.status: creating ClawsMail/Makefile
config.status: creating ClawsMail/Resources/ClawsMail.addin.xml
config.status: creating Confluence/Makefile
config.status: creating Confluence/Resources/Confluence.addin.xml
config.status: creating Del.icio.us/Makefile
config.status: creating Del.icio.us/Resources/delicious.addin.xml
config.status: creating DiskMounter/Makefile
config.status: creating DiskMounter/Resources/DiskMounter.addin.xml
config.status: creating Dropbox/Makefile
config.status: creating Dropbox/Resources/Dropbox.addin.xml
config.status: creating Emesene/Makefile
config.status: creating Emesene/Resources/Emesene.addin.xml
config.status: creating EOG-Slideshow/Makefile
config.status: creating EOG-Slideshow/Resources/EOG-
Slideshow.addin.xml
config.status: creating Epiphany/Makefile
config.status: creating Epiphany/Resources/Epiphany.addin.xml
config.status: creating Evolution/Makefile
config.status: creating Evolution/Resources/Evolution.addin.xml
config.status: creating Exaile/Makefile
config.status: creating Exaile/Resources/Exaile.addin.xml
config.status: creating File/Makefile
config.status: creating File/Resources/File.addin.xml
config.status: creating Firefox/Makefile
config.status: creating Firefox/Resources/Firefox.addin.xml
config.status: creating Flickr/Makefile
config.status: creating Flickr/Resources/Flickr.addin.xml
config.status: creating GNOME-Calculator/Makefile
config.status: creating GNOME-Calculator/Resources/GNOME-
Calculator.addin.xml
config.status: creating GNOME-Dictionary/Makefile
config.status: creating GNOME-Dictionary/Resources/GNOME-
Dictionary.addin.xml
config.status: creating GNOME-Screenshot/Makefile
config.status: creating GNOME-Screenshot/Resources/GNOME-
Screenshot.addin.xml
config.status: creating GNOME-Session/Makefile
config.status: creating GNOME-Session/Resources/GNOME-
Session.addin.xml
config.status: creating GNOME-Terminal/Makefile
config.status: creating GNOME-Terminal/Resources/GNOME-
Terminal.addin.xml
config.status: creating GoogleCalculator/Makefile
config.status: creating GoogleCalculator/Resources/
GoogleCalculator.addin.xml
config.status: creating GoogleCalendar/Makefile
config.status: creating GoogleCalendar/Resources/
GoogleCalendar.addin.xml
config.status: creating GoogleContacts/Makefile
config.status: creating GoogleContacts/Resources/
GoogleContacts.addin.xml
config.status: creating GoogleDocs/Makefile
config.status: creating GoogleDocs/Resources/GoogleDocs.addin.xml
config.status: creating GoogleMaps/Makefile
config.status: creating GoogleMaps/Resources/GoogleMaps.addin.xml
config.status: creating GoogleSearch/Makefile
config.status: creating GoogleSearch/Resources/GoogleSearch.addin.xml
config.status: creating ImageShack/Makefile
config.status: creating ImageShack/Resources/ImageShack.addin.xml
config.status: creating JIRA/Makefile
config.status: creating JIRA/Resources/JIRA.addin.xml
config.status: creating Launchpad/Makefile
config.status: creating Launchpad/Resources/Launchpad.addin.xml
config.status: creating LocateFiles/Makefile
config.status: creating LocateFiles/Resources/LocateFiles.addin.xml
config.status: creating ManLookUp/Makefile
config.status: creating ManLookUp/Resources/ManLookUp.addin.xml
config.status: creating Microblogging/Makefile
config.status: creating Microblogging/Resources/
Microblogging.addin.xml
config.status: creating MPD/Makefile
config.status: creating MPD/Resources/MPD.addin.xml
config.status: creating NX/Makefile
config.status: creating NX/Resources/NX.addin.xml
config.status: creating OpenSearch/Makefile
config.status: creating OpenSearch/Resources/OpenSearch.addin.xml
config.status: creating Opera/Makefile
config.status: creating Opera/Resources/Opera.addin.xml
config.status: creating Pastebin/Makefile
config.status: creating Pastebin/Resources/Pastebin.addin.xml
config.status: creating Pidgin/Makefile
config.status: creating Pidgin/Resources/Pidgin.addin.xml
config.status: creating PingFM/Makefile
config.status: creating PingFM/Resources/PingFM.addin.xml
config.status: creating Putty/Makefile
config.status: creating Putty/Resources/Putty.addin.xml
config.status: creating Qalculate/Makefile
config.status: creating Qalculate/Resources/Qalculate.addin.xml
config.status: creating Quote/Makefile
config.status: creating Quote/Resources/Quote.addin.xml
config.status: creating RememberTheMilk/Makefile
config.status: creating RememberTheMilk/Resources/RTM.addin.xml
config.status: creating RemindMe/Makefile
config.status: creating RemindMe/Resources/RemindMe.addin.xml
config.status: creating Rhythmbox/Makefile
config.status: creating Rhythmbox/Resources/Rhythmbox.addin.xml
config.status: creating Riptide/Makefile
config.status: creating Riptide/Resources/Riptide.addin.xml
config.status: creating RSS/Makefile
config.status: creating RSS/Resources/RSS.addin.xml
config.status: creating Shelf/Makefile
config.status: creating Shelf/Resources/Shelf.addin.xml
config.status: creating Skype/Makefile
config.status: creating Skype/Resources/Skype.addin.xml
config.status: creating SqueezeCenter/Makefile
config.status: creating SqueezeCenter/Resources/
SqueezeCenter.addin.xml
config.status: creating SSH/Makefile
config.status: creating SSH/Resources/SSH.addin.xml
config.status: creating StockQuote/Makefile
config.status: creating StockQuote/Resources/StockQuote.addin.xml
config.status: creating RequestTracker/Makefile
config.status: creating RequestTracker/Resources/
RequestTracker.addin.xml
config.status: creating SystemServices/Makefile
config.status: creating SystemServices/Resources/
SystemServices.addin.xml
config.status: creating Tasque/Makefile
config.status: creating Tasque/Resources/Tasque.addin.xml
config.status: creating TerminalServerClient/Makefile
config.status: creating TerminalServerClient/Resources/
TerminalServerClient.addin.xml
config.status: creating Text/Makefile
config.status: creating Text/Resources/Text.addin.xml
config.status: creating Thunderbird/Makefile
config.status: creating Thunderbird/Resources/Thunderbird.addin.xml
config.status: creating TinyUrl/Makefile
config.status: creating TinyUrl/Resources/TinyUrl.addin.xml
config.status: creating Tracker/Makefile
config.status: creating Tracker/Resources/TrackerSearch.addin.xml
config.status: creating Translate/Makefile
config.status: creating Translate/Resources/Translate.addin.xml
config.status: creating Tomboy/Makefile
config.status: creating Tomboy/Resources/Tomboy.addin.xml
config.status: creating Vinagre/Makefile
config.status: creating Vinagre/Resources/Vinagre.addin.xml
config.status: creating VirtualBox/Makefile
config.status: creating VirtualBox/Resources/VirtualBox.addin.xml
config.status: creating VolumeControl/Makefile
config.status: creating VolumeControl/Resources/
VolumeControl.addin.xml
config.status: creating WindowManager/Makefile
config.status: creating WindowManager/Resources/
WindowManager.addin.xml
config.status: creating Woof/Makefile
config.status: creating Woof/Resources/Woof.addin.xml
config.status: creating Wordnet/Makefile
config.status: creating Wordnet/Resources/Wordnet.addin.xml
config.status: creating Xmms2/Makefile
config.status: creating Xmms2/Resources/xmms2.addin.xml
config.status: creating XRandR/Makefile
config.status: creating XRandR/Resources/XRandR.addin.xml
config.status: creating YouTube/Makefile
config.status: creating YouTube/Resources/Youtube.addin.xml
config.status: creating Zim/Makefile
config.status: creating Zim/Resources/Zim.addin.xml
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
configure: WARNING: unrecognized options: --enable-maintainer-mode

gnome-do-plugins-0.8.2

Build Environment
Install Prefix: /usr/local
Plugin directory: /usr/local/lib/gnome-do/plugins

Mono C# Compiler: /usr/bin/gmcs
Mono Runtime: /usr/bin/mono

Optional plugins:
Banshee: no
Evolution: no
Flickr: no
Google Calendar: no
Google Contacts: no
Google Docs: no
Window Manager: yes
YouTube: no

Build/Development:
Release Build: no

ben@tp:~/do-plugins$ make
...

make[1]: Leaving directory `/home/ben/do-plugins/Exaile'
Making all in File
make[1]: Entering directory `/home/ben/do-plugins/File'
Compiling File.dll...
./src/Do/Do.FilesAndFolders/AbstractFileAction.cs(71,60): error
CS1061: Type `Do.Platform.IEnvironmentService' does not contain a
definition for `ExpandPath' and no extension method `ExpandPath' of
type `Do.Platform.IEnvironmentService' could be found (are you missing
a using directive or an assembly reference?)
./src/Do/Do.FilesAndFolders/AbstractFileAction.cs(112,53): error
CS1061: Type `Do.Platform.IEnvironmentService' does not contain a
definition for `ExpandPath' and no extension method `ExpandPath' of
type `Do.Platform.IEnvironmentService' could be found (are you missing
a using directive or an assembly reference?)
./src/Do/Do.FilesAndFolders/IndexedFolder.cs(39,53): error CS1061:
Type `Do.Platform.IEnvironmentService' does not contain a definition
for `ExpandPath' and no extension method `ExpandPath' of type
`Do.Platform.IEnvironmentService' could be found (are you missing a
using directive or an assembly reference?)
Compilation failed: 3 error(s), 0 warnings
make[1]: *** [../build/File.dll] Error 1
make[1]: Leaving directory `/home/ben/do-plugins/File'
make: *** [all-recursive] Error 1
ben@tp:~/do-plugins$

Christopher James Halse Rogers

unread,
Dec 15, 2010, 4:41:44 PM12/15/10
to gnom...@googlegroups.com
On Tue, 2010-12-14 at 04:22 -0800, Ben wrote:
> Am trying to build the plugins from source (with an aim to making a
> small mod to the GoogleSearch plugin to support the 'g'l location
> search parameter).

Cool!


>
> I believe I have all dependencies installed, I'm running Ubuntu 10.10
> and the list at http://do.davebsd.com/wiki/Installing_Do included some
> packages that no longer exist. I looked for what seem to be more
> recent packages until autogen.sh stopped complaining.
>
> However, I've hit an "error CS1061" and this being my first exposure
> to C#/Mono, I'm at a bit of a loss...
>

This would be the equivalent of C's “function BAR undefined” - the
compiler can't find the definition of a function the code is using.

This is because that function was introduced in Do 0.8.4 - which isn't
in Ubuntu yet - but I haven't bumped the dependency in do-plugins
configure.

At the moment, you need to disable the Window Manager plugin to build
against Do 0.8.4, until I finish merging the various plugin branches and
cut a new do-plugins release.

signature.asc
Reply all
Reply to author
Forward
0 new messages