Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building fails #1484

Closed
mfouesneau opened this issue Mar 22, 2014 · 15 comments
Closed

Building fails #1484

mfouesneau opened this issue Mar 22, 2014 · 15 comments

Comments

@mfouesneau
Copy link

Building fails with a namespace issue on webkit

./SparkleEventLog.cs(21,7): error CS0246: The type or namespace name `WebKit' could not be found. Are you missing an assembly reference?
./SparkleEventLog.cs(38,17): error CS0246: The type or namespace name `WebView' could not be found. Are you missing an assembly reference?
./SparkleEventLog.cs(280,60): error CS0246: The type or namespace name `WebKit' could not be found. Are you missing an assembly referenc

I include below the full configure and make logs

Running libtoolize --force --copy --automake ...
Running aclocal -I build/m4/sparkleshare -I build/m4/shamrock -I build/m4/shave ...
Running autoconf ...
Running automake --gnu --add-missing --force --copy -Wno-portability -Wno-portability ...
Running ./configure --enable-maintainer-mode --prefix=/usr ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for MONO_MODULE... yes
checking for mono... /usr/bin/mono
checking for dmcs... /usr/bin/dmcs
checking for Mono 4.0 GAC for System.dll... found
checking for GTKSHARP... yes
checking for GLIBSHARP... yes
checking for NOTIFY_SHARP... yes
checking for WEBKITGTK_SHARP... yes
checking for sed... sed
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating build/Makefile
config.status: creating build/m4/Makefile
config.status: creating build/m4/shave/shave
config.status: creating build/m4/shave/shave-libtool
config.status: creating SparkleLib/Defines.cs
config.status: creating SparkleLib/Makefile
config.status: creating SparkleLib/Git/Makefile
config.status: creating SparkleShare/Common/Makefile
config.status: creating SparkleShare/Common/HTML/Makefile
config.status: creating SparkleShare/Common/Plugins/Makefile
config.status: creating SparkleShare/Common/Pixmaps/Makefile
config.status: creating SparkleShare/Linux/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/icons/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/icons/gnome/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/icons/ubuntu-mono-dark/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/icons/ubuntu-mono-light/Makefile
config.status: creating SparkleShare/Linux/sparkleshare
config.status: creating SparkleShare/Makefile
config.status: creating Makefile

SparkleShare 1.4

Configuration:
       Prefix : /usr


Making all in build
Making all in m4
Making all in SparkleLib
  MCS   ../bin/SparkleLib.dll
warning CS2002: Source file `./Defines.cs' specified multiple times
Making all in SparkleLib/Git
  MCS   ../../bin/SparkleLib.Git.dll
./SparkleGit.cs(87,17): warning CS0436: The type `SparkleLib.Defines' conflicts with the imported type of same name'. Ignoring the imported type definition
./../Defines.cs(28,18): (Location of the symbol related to previous warning)
/tmp/yaourt-tmp-morgan/aur-sparkleshare-git/src/SparkleShare/SparkleLib/Git/../../bin/SparkleLib.dll (Location of the symbol related to previous warning)
Compilation succeeded - 1 warning(s)
Making all in SparkleShare
Making all in Linux
Making all in Pixmaps
Making all in icons
Making all in ubuntu-mono-dark
Making all in ubuntu-mono-light
Making all in gnome
  MCS   ../../bin/SparkleShare.exe
./SparkleEventLog.cs(21,7): error CS0246: The type or namespace name `WebKit' could not be found. Are you missing an assembly reference?
./SparkleEventLog.cs(38,17): error CS0246: The type or namespace name `WebView' could not be found. Are you missing an assembly reference?
./SparkleEventLog.cs(280,60): error CS0246: The type or namespace name `WebKit' could not be found. Are you missing an assembly reference?
Compilation failed: 3 error(s), 0 warnings
Makefile:851: recipe for target '../../bin/SparkleShare.exe' failed
make[3]: *** [../../bin/SparkleShare.exe] Error 1
Makefile:554: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:335: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
Makefile:383: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

I looked at previous similar issues, so I should add that I have all the dependencies (let me know if you also need the version)

  • git
  • libnotify
  • libwebkit
  • mono
  • gtk-sharp (from git)
  • ndesk-dbus
  • ndesk-dbus-glib
  • intltool
  • webkit-sharp
  • notify-sharp (from git )
  • desktop-file-utils
  • webkitgtk-sharp (from git)
  • soup-sharp (from git)
@hbons
Copy link
Owner

hbons commented Apr 19, 2014

no idea. asking maybe @bl8 can help. :)

@bl8
Copy link
Contributor

bl8 commented Apr 19, 2014

Hi,

I've just built SparkleShare from git master on Ubuntu 14.04, and it works for me.

So some question to try to figure things out:
Which distro are you using ?
Did you get webkitgtk-sharp from https://github.com/xDarkice/webkitgtk-sharp ?
Did you configure it with prefix=/usr ?
Could you build SparkeShare with "make V=1" ? This will make the build more verbose, in particular showing the complete compiler command line.

