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
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@lists.freeswitch.org [mailto:freeswitch-users-bounces@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
Thanx Micheal I tried 2.6 and it seems working. but now I get dllnotfound for libc. I've read in wiki that I should create a link to it in one of locations so files are loaded from, but I've got libc.so in usr/lib directory, should I place a link in any other location? (the output of ldconfig | grep libc.so is : libc.so.6 -> libc-2.5.so) thanx
I had a similar problem - try using mono 2.8.1 and the patch mentioned in http://jira.freeswitch.org/browse/FS-2774. This tells you to re-swig (make reswig) & after that I found that there were compile errors in the swig output - double declarations etc - easy enough to remove. I'll try to investigate why the swig output wasn't right. This was on Linux (CentOS 5.5) - you may find that on Windows it just works. David On Wed, Dec 1, 2010 at 3:41 PM, Patrick Lists <freeswitch-list@puzzled.xs4all.nl> wrote:
On 12/01/2010 03:53 PM, babak yakhchali wrote:
Hi Micheal I've attached errors from building with mono 2.6.7
Did you actually read the error or did you just attach it? Your answer is on line 1 and 2 of the error file. Clearly you are missing some header files.
Patrick
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
thank u all for ur answers Yitzchok yes I'm sure I'm using mono 2.6.7. I started from mono 2.8 and after it failed I used mono 2.6.7 (on a clean centos 5.5 not the one I installed mono 2.8) and I got the same results. I tried 2.6 and it worked and David I'm on centos 5.5 too.
Is it possible that some of the changes that are in 2.8 are already in 2.6.7? Try removing the reference to glib (in freeswitch.i, freeswitch_managed.h) and replacing g_free in freeswitch_managed.h to mono_free then run reswig Yitzchok On Thu, Dec 2, 2010 at 1:09 AM, babak yakhchali <babak.freeswitch@gmail.com>wrote:
thank u all for ur answers Yitzchok yes I'm sure I'm using mono 2.6.7. I started from mono 2.8 and after it failed I used mono 2.6.7 (on a clean centos 5.5 not the one I installed mono 2.8) and I got the same results. I tried 2.6 and it worked and David I'm on centos 5.5 too.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Are you sure you have Mono 2.6.7 and not Mono 2.8? Yitzchok On Wed, Dec 1, 2010 at 10:41 AM, Patrick Lists < freeswitch-list@puzzled.xs4all.nl> wrote:
On 12/01/2010 03:53 PM, babak yakhchali wrote:
Hi Micheal I've attached errors from building with mono 2.6.7
Did you actually read the error or did you just attach it? Your answer is on line 1 and 2 of the error file. Clearly you are missing some header files.
Patrick
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (5)
-
babak yakhchali
-
David Brazier
-
Michael Giagnocavo
-
Patrick Lists
-
Yitzchok