[MonoDevelop] Compile error compiling MonoDevelop from CVS
Todd Berman
tberman@off.net
Wed, 10 Nov 2004 14:53:30 -0800
On Wed, 2004-11-10 at 21:43 +0000, Brian Pickles wrote:
> Hi,
>
> Over the weekend I downloaded Mono & MonoDevelop from CVS for the first
> time. Spent the weekend installing Ubuntu , Mono & MonoDevelop. Managed
> to get everything working except for MonoDevelop.
>
> On closer inspection MonoDevelop is trying to use a FileMode enum in
> Mono.Posix that does not exist. There is a FilePermissions enum in
> Mono.Posix which seems to be the one the MonoDevelop should be referring
> to.
>
> So changed the using statement in Main/Base/Internal/Project/Combine.cs
> to refer to FilePermissions and now MonoDevelop compiles and seems to
> run ok.
>
> Do you want me to submit a bug report?
>
> Brian Pickles
This is a known problem. This was a recent (post 1.1.2 release) cvs HEAD
change.
Someone has to write some auto* configure time code to push a define
into that mcs line so that the proper enum is used. We have to support
both.
The proper check would be that if the mono version is >= 1.1.2.99 then
you define MONO_POSIX_OEE in the compile line for the
MonoDevelop.Base.dll and have:
#if MONO_POSIX_OEE
FilePermissions .....
#else
FileMode .....
#endif
basically.
--Todd