@mfouesneau
Copy link
Author

I tried to reinstall webkitgtk-sharp with the latest version in xDarkice repo. Still the same issue:

$ make V=1
Making all in build
Making all in m4
Making all in SparkleLib
/usr/bin/dmcs -codepage:utf8 -nowarn:0278 -nowarn:0078 -define:HAVE_GTK_2_10 -define:NET_2_0 -debug -target:library -out:../bin/SparkleLib.dll ./Defines.cs ./SparkleBackend.cs ./SparkleConfig.cs ./SparkleExtensions.cs ./SparkleFetcherBase.cs ./SparkleFetcherSSH.cs ./SparkleListenerBase.cs ./SparkleListenerFactory.cs ./SparkleListenerTcp.cs ./SparkleLogger.cs ./SparkleRepoBase.cs ./SparkleUser.cs ./SparkleWatcher.cs ./SparkleWrappers.cs ./Defines.cs
warning CS2002: Source file `./Defines.cs' specified multiple times
Making all in SparkleLib/Git
/usr/bin/dmcs -codepage:utf8 -nowarn:0278 -nowarn:0078 -define:HAVE_GTK_2_10 -define:NET_2_0 -debug -target:library -out:../../bin/SparkleLib.Git.dll -r:../../bin/SparkleLib.dll ./SparkleGit.cs ./SparkleFetcherGit.cs ./SparkleRepoGit.cs ./../Defines.cs
./SparkleGit.cs(87,17): warning CS0436: The type `SparkleLib.Defines' conflicts with the imported type of same name'. Ignoring the imported type definition
./../Defines.cs(28,18): (Location of the symbol related to previous warning)
/home/morgan/Downloads/sparkleshare-git/SparkleShare/SparkleLib/Git/../../bin/SparkleLib.dll (Location of the symbol related to previous warning)
Compilation succeeded - 1 warning(s)
Making all in SparkleShare
Making all in Linux
Making all in Pixmaps
Making all in icons
Making all in ubuntu-mono-dark
Making all in ubuntu-mono-light
Making all in gnome
/usr/bin/dmcs -codepage:utf8 -nowarn:0278 -nowarn:0078 -define:HAVE_GTK_2_10 -define:NET_2_0 -debug -target:exe -out:../../bin/SparkleShare.exe -r:../../bin/SparkleLib.dll -r:Mono.Posix -r:System -r:/usr/lib/mono/notify-sharp/notify-sharp.dll -r:/usr/lib/mono/webkitgtk-sharp/webkitgtk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/atk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/cairo-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/gdk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/gio-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/glib-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/gtk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/pango-sharp.dll ./../Program.cs ./../SparkleAboutController.cs ./../SparkleAvatars.cs ./../SparkleBubblesController.cs ./../SparkleControllerBase.cs ./../SparkleEventLogController.cs ./../SparkleExtensions.cs ./../SparkleInvite.cs ./../SparkleKeys.cs ./../SparklePlugin.cs ./../SparkleSetupController.cs ./../SparkleStatusIconController.cs ./SparkleAbout.cs ./SparkleBubbles.cs ./SparkleController.cs ./SparkleEventLog.cs ./SparkleSetup.cs ./SparkleSetupWindow.cs ./SparkleStatusIcon.cs ./SparkleUI.cs ./SparkleUIHelpers.cs
./SparkleEventLog.cs(21,7): error CS0246: The type or namespace name `WebKit' could not be found. Are you missing an assembly reference?
./SparkleEventLog.cs(38,17): error CS0246: The type or namespace name `WebView' could not be found. Are you missing an assembly reference?
./SparkleEventLog.cs(280,60): error CS0246: The type or namespace name `WebKit' could not be found. Are you missing an assembly reference?
Compilation failed: 3 error(s), 0 warnings
Makefile:851: recipe for target '../../bin/SparkleShare.exe' failed
make[3]: *** [../../bin/SparkleShare.exe] Error 1
Makefile:554: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:335: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
Makefile:383: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

I am on arch linux

@cebe
Copy link
Contributor

cebe commented May 20, 2014

Have a similar problem building master on debian. Why is webkit needed for SparkleShare?

@hbons
Copy link
Owner

hbons commented May 20, 2014

@cebe the Recent Events window uses Webkit to present the log.

@cebe
Copy link
Contributor

cebe commented May 20, 2014

thanks for the info. In general it looks like SparkleShare has a huge amount of dependencies compared to what it acutally does. Did not manage to compile the latest version on debian wheezy today because of dependencies failing to build.

@hbons
Copy link
Owner

hbons commented May 20, 2014

@cebe it's not a huge number. it's just relatively new stuff that hasn't made it into the distros yet.

@mfouesneau
Copy link
Author

I was able to compile and install it but now GTK seems to raise issues

Marshaling activate signal
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type 'SparkleShare.SparkleEventLog' from assembly 'SparkleShare, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0 
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
   at GLib.Application.g_application_run(IntPtr , Int32 , IntPtr )
   at GLib.Application.Run(Int32 argc, System.String argv)
   at SparkleShare.SparkleUI.Run()
   at SparkleShare.Program.Main(System.String[] args)

@cebe
Copy link
Contributor

cebe commented May 20, 2014

my current issue is here btw: sundermann/soup-sharp#2

@cebe
Copy link
Contributor

cebe commented May 20, 2014

After working around the dependency issues with soup-sharp and webkit I now encounter the same issue as described here in the original report.

@mfouesneau how did you make it compile?

@mfouesneau
Copy link
Author

I am trying to figure out, because I downloaded the fresh update from the repo and get again the same error. I believe I changed something in the makefile

Also quite glad you have the same issue. Not that it is good news for you, but at least it is not from my system.

@mfouesneau
Copy link
Author

Trying again from scratch (made a git pull just before starting)

No error in the autogen / configure. All dependencies are found correctly

$ ./autogen.sh 
Running libtoolize --force --copy --automake ...
Running aclocal -I build/m4/sparkleshare -I build/m4/shamrock -I build/m4/shave ...
Running autoconf ...
Running automake --gnu --add-missing --force --copy -Wno-portability -Wno-portability ...
WARNING: I am going to run configure without any arguments.
Running ./configure --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... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for MONO_MODULE... yes
checking for mono... /usr/bin/mono
checking for dmcs... /usr/bin/dmcs
checking for Mono 4.0 GAC for System.dll... found
checking for GTKSHARP... yes
checking for GLIBSHARP... yes
checking for NOTIFY_SHARP... yes
checking for WEBKITGTK_SHARP... yes
checking for sed... sed
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating build/Makefile
config.status: creating build/m4/Makefile
config.status: creating build/m4/shave/shave
config.status: creating build/m4/shave/shave-libtool
config.status: creating SparkleLib/Defines.cs
config.status: creating SparkleLib/Makefile
config.status: creating SparkleLib/Git/Makefile
config.status: creating SparkleShare/Common/Makefile
config.status: creating SparkleShare/Common/HTML/Makefile
config.status: creating SparkleShare/Common/Plugins/Makefile
config.status: creating SparkleShare/Common/Pixmaps/Makefile
config.status: creating SparkleShare/Linux/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/icons/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/icons/gnome/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/icons/ubuntu-mono-dark/Makefile
config.status: creating SparkleShare/Linux/Pixmaps/icons/ubuntu-mono-light/Makefile
config.status: creating SparkleShare/Linux/sparkleshare
config.status: creating SparkleShare/Makefile
config.status: creating Makefile

SparkleShare 1.4

Configuration:
       Prefix : /usr/local

However make fails at the WebKit namespace as before

$ make
Making all in build
Making all in m4
Making all in SparkleLib
  MCS   ../bin/SparkleLib.dll
warning CS2002: Source file `./Defines.cs' specified multiple times
Making all in SparkleLib/Git
  MCS   ../../bin/SparkleLib.Git.dll
