[Freeswitch-users] building mod_managed fails

Michael Giagnocavo mgg at giagnocavo.net
Fri Nov 26 13:49:32 PST 2010


Sounds like you're targeting the 2.0 profile instead of the 3.5 profile. Mono 2.4 is pretty old; I'd work on getting 2.6 or 2.8 installed. (2.8 has less dependencies to build the actual mono runtime.)

Can you provide the errors on a later version of Mono?

-Michael

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of babak yakhchali
Sent: Friday, November 26, 2010 1:05 PM
To: FreeSWITCH Users Help
Subject: [Freeswitch-users] building mod_managed fails

Hi I'm trying to build mod_managed using mono on centos 5.5. I'm building mono from source and when I try with versions above 2.6 it complains about glib.h
and with mono 2.4 it results in errors:

 error CS1110: `System.Linq.EnumerableExtensions.ForEach<T>(this System.Collections.Generic.IEnumerable<T>, System.Action<T>)': Extension methods cannot be declared without a reference to System.Core.dll assembly. Add the assembly reference or remove `this' modifer from the first parameter
Loader.cs(110,16): error CS0246: The type or namespace name `HashSet`1' could not be found. Are you missing a using directive or an assembly reference?
Log.cs(57,23): error CS1110: `FreeSWITCH.Log.ToLogString(this FreeSWITCH.LogLevel)': Extension methods cannot be declared without a reference to System.Core.dll assembly. Add the assembly reference or remove `this' modifer from the first parameter
ManagedSession.cs(75,16): error CS0246: The type or namespace name `Action' could not be found. Are you missing a using directive or an assembly reference?
ManagedSession.cs(89,16): error CS0246: The type or namespace name `Func`3' could not be found. Are you missing a using directive or an assembly reference?
ManagedSession.cs(91,16): error CS0246: The type or namespace name `Func`2' could not be found. Are you missing a using directive or an assembly reference?
PluginManager.cs(76,9): error CS0246: The type or namespace name `Action' could not be found. Are you missing a using directive or an assembly reference?
PluginManager.cs(77,44): error CS0246: The type or namespace name `Action' could not be found. Are you missing a using directive or an assembly reference?
PluginManager.cs(90,18): error CS0246: The type or namespace name `Func`1' could not be found. Are you missing a using directive or an assembly reference?
PluginManager.cs(92,69): error CS0246: The type or namespace name `Func`1' could not be found. Are you missing a using directive or an assembly reference?
PluginManager.cs(122,18): error CS0246: The type or namespace name `Func`1' could not be found. Are you missing a using directive or an assembly reference?
PluginManager.cs(124,69): error CS0246: The type or namespace name `Func`1' could not be found. Are you missing a using directive or an assembly reference?
PluginManager.cs(262,23): error CS0246: The type or namespace name `Func`1' could not be found. Are you missing a using directive or an assembly reference?
ScriptPluginManager.cs(236,16): error CS0246: The type or namespace name `Action' could not be found. Are you missing a using directive or an assembly reference?
ScriptPluginManager.cs(187,22): error CS0246: The type or namespace name `Action' could not be found. Are you missing a using directive or an assembly reference?
ScriptPluginManager.cs(188,37): error CS0246: The type or namespace name `Action' could not be found. Are you missing a using directive or an assembly reference?
ScriptPluginManager.cs(218,22): error CS0246: The type or namespace name `Action' could not be found. Are you missing a using directive or an assembly reference?
ScriptPluginManager.cs(219,37): error CS0246: The type or namespace name `Action' could not be found. Are you missing a using directive or an assembly reference?
Util.cs(42,25): error CS1110: `FreeSWITCH.FSUtil.CreateSwigTypePointer<T>(this System.IntPtr)': Extension methods cannot be declared without a reference to System.Core.dll assembly. Add the assembly reference or remove `this' modifer from the first parameter
XmlSearchBinding.cs(81,40): error CS0246: The type or namespace name `Func`2' could not be found. Are you missing a using directive or an assembly reference?
Compilation failed: 20 error(s), 0 warnings
make[5]: *** [FreeSWITCH.Managed.dll] Error 1

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101126/4a62f23f/attachment-0001.html 


More information about the FreeSWITCH-users mailing list