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

Compilation errors #1

Open
akwala opened this issue Jan 23, 2014 · 14 comments
Open

Compilation errors #1

akwala opened this issue Jan 23, 2014 · 14 comments

Comments

@akwala
Copy link

akwala commented Jan 23, 2014

$ make
Making all in sources
make[1]: Entering directory `/home/sparkleshare/workspace/git/soup-sharp/sources'
/usr/bin/gmcs -nowarn:169 -unsafe -target:library \
        AssemblyInfo.cs   -r:/usr/lib/pkgconfig/../../lib/cli/glib-sharp-3.0/glib-sharp.dll   -r:/usr/lib/pkgconfig/../../lib/cli/cairo-sharp-1.10/cairo-sharp.dll -r:/usr/lib/pkgconfig/../../lib/cli/pango-sharp-3.0/pango-sharp.dll -r:/usr/lib/pkgconfig/../../lib/cli/atk-sharp-3.0/atk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/cli/gdk-sharp-3.0/gdk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/cli/gtk-sharp-3.0/gtk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/cli/glib-sharp-3.0/glib-sharp.dll -r:/usr/lib/pkgconfig/../../lib/cli/gio-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/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/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)
generated/ClientContext.cs(127,25): error CS0126: An object of a type convertible to `int' is required for the return statement
generated/Global.cs(716,162): error CS0103: The name `error' does not exist in the current context
generated/Global.cs(716,40): error CS1502: The best overloaded method match for `Soup.Global.soup_xmlrpc_extract_method_response(System.IntPtr, int, out System.IntPtr, System.IntPtr, System.IntPtr)' has some invalid arguments
generated/Global.cs(712,36): (Location of the symbol related to previous error)
generated/Global.cs(716,40): error CS1503: Argument `#3' cannot convert `object' expression to type `System.IntPtr'
generated/Message.cs(316,57): error CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `Soup.MessageBody'
generated/MessageBody.cs(13,31): (Location of the symbol related to previous error)
generated/Message.cs(317,49): error CS0841: A local variable `raw_ptr' cannot be used before it is declared
generated/Message.cs(342,57): error CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `Soup.MessageBody'
generated/MessageBody.cs(13,31): (Location of the symbol related to previous error)
generated/Message.cs(343,49): error CS0841: A local variable `raw_ptr' cannot be used before it is declared
generated/MessageHeaders.cs(392,25): error CS0126: An object of a type convertible to `int' is required for the return statement
generated/Multipart.cs(181,25): error CS0126: An object of a type convertible to `int' is required for the return statement
Compilation failed: 10 error(s), 10 warnings
make[1]: *** [../out/soup-sharp.dll] Error 1
make[1]: Leaving directory `/home/sparkleshare/workspace/git/soup-sharp/sources'
make: *** [all-recursive] Error 1
@knocte
Copy link

knocte commented Jan 24, 2014

The error Cannot take the address of, get the size of, or declare a pointer to a managed typeSoup.MessageBody'` looks like similar to this in dbus-sharp: mono/dbus-sharp#28

(And there was a proposed fix to the above here: mono/dbus-sharp#30 So maybe we can reuse the apporach?)

@sundermann
Copy link
Owner

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.

@akwala
Copy link
Author

akwala commented Jan 24, 2014

@ashleyblackmore
Copy link

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

@sundermann
Copy link
Owner

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.

@knocte
Copy link

knocte commented Feb 23, 2014

@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: mono/gtk-sharp@b15f2ee .

@akwala
Copy link
Author

akwala commented Feb 24, 2014

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...

  1. compiled Mono 3.2.8 (downloaded from http://download.mono-project.com/sources/mono/); and
  2. pulled & compiled gtk-sharp master (from https://github.com/mono/gtk-sharp); then
  3. pulled the latest from soup-sharp master and tried to compile, which gave me the above errors -- the complete output:
$ 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

@sundermann
Copy link
Owner

Did you install gtk-sharp to /usr or /usr/local?

@akwala
Copy link
Author

akwala commented Feb 24, 2014

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 <
[email protected]> wrote:

Did you install gtk-sharp to /usr or /usr/local?

Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-35851424
.

@sundermann
Copy link
Owner

Can you try installing to /usr? I remember I once had similar issues when installing to /usr/local

@akwala
Copy link
Author

akwala commented Feb 25, 2014

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.)

@sundermann
Copy link
Owner

Just gtk# will be fine.

2014-02-25 1:06 GMT+01:00 aslam karachiwala [email protected]:

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//issues/1#issuecomment-35959377
.

@akwala
Copy link
Author

akwala commented Feb 25, 2014

No joy :( ... Same errors after...

  1. uninstalling gtk-sharp from /usr/local;
  2. installing gtk-sharp in /usr; and
  3. attempting to compile soup-sharp (using default prefix).

@mfouesneau
Copy link

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.

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