./SparkleGit.cs(87,17): warning CS0436: The type `SparkleLib.Defines' conflicts with the imported type of same name'. Ignoring the imported type definition
./../Defines.cs(28,18): (Location of the symbol related to previous warning)
/home/morgan/Downloads/sparkleshare-git/SparkleShare/SparkleLib/Git/../../bin/SparkleLib.dll (Location of the symbol related to previous warning)
Compilation succeeded - 1 warning(s)
Making all in SparkleShare
Making all in Linux
Making all in Pixmaps
Making all in icons
Making all in ubuntu-mono-dark
Making all in ubuntu-mono-light
Making all in gnome
  MCS   ../../bin/SparkleShare.exe
./SparkleEventLog.cs(21,7): error CS0246: The type or namespace name `WebKit' could not be found. Are you missing an assembly reference?
./SparkleEventLog.cs(38,17): error CS0246: The type or namespace name `WebView' could not be found. Are you missing an assembly reference?
./SparkleEventLog.cs(280,60): error CS0246: The type or namespace name `WebKit' could not be found. Are you missing an assembly reference?
Compilation failed: 3 error(s), 0 warnings
Makefile:851: recipe for target '../../bin/SparkleShare.exe' failed
make[3]: *** [../../bin/SparkleShare.exe] Error 1
Makefile:554: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:335: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
Makefile:383: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

@mfouesneau
Copy link
Author

I figured what I did to make the compilation work: use webkitgtk-sharp 2.0.0-1 instead of the latest git version.

Once you downgrade to this version it works!

@ashleyblackmore
Copy link

@mfouesneau how did you get hold of that version? Doesn't seem like the repo has tags/branches afaict. Did you use a package or git reset?

@mfouesneau
Copy link
Author

@ashleyblackmore you can get it from the arch repositories.
https://www.archlinux.org/packages/community/x86_64/webkitgtk-sharp/ (check the architecture)

your linux distrib may use it as default somewhere too.

@hbons hbons closed this as completed Jul 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants