Re: [Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist

2012-01-30 Thread Eberhard Beilharz
Did you have a look at the README file? In section "c. Building the
software from GIT" it lists several options. The recommended way is to
install the latest released packages for your distribution for building
mono from git, but there are also instructions if you don't  have a
working Mono installation.

Eberhard


On 01/31/2012 07:34 AM, Markku Tavasti wrote:
> I'm trying to build mono from git sources
> ./autogen.sh --prefix=/usr/local && make && sudo make install
>
> , but unfortunately it fails like this:
>
> make[6]: Entering directory `/home/tavasti/build/mono/mcs'
> build/common/basic-profile-check.cs(13,67): error CS0234: The type or
> namespace name `AllowReversePInvokeCallsAttribute' does not exist in
> the namespace `System.Runtime.InteropServices'. Are you missing an
> assembly reference?
> Compilation failed: 1 error(s), 0 warnings
> make[6]: *** [build/deps/basic-profile-check.exe] Error 1
> make[6]: Leaving directory `/home/tavasti/build/mono/mcs'
> *** The compiler 'gmcs' doesn't appear to be usable.
> *** You need Mono version 2.4 or better installed to build MCS
> *** Read INSTALL.txt for information on how to bootstrap a Mono
> installation.
> make[5]: *** [do-profile-check] Error 1
> make[5]: Leaving directory `/home/tavasti/build/mono/mcs'
> make[4]: *** [profile-do--basic--all] Error 2
> make[4]: Leaving directory `/home/tavasti/build/mono/mcs'
> make[3]: *** [profiles-do--all] Error 2
>
> Any hints?
>
> --Tavasti
>
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist

2012-01-31 Thread Markku Tavasti
2012/1/31 Eberhard Beilharz 

> Did you have a look at the README file? In section "c. Building the
> software from GIT" it lists several options. The recommended way is to
> install the latest released packages for your distribution for building
> mono from git, but there are also instructions if you don't  have a
> working Mono installation.
>
> I'm working on Suse Enterprise Linux 11, and have installed followinf
packages:

 localhost:~ # rpm -qa | grep mono
mono-locale-extras-2.0.1-1.34.1
mono-zeroconf-0.9.0-1.2.93
dbus-1-mono-0.63-188.1.57
mono-nunit-2.0.1-1.34.1
mono-data-sqlite-2.0.1-1.34.1
avahi-mono-0.6.23-11.19.36
mono-data-sybase-2.0.1-1.34.1
mono-jscript-2.0.1-1.34.1
apache2-mod_mono-2.0-1.26
mono-core-2.0.1-1.34.1
mono-winforms-2.0.1-1.34.1
mono-data-postgresql-2.0.1-1.34.1
mono-data-firebird-2.0.1-1.34.1
mono-addins-0.4-1.40
mono-data-2.0.1-1.34.1
monodoc-core-2.0-1.34
monodevelop-1.0-96.43
mono-extras-2.0.1-1.34.1
mono-tools-2.0-6.40
mono-web-2.0.1-1.34.1
mono-zeroconf-provider-avahi-0.9.0-1.2.93
mono-data-oracle-2.0.1-1.34.1
mono-basic-2.0-6.34
mono-devel-2.0.1-1.34.1
mono-debugger-2.0-13.16

So there is mcs compiler, but it still, getting error:
build/common/basic-profile-check.cs(13,67): error CS0234: The type or
namespace name `AllowReversePInvokeCallsAttribute' does not exist in the
namespace `System.Runtime.InteropServices'. Are you missing an assembly
reference?
Compilation failed: 1 error(s), 0 warnings
make[6]: *** [build/deps/basic-profile-check.exe] Error 1
make[6]: Leaving directory `/home/tavasti/build/mono/mcs'
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist

2012-01-31 Thread Marek Safar

Hello,

Just follow what the error message says

You need Mono version 2.4 or better installed to build MCS


Marek


I'm trying to build mono from git sources
./autogen.sh --prefix=/usr/local && make && sudo make install

, but unfortunately it fails like this:

make[6]: Entering directory `/home/tavasti/build/mono/mcs'
build/common/basic-profile-check.cs(13,67): error CS0234: The type or 
namespace name `AllowReversePInvokeCallsAttribute' does not exist in 
the namespace `System.Runtime.InteropServices'. Are you missing an 
assembly reference?

Compilation failed: 1 error(s), 0 warnings
make[6]: *** [build/deps/basic-profile-check.exe] Error 1
make[6]: Leaving directory `/home/tavasti/build/mono/mcs'
*** The compiler 'gmcs' doesn't appear to be usable.
*** You need Mono version 2.4 or better installed to build MCS
*** Read INSTALL.txt for information on how to bootstrap a Mono 
installation.

make[5]: *** [do-profile-check] Error 1
make[5]: Leaving directory `/home/tavasti/build/mono/mcs'
make[4]: *** [profile-do--basic--all] Error 2
make[4]: Leaving directory `/home/tavasti/build/mono/mcs'
make[3]: *** [profiles-do--all] Error 2

Any hints?

--Tavasti

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist

2012-01-31 Thread Markku Tavasti
2012/1/31 Marek Safar 

>
> Just follow what the error message says
>
>
> You need Mono version 2.4 or better installed to build MCS
>
>  Sorry, my mistake, did not notice that part.

One problem is, that there is no mono > 2.0 packages available for Suse.
Chicken ^ Egg, can't compile recent version since I have too old version.

--Tavasti
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist

2012-01-31 Thread Leszek Ciesielski
Did you try

make get-monolite-latest
make

?

On Tue, Jan 31, 2012 at 12:23 PM, Markku Tavasti  wrote:
> 2012/1/31 Marek Safar 
>>
>>
>> Just follow what the error message says
>>
>>
>> You need Mono version 2.4 or better installed to build MCS
>>
>  Sorry, my mistake, did not notice that part.
>
> One problem is, that there is no mono > 2.0 packages available for Suse.
> Chicken ^ Egg, can't compile recent version since I have too old version.
>
> --Tavasti
>
>
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist

2012-02-01 Thread Markku Tavasti
2012/1/31 Leszek Ciesielski 

> Did you try
>
> make get-monolite-latest
> make
>
>
Tried:

 cd /home/tavasti/build/mono/mcs/class/lib && { (wget -O-
http://mono.ximian.com/daily/monolite-99-latest.tar.gz || curl
http://mono.ximian.com/daily/monolite-99-latest.tar.gz) | gzip -d | tar xf
- ; }
--2012-02-01 08:55:53--
http://mono.ximian.com/daily/monolite-99-latest.tar.gz
Connecting to 10.21.4.37:8080... connected.
Proxy request sent, awaiting response... 404 Not Found
2012-02-01 08:55:53 ERROR 404: Not Found.

Might  http://mono.ximian.com/daily/monolite-96-latest.tar.gz work?
MONO_CORLIB_VERSION is now 99,, but there is no MonoLite later than 96?

Ok, changed in Makefile.am monolite_url =
http://mono.ximian.com/daily/monolite-latest.tar.gz


make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/gmcs.exe
...
make[5]: Entering directory `/home/tavasti/build/mono/mcs'
/bin/sh .//mkinstalldirs build/deps
mkdir -p -- build/deps
touch build/deps/.stamp
make[6]: Entering directory `/home/tavasti/build/mono/mcs'
/home/tavasti/build/mono/mcs/class/lib/monolite/gmcs.exe:
/home/tavasti/build/mono/mcs/class/lib/monolite/gmcs.exe: cannot execute
binary file
make[6]: *** [build/deps/basic-profile-check.exe] Error 126
make[6]: Leaving directory `/home/tavasti/build/mono/mcs'
*** The compiler '/home/tavasti/build/mono/mcs/class/lib/monolite/gmcs.exe'
doesn't appear to be usable.
*** You need Mono version 2.4 or better installed to build MCS
*** Read INSTALL.txt for information on how to bootstrap a Mono
installation.
make[5]: *** [do-profile-check] Error 1

(Sorry Leszek I first replied you only, not familiar with my webmail)
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist

2012-02-01 Thread Markku Tavasti
2012/2/1 Markku Tavasti 

> make[5]: Entering directory `/home/tavasti/build/mono/mcs'
> /bin/sh .//mkinstalldirs build/deps
> mkdir -p -- build/deps
> touch build/deps/.stamp
>
> make[6]: Entering directory `/home/tavasti/build/mono/mcs'
> /home/tavasti/build/mono/mcs/class/lib/monolite/gmcs.exe:
> /home/tavasti/build/mono/mcs/class/lib/monolite/gmcs.exe: cannot execute
> binary file
> make[6]: *** [build/deps/basic-profile-check.exe] Error 126
>

Installed wine, and tried:
 tavasti@susesrv:~/build/mono>  ${PWD}/mcs/class/lib/monolite/gmcs.exe
bash: /home/tavasti/build/mono/mcs/class/lib/monolite/gmcs.exe: cannot
execute binary file
tavasti@susesrv:~/build/mono> wine
${PWD}/mcs/class/lib/monolite/gmcs.exewine: Install Mono for Windows to run
.NET 2.0 applications.
tavasti@susesrv:~/build/mono> err:ntdll:RtlDeleteResource Deleting active
MRSW lock (0x1124e4), expect failure
wine: Unhandled page fault on write access to 0x1100f849 at address
0x7bc48c62 (thread 0017), starting debugger...
err:seh:start_debugger Couldn't start debugger ("winedbg --auto 14 48")
(1115)
Read the Wine Developers Guide on how to set up winedbg or another debugger
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist

2012-02-01 Thread Alan
Is there a mono package available for your distro? If so, just install that.

Alan

On 1 February 2012 09:41, Markku Tavasti  wrote:

> 2012/2/1 Markku Tavasti 
>
>>  make[5]: Entering directory `/home/tavasti/build/mono/mcs'
>> /bin/sh .//mkinstalldirs build/deps
>> mkdir -p -- build/deps
>> touch build/deps/.stamp
>>
>> make[6]: Entering directory `/home/tavasti/build/mono/mcs'
>>  /home/tavasti/build/mono/mcs/class/lib/monolite/gmcs.exe:
>> /home/tavasti/build/mono/mcs/class/lib/monolite/gmcs.exe: cannot execute
>> binary file
>> make[6]: *** [build/deps/basic-profile-check.exe] Error 126
>>
>
> Installed wine, and tried:
>  tavasti@susesrv:~/build/mono>  ${PWD}/mcs/class/lib/monolite/gmcs.exe
> bash: /home/tavasti/build/mono/mcs/class/lib/monolite/gmcs.exe: cannot
> execute binary file
> tavasti@susesrv:~/build/mono> wine
> ${PWD}/mcs/class/lib/monolite/gmcs.exewine: Install Mono for Windows to run
> .NET 2.0 applications.
> tavasti@susesrv:~/build/mono> err:ntdll:RtlDeleteResource Deleting active
> MRSW lock (0x1124e4), expect failure
> wine: Unhandled page fault on write access to 0x1100f849 at address
> 0x7bc48c62 (thread 0017), starting debugger...
> err:seh:start_debugger Couldn't start debugger ("winedbg --auto 14 48")
> (1115)
> Read the Wine Developers Guide on how to set up winedbg or another debugger
>
>
>
>
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist

2012-02-03 Thread Markku Tavasti
2012/2/1 Alan 

> Is there a mono package available for your distro? If so, just install
> that.
>
> For latest release, no. I Installed latest packages available for SLE, and
with them I could build git version.

--Tavasti
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist

2012-02-03 Thread Alan
Perfect. That is what i meant. Once you have any kind of system mono
package you will be able to build from git.

I don't think anyone pasted this link earlier, so apologies if you've
already read it, but this has great info on how to set up a second mono
from git without breaking your system:
http://www.mono-project.com/Parallel_Mono_Environments

Alan


On 3 February 2012 12:16, Markku Tavasti  wrote:

> 2012/2/1 Alan 
>
>> Is there a mono package available for your distro? If so, just install
>> that.
>>
>> For latest release, no. I Installed latest packages available for SLE,
> and with them I could build git version.
>
> --Tavasti
>
>
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list