Open akwala opened 10 years ago
The error Cannot take the address of, get the size of, or declare a pointer to a managed type
Soup.MessageBody'` looks like similar to this in dbus-sharp: https://github.com/mono/dbus-sharp/issues/28
(And there was a proposed fix to the above here: https://github.com/mono/dbus-sharp/pull/30 So maybe we can reuse the apporach?)
Are you on gtk# master? This is probably a code generator bug with mono versions >= 3.2.3, I'll look into it and propose a PR to gtk-sharp.
I got gtk-sharp3 from https://launchpad.net/%7Emeebey/+archive/mono-preview ...was following these instructions: https://github.com/hbons/SparkleShare/blob/master/SparkleShare/Linux/README.md
I am also getting these problems. Any ideas as to a solution?
12:56 λ make
Making all in sources
make[1]: Entering directory `/home/ablackmore/Downloads/libraries_installed/soup-sharp/sources'
/usr/bin/gmcs -nowarn:169 -unsafe -target:library \
AssemblyInfo.cs -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/glib-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/cairo-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/pango-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/atk-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/gdk-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/gtk-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/glib-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/gio-sharp.dll generated/*.cs -out:../out/soup-sharp.dll
AssemblyInfo.cs(11,12): warning CS1699: Use compiler option `keyfile' or appropriate project settings instead of `AssemblyKeyFile' attribute
generated/AuthDomainBasic.cs(55,40): warning CS0108: `Soup.AuthDomainBasic.Parent' hides inherited member `Soup.AuthDomain.Parent'. Use the new keyword if hiding was intended
generated/AuthDomain.cs(117,36): (Location of the symbol related to previous warning)
generated/AuthDomainDigest.cs(55,40): warning CS0108: `Soup.AuthDomainDigest.Parent' hides inherited member `Soup.AuthDomain.Parent'. Use the new keyword if hiding was intended
generated/AuthDomain.cs(117,36): (Location of the symbol related to previous warning)
generated/CookieJarDB.cs(50,39): warning CS0108: `Soup.CookieJarDB.Parent' hides inherited member `Soup.CookieJar.Parent'. Use the new keyword if hiding was intended
generated/CookieJar.cs(60,36): (Location of the symbol related to previous warning)
generated/CookieJarText.cs(50,39): warning CS0108: `Soup.CookieJarText.Parent' hides inherited member `Soup.CookieJar.Parent'. Use the new keyword if hiding was intended
generated/CookieJar.cs(60,36): (Location of the symbol related to previous warning)
generated/PasswordManagerAdapter.cs(77,44): error CS0115: `Soup.PasswordManagerAdapter.GType' is marked as an override but no suitable property found to override
generated/ProxyURIResolverAdapter.cs(86,44): error CS0115: `Soup.ProxyURIResolverAdapter.GType' is marked as an override but no suitable property found to override
generated/RequestData.cs(25,37): warning CS0108: `Soup.RequestData.Parent' hides inherited member `Soup.Request.Parent'. Use the new keyword if hiding was intended
generated/Request.cs(49,36): (Location of the symbol related to previous warning)
generated/RequestFile.cs(25,37): warning CS0108: `Soup.RequestFile.Parent' hides inherited member `Soup.Request.Parent'. Use the new keyword if hiding was intended
generated/Request.cs(49,36): (Location of the symbol related to previous warning)
generated/RequestHTTP.cs(25,37): warning CS0108: `Soup.RequestHTTP.Parent' hides inherited member `Soup.Request.Parent'. Use the new keyword if hiding was intended
generated/Request.cs(49,36): (Location of the symbol related to previous warning)
generated/SessionAsync.cs(32,37): warning CS0108: `Soup.SessionAsync.Parent' hides inherited member `Soup.Session.Parent'. Use the new keyword if hiding was intended
generated/Session.cs(262,36): (Location of the symbol related to previous warning)
generated/SessionFeatureAdapter.cs(152,44): error CS0115: `Soup.SessionFeatureAdapter.GType' is marked as an override but no suitable property found to override
generated/SessionSync.cs(32,37): warning CS0108: `Soup.SessionSync.Parent' hides inherited member `Soup.Session.Parent'. Use the new keyword if hiding was intended
generated/Session.cs(262,36): (Location of the symbol related to previous warning)
Compilation failed: 3 error(s), 10 warnings
make[1]: *** [../out/soup-sharp.dll] Error 1
make[1]: Leaving directory `/home/ablackmore/Downloads/libraries_installed/soup-sharp/sources'
make: *** [all-recursive] Error 1
I am running mono 3.2.8 and don't have these problems, although I am running gtk# master. I'd suggest trying gtk# master.
@ashleyblackmore those are not the same errors as the ones that the OP posted. (Don't look at the warnings, you only have 2 errors, and they are these:
generated/PasswordManagerAdapter.cs(77,44): error CS0115: `Soup.PasswordManagerAdapter.GType' is marked as an override but no suitable property found to override
generated/ProxyURIResolverAdapter.cs(86,44): error CS0115: `Soup.ProxyURIResolverAdapter.GType' is marked as an override but no suitable property found to override
@xDarkice if soup-sharp is only compatible with certain version of gtk-sharp, you should change this file to reflect it: https://github.com/xDarkice/gstreamer-sharp/blob/master/configure.ac#L76 (in a similar way we depend on gtk# 2.99.2 in gstreamer-sharp).
I think @ashleyblackmore's errors are related to this: https://github.com/mono/gtk-sharp/commit/b15f2eede1ec7db63eb60589851e1560cef3d98f .
TL;DR: I get the same errors as @ashleyblackmore , plus one more, w/ mono 3.2.8 and gtk-sharp master...
generated/PasswordManagerAdapter.cs(77,30): error CS0115: `Soup.PasswordManagerAdapter.GType' is marked as an override but no suitable property found to override
generated/ProxyURIResolverAdapter.cs(86,30): error CS0115: `Soup.ProxyURIResolverAdapter.GType' is marked as an override but no suitable property found to override
generated/SessionFeatureAdapter.cs(152,30): error CS0115: `Soup.SessionFeatureAdapter.GType' is marked as an override but no suitable property found to override
The Ubuntu repos are quite behind on the Mono versions. Based on what @xDarkice suggested, I...
$ make
Making all in sources
make[1]: Entering directory `/var/ak/dev/workspace/git/soup-sharp/sources'
/usr/local/bin/gmcs -nowarn:169 -unsafe -target:library \
AssemblyInfo.cs -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/glib-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/cairo-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/pango-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/atk-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/gdk-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/gtk-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/glib-sharp.dll -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/gio-sharp.dll generated/*.cs -out:../out/soup-sharp.dll
AssemblyInfo.cs(11,12): warning CS1699: Use compiler option `keyfile' or appropriate project settings instead of `AssemblyKeyFile' attribute
generated/AuthDomainBasic.cs(55,26): warning CS0108: `Soup.AuthDomainBasic.Parent' hides inherited member `Soup.AuthDomain.Parent'. Use the new keyword if hiding was intended
generated/AuthDomain.cs(117,22): (Location of the symbol related to previous warning)
generated/AuthDomainDigest.cs(55,26): warning CS0108: `Soup.AuthDomainDigest.Parent' hides inherited member `Soup.AuthDomain.Parent'. Use the new keyword if hiding was intended
generated/AuthDomain.cs(117,22): (Location of the symbol related to previous warning)
generated/CookieJarDB.cs(50,25): warning CS0108: `Soup.CookieJarDB.Parent' hides inherited member `Soup.CookieJar.Parent'. Use the new keyword if hiding was intended
generated/CookieJar.cs(60,22): (Location of the symbol related to previous warning)
generated/CookieJarText.cs(50,25): warning CS0108: `Soup.CookieJarText.Parent' hides inherited member `Soup.CookieJar.Parent'. Use the new keyword if hiding was intended
generated/CookieJar.cs(60,22): (Location of the symbol related to previous warning)
generated/PasswordManagerAdapter.cs(77,30): error CS0115: `Soup.PasswordManagerAdapter.GType' is marked as an override but no suitable property found to override
generated/ProxyURIResolverAdapter.cs(86,30): error CS0115: `Soup.ProxyURIResolverAdapter.GType' is marked as an override but no suitable property found to override
generated/RequestData.cs(25,23): warning CS0108: `Soup.RequestData.Parent' hides inherited member `Soup.Request.Parent'. Use the new keyword if hiding was intended
generated/Request.cs(49,22): (Location of the symbol related to previous warning)
generated/RequestFile.cs(25,23): warning CS0108: `Soup.RequestFile.Parent' hides inherited member `Soup.Request.Parent'. Use the new keyword if hiding was intended
generated/Request.cs(49,22): (Location of the symbol related to previous warning)
generated/RequestHTTP.cs(25,23): warning CS0108: `Soup.RequestHTTP.Parent' hides inherited member `Soup.Request.Parent'. Use the new keyword if hiding was intended
generated/Request.cs(49,22): (Location of the symbol related to previous warning)
generated/SessionAsync.cs(32,23): warning CS0108: `Soup.SessionAsync.Parent' hides inherited member `Soup.Session.Parent'. Use the new keyword if hiding was intended
generated/Session.cs(262,22): (Location of the symbol related to previous warning)
generated/SessionFeatureAdapter.cs(152,30): error CS0115: `Soup.SessionFeatureAdapter.GType' is marked as an override but no suitable property found to override
generated/SessionSync.cs(32,23): warning CS0108: `Soup.SessionSync.Parent' hides inherited member `Soup.Session.Parent'. Use the new keyword if hiding was intended
generated/Session.cs(262,22): (Location of the symbol related to previous warning)
Compilation failed: 3 error(s), 10 warnings
make[1]: *** [../out/soup-sharp.dll] Error 1
make[1]: Leaving directory `/var/ak/dev/workspace/git/soup-sharp/sources'
make: *** [all-recursive] Error 1
Did you install gtk-sharp to /usr or /usr/local?
Both, mono 3.2.8 and gtk-sharp master, are installed in /usr/local. I also uninstalled the "gtk-sharp3" and related pkgs that I had installed from the meebey-mono-preview PPA.
--aslamK http://gplus.to/akwala
PGP key http://is.gd/aslampgpmit (id: FECF84FB) fingerprint: 736C D83E 32DB A2FD 0208 9113 0FC8 BA7D FECF 84FB
On Sun, Feb 23, 2014 at 8:32 PM, Stephan Sundermann < notifications@github.com> wrote:
Did you install gtk-sharp to /usr or /usr/local?
Reply to this email directly or view it on GitHubhttps://github.com/xDarkice/soup-sharp/issues/1#issuecomment-35851424 .
Can you try installing to /usr? I remember I once had similar issues when installing to /usr/local
Can you try installing to /usr? I remember I once had similar issues when installing to /usr/local
Do you mean install Mono 3.2.8 and Gtk# in /usr, then try installing soup-sharp in /usr? That's what the Gtk# install instructions recommend:
You may want to consider using configure's prefix option to install
Gtk# using the same prefix as Mono. That way all of your .NET assemblies
get placed in the same place, and you don't need to do any extra "configuring"
to make it so mono (and mint) can find your assemblies. In other words,
doing something like:
./configure --prefix=`pkg-config --variable=prefix mono`
Currently, /usr/bin/mono is v. 2.10.8.1 and the mono-runtime pkg has a long list of rdepends. Is there a recommended way to upgrade Mono (in /usr) on such a system? (Mine is Linux Mint 16, i.e., Ubuntu 13.10.)
Just gtk# will be fine.
2014-02-25 1:06 GMT+01:00 aslam karachiwala notifications@github.com:
Can you try installing to /usr? I remember I once had similar issues when installing to /usr/local
Do you mean install Mono 3.2.8 and Gtk# in /usr, then try installing soup-sharp in /usr? That's what the Gtk# install instructions recommend:
You may want to consider using configure's prefix option to install Gtk# using the same prefix as Mono. That way all of your .NET assemblies get placed in the same place, and you don't need to do any extra "configuring" to make it so mono (and mint) can find your assemblies. In other words, doing something like:
./configure --prefix=`pkg-config --variable=prefix mono`
Currently, /usr/bin/mono is v. 2.10.8.1 and the mono-runtime pkg has a long list of rdepends. Is there a recommended way to upgrade Mono (in /usr) on such a system? (Mine is Linux Mint 16, i.e., Ubuntu 13.10.)
Reply to this email directly or view it on GitHubhttps://github.com/xDarkice/soup-sharp/issues/1#issuecomment-35959377 .
No joy :( ... Same errors after...
even with the latest git versions I have the compilation errors.
It seems my compilation failed only on the documentations.
If I create a doc/en
directory. It works.