Re: [Mono-dev] Problem building mono from source
Hi Rodrigo, it works with: CFLAGS=-m32 ./configure --host=i386-linux-gnu Date: Tue, 10 Sep 2013 11:38:24 -0400 Subject: Re: [Mono-dev] Problem building mono from source From: kump...@gmail.com To: ln...@hotmail.com CC: mono-devel-list@lists.ximian.com It looks like you're either missing some headers or you misconfigured mono. On Mon, Sep 9, 2013 at 5:21 PM, Luciano _ ln...@hotmail.com wrote: Linux, Debian wheezy x86-64 Date: Sun, 8 Sep 2013 21:45:52 -0400 From: kump...@gmail.com To: ln...@hotmail.com CC: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Problem building mono from source What target are you trying to compile mono for? On Sun, Sep 8, 2013 at 7:59 PM, Luciano _ ln...@hotmail.com wrote: Hi, i’m having problems building mono from source. Could someone point me to the solution? Thanks. Making all in utils make[3]: se ingresa al directorio `/root/mono32/mono-3.2.0/mono/utils' make all-am make[4]: se ingresa al directorio `/root/mono32/mono-3.2.0/mono/utils' CC mono-md5.lo CC mono-sha1.lo CC mono-logger.lo CC mono-codeman.lo CC dlmalloc.lo dlmalloc.c:2515:12: warning: ‘change_mparam’ defined but not used [-Wunused-function] dlmalloc.c:2847:13: warning: ‘internal_malloc_stats’ defined but not used [-Wunused-function] CC mono-counters.lo CC mono-dl.lo CC mono-internal-hash.lo CC mono-io-portability.lo CC monobitset.lo CC mono-filemap.lo CC mono-math.lo CC mono-mmap.lo CC mono-mutex.lo CC mono-networkinterfaces.lo CC mono-proclib.lo CC mono-publib.lo CC mono-time.lo CC strtod.lo strtod.c:2448:1: warning: ‘quorem’ defined but not used [-Wunused-function] strtod.c:2596:1: warning: ‘nrv_alloc’ defined but not used [-Wunused-function] strtod.c:2620:1: warning: ‘__freedtoa’ defined but not used [-Wunused-function] CC strenc.lo CC mono-uri.lo CC mono-poll.lo CC mono-path.lo CC mono-semaphore.lo CC mono-stdlib.lo CC mono-property-hash.lo CC mono-value-hash.lo CC mono-error.lo CC mach-support.lo CC mono-context.lo mono-context.c: In function ‘mono_sigctx_to_monoctx’: mono-context.c:47:2: error: implicit declaration of function ‘UCONTEXT_REG_EAX’ [-Werror=implicit-function-declaration] mono-context.c:47:2: warning: nested extern declaration of ‘UCONTEXT_REG_EAX’ [-Wnested-externs] mono-context.c:48:2: error: implicit declaration of function ‘UCONTEXT_REG_EBX’ [-Werror=implicit-function-declaration] mono-context.c:48:2: warning: nested extern declaration of ‘UCONTEXT_REG_EBX’ [-Wnested-externs] mono-context.c:49:2: error: implicit declaration of function ‘UCONTEXT_REG_ECX’ [-Werror=implicit-function-declaration] mono-context.c:49:2: warning: nested extern declaration of ‘UCONTEXT_REG_ECX’ [-Wnested-externs] mono-context.c:50:2: error: implicit declaration of function ‘UCONTEXT_REG_EDX’ [-Werror=implicit-function-declaration] mono-context.c:50:2: warning: nested extern declaration of ‘UCONTEXT_REG_EDX’ [-Wnested-externs] mono-context.c:51:2: error: implicit declaration of function ‘UCONTEXT_REG_EBP’ [-Werror=implicit-function-declaration] mono-context.c:51:2: warning: nested extern declaration of ‘UCONTEXT_REG_EBP’ [-Wnested-externs] mono-context.c:52:2: error: implicit declaration of function ‘UCONTEXT_REG_ESP’ [-Werror=implicit-function-declaration] mono-context.c:52:2: warning: nested extern declaration of ‘UCONTEXT_REG_ESP’ [-Wnested-externs] mono-context.c:53:2: error: implicit declaration of function ‘UCONTEXT_REG_ESI’ [-Werror=implicit-function-declaration] mono-context.c:53:2: warning: nested extern declaration of ‘UCONTEXT_REG_ESI’ [-Wnested-externs] mono-context.c:54:2: error: implicit declaration of function ‘UCONTEXT_REG_EDI’ [-Werror=implicit-function-declaration] mono-context.c:54:2: warning: nested extern declaration of ‘UCONTEXT_REG_EDI’ [-Wnested-externs] mono-context.c:55:2: error: implicit declaration of function ‘UCONTEXT_REG_EIP’ [-Werror=implicit-function-declaration] mono-context.c:55:2: warning: nested extern declaration of ‘UCONTEXT_REG_EIP’ [-Wnested-externs] mono-context.c: In function ‘mono_monoctx_to_sigctx’: mono-context.c:79:25: error: lvalue required as left operand of assignment mono-context.c:80:25: error: lvalue required as left operand of assignment mono-context.c:81:25: error: lvalue required as left operand of assignment mono-context.c:82:25: error: lvalue required as left operand of assignment mono-context.c:83:25: error: lvalue required as left operand of assignment mono-context.c:84:25: error: lvalue required as left operand of assignment mono-context.c:85:25: error: lvalue required as left operand of assignment mono-context.c:86:25: error: lvalue required as left operand of assignment mono-context.c:87:25: error: lvalue required as left operand
Re: [Mono-dev] Problem building mono from source
Linux, Debian wheezy x86-64 Date: Sun, 8 Sep 2013 21:45:52 -0400 From: kump...@gmail.com To: ln...@hotmail.com CC: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Problem building mono from source What target are you trying to compile mono for? On Sun, Sep 8, 2013 at 7:59 PM, Luciano _ ln...@hotmail.com wrote: Hi, i’m having problems building mono from source. Could someone point me to the solution? Thanks. Making all in utils make[3]: se ingresa al directorio `/root/mono32/mono-3.2.0/mono/utils' make all-am make[4]: se ingresa al directorio `/root/mono32/mono-3.2.0/mono/utils' CC mono-md5.lo CC mono-sha1.lo CC mono-logger.lo CC mono-codeman.lo CC dlmalloc.lo dlmalloc.c:2515:12: warning: ‘change_mparam’ defined but not used [-Wunused-function] dlmalloc.c:2847:13: warning: ‘internal_malloc_stats’ defined but not used [-Wunused-function] CC mono-counters.lo CC mono-dl.lo CC mono-internal-hash.lo CC mono-io-portability.lo CC monobitset.lo CC mono-filemap.lo CC mono-math.lo CC mono-mmap.lo CC mono-mutex.lo CC mono-networkinterfaces.lo CC mono-proclib.lo CC mono-publib.lo CC mono-time.lo CC strtod.lo strtod.c:2448:1: warning: ‘quorem’ defined but not used [-Wunused-function] strtod.c:2596:1: warning: ‘nrv_alloc’ defined but not used [-Wunused-function] strtod.c:2620:1: warning: ‘__freedtoa’ defined but not used [-Wunused-function] CC strenc.lo CC mono-uri.lo CC mono-poll.lo CC mono-path.lo CC mono-semaphore.lo CC mono-stdlib.lo CC mono-property-hash.lo CC mono-value-hash.lo CC mono-error.lo CC mach-support.lo CC mono-context.lo mono-context.c: In function ‘mono_sigctx_to_monoctx’: mono-context.c:47:2: error: implicit declaration of function ‘UCONTEXT_REG_EAX’ [-Werror=implicit-function-declaration] mono-context.c:47:2: warning: nested extern declaration of ‘UCONTEXT_REG_EAX’ [-Wnested-externs] mono-context.c:48:2: error: implicit declaration of function ‘UCONTEXT_REG_EBX’ [-Werror=implicit-function-declaration] mono-context.c:48:2: warning: nested extern declaration of ‘UCONTEXT_REG_EBX’ [-Wnested-externs] mono-context.c:49:2: error: implicit declaration of function ‘UCONTEXT_REG_ECX’ [-Werror=implicit-function-declaration] mono-context.c:49:2: warning: nested extern declaration of ‘UCONTEXT_REG_ECX’ [-Wnested-externs] mono-context.c:50:2: error: implicit declaration of function ‘UCONTEXT_REG_EDX’ [-Werror=implicit-function-declaration] mono-context.c:50:2: warning: nested extern declaration of ‘UCONTEXT_REG_EDX’ [-Wnested-externs] mono-context.c:51:2: error: implicit declaration of function ‘UCONTEXT_REG_EBP’ [-Werror=implicit-function-declaration] mono-context.c:51:2: warning: nested extern declaration of ‘UCONTEXT_REG_EBP’ [-Wnested-externs] mono-context.c:52:2: error: implicit declaration of function ‘UCONTEXT_REG_ESP’ [-Werror=implicit-function-declaration] mono-context.c:52:2: warning: nested extern declaration of ‘UCONTEXT_REG_ESP’ [-Wnested-externs] mono-context.c:53:2: error: implicit declaration of function ‘UCONTEXT_REG_ESI’ [-Werror=implicit-function-declaration] mono-context.c:53:2: warning: nested extern declaration of ‘UCONTEXT_REG_ESI’ [-Wnested-externs] mono-context.c:54:2: error: implicit declaration of function ‘UCONTEXT_REG_EDI’ [-Werror=implicit-function-declaration] mono-context.c:54:2: warning: nested extern declaration of ‘UCONTEXT_REG_EDI’ [-Wnested-externs] mono-context.c:55:2: error: implicit declaration of function ‘UCONTEXT_REG_EIP’ [-Werror=implicit-function-declaration] mono-context.c:55:2: warning: nested extern declaration of ‘UCONTEXT_REG_EIP’ [-Wnested-externs] mono-context.c: In function ‘mono_monoctx_to_sigctx’: mono-context.c:79:25: error: lvalue required as left operand of assignment mono-context.c:80:25: error: lvalue required as left operand of assignment mono-context.c:81:25: error: lvalue required as left operand of assignment mono-context.c:82:25: error: lvalue required as left operand of assignment mono-context.c:83:25: error: lvalue required as left operand of assignment mono-context.c:84:25: error: lvalue required as left operand of assignment mono-context.c:85:25: error: lvalue required as left operand of assignment mono-context.c:86:25: error: lvalue required as left operand of assignment mono-context.c:87:25: error: lvalue required as left operand of assignment cc1: some warnings being treated as errors make[4]: *** [mono-context.lo] Error 1 make[4]: se sale del directorio `/root/mono32/mono-3.2.0/mono/utils' make[3]: *** [all] Error 2 make[3]: se sale del directorio `/root/mono32/mono-3.2.0/mono/utils' make[2]: *** [all-recursive] Error 1 make[2]: se sale del directorio `/root/mono32/mono-3.2.0/mono' make[1]: *** [all-recursive] Error 1 make[1]: se sale del directorio
[Mono-dev] Problem building mono from source
Hi, i’m having problems building mono from source. Could someone point me to the solution? Thanks. Making all in utils make[3]: se ingresa al directorio `/root/mono32/mono-3.2.0/mono/utils' make all-am make[4]: se ingresa al directorio `/root/mono32/mono-3.2.0/mono/utils' CC mono-md5.lo CC mono-sha1.lo CC mono-logger.lo CC mono-codeman.lo CC dlmalloc.lo dlmalloc.c:2515:12: warning: ‘change_mparam’ defined but not used [-Wunused-function] dlmalloc.c:2847:13: warning: ‘internal_malloc_stats’ defined but not used [-Wunused-function] CC mono-counters.lo CC mono-dl.lo CC mono-internal-hash.lo CC mono-io-portability.lo CC monobitset.lo CC mono-filemap.lo CC mono-math.lo CC mono-mmap.lo CC mono-mutex.lo CC mono-networkinterfaces.lo CC mono-proclib.lo CC mono-publib.lo CC mono-time.lo CC strtod.lo strtod.c:2448:1: warning: ‘quorem’ defined but not used [-Wunused-function] strtod.c:2596:1: warning: ‘nrv_alloc’ defined but not used [-Wunused-function] strtod.c:2620:1: warning: ‘__freedtoa’ defined but not used [-Wunused-function] CC strenc.lo CC mono-uri.lo CC mono-poll.lo CC mono-path.lo CC mono-semaphore.lo CC mono-stdlib.lo CC mono-property-hash.lo CC mono-value-hash.lo CC mono-error.lo CC mach-support.lo CC mono-context.lo mono-context.c: In function ‘mono_sigctx_to_monoctx’: mono-context.c:47:2: error: implicit declaration of function ‘UCONTEXT_REG_EAX’ [-Werror=implicit-function-declaration] mono-context.c:47:2: warning: nested extern declaration of ‘UCONTEXT_REG_EAX’ [-Wnested-externs] mono-context.c:48:2: error: implicit declaration of function ‘UCONTEXT_REG_EBX’ [-Werror=implicit-function-declaration] mono-context.c:48:2: warning: nested extern declaration of ‘UCONTEXT_REG_EBX’ [-Wnested-externs] mono-context.c:49:2: error: implicit declaration of function ‘UCONTEXT_REG_ECX’ [-Werror=implicit-function-declaration] mono-context.c:49:2: warning: nested extern declaration of ‘UCONTEXT_REG_ECX’ [-Wnested-externs] mono-context.c:50:2: error: implicit declaration of function ‘UCONTEXT_REG_EDX’ [-Werror=implicit-function-declaration] mono-context.c:50:2: warning: nested extern declaration of ‘UCONTEXT_REG_EDX’ [-Wnested-externs] mono-context.c:51:2: error: implicit declaration of function ‘UCONTEXT_REG_EBP’ [-Werror=implicit-function-declaration] mono-context.c:51:2: warning: nested extern declaration of ‘UCONTEXT_REG_EBP’ [-Wnested-externs] mono-context.c:52:2: error: implicit declaration of function ‘UCONTEXT_REG_ESP’ [-Werror=implicit-function-declaration] mono-context.c:52:2: warning: nested extern declaration of ‘UCONTEXT_REG_ESP’ [-Wnested-externs] mono-context.c:53:2: error: implicit declaration of function ‘UCONTEXT_REG_ESI’ [-Werror=implicit-function-declaration] mono-context.c:53:2: warning: nested extern declaration of ‘UCONTEXT_REG_ESI’ [-Wnested-externs] mono-context.c:54:2: error: implicit declaration of function ‘UCONTEXT_REG_EDI’ [-Werror=implicit-function-declaration] mono-context.c:54:2: warning: nested extern declaration of ‘UCONTEXT_REG_EDI’ [-Wnested-externs] mono-context.c:55:2: error: implicit declaration of function ‘UCONTEXT_REG_EIP’ [-Werror=implicit-function-declaration] mono-context.c:55:2: warning: nested extern declaration of ‘UCONTEXT_REG_EIP’ [-Wnested-externs] mono-context.c: In function ‘mono_monoctx_to_sigctx’: mono-context.c:79:25: error: lvalue required as left operand of assignment mono-context.c:80:25: error: lvalue required as left operand of assignment mono-context.c:81:25: error: lvalue required as left operand of assignment mono-context.c:82:25: error: lvalue required as left operand of assignment mono-context.c:83:25: error: lvalue required as left operand of assignment mono-context.c:84:25: error: lvalue required as left operand of assignment mono-context.c:85:25: error: lvalue required as left operand of assignment mono-context.c:86:25: error: lvalue required as left operand of assignment mono-context.c:87:25: error: lvalue required as left operand of assignment cc1: some warnings being treated as errors make[4]: *** [mono-context.lo] Error 1 make[4]: se sale del directorio `/root/mono32/mono-3.2.0/mono/utils' make[3]: *** [all] Error 2 make[3]: se sale del directorio `/root/mono32/mono-3.2.0/mono/utils' make[2]: *** [all-recursive] Error 1 make[2]: se sale del directorio `/root/mono32/mono-3.2.0/mono' make[1]: *** [all-recursive] Error 1 make[1]: se sale del directorio `/root/mono32/mono-3.2.0' make: *** [all] Error 2___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Compiling mono from the repository
I have mono from source (svn) on ubuntu, you need to checkout this 3 items: svn co svn://anonsvn.mono-project.com/source/trunk/mono svn co svn://anonsvn.mono-project.com/source/trunk/mcs svn co svn://anonsvn.mono-project.com/source/trunk/libgdiplusSome days ago, i add reference to Compiling [1] on IncompletePackage [2] wiki page beacause i was having the same issue. [1] http://www.mono-project.com/Compiling_Mono [2] http://www.mono-project.com/IncompletePackage From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thu, 9 Oct 2008 17:14:18 -0400 CC: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Compiling mono from the repository Did you make sure to checkout mcs too? On Oct 9, 2008, at 11:49 AM, Bas Smit [EMAIL PROTECTED] wrote:Hi guys, First off, im new to mono and ubuntu so I might be missing something obvious. Im trying to compile mono from the repository, on ubuntu. I've followed the instructions on http://www.mono-project.com/Compiling_Mono but when I autogen I get the following error: ... ... checking for ieeefp.h... no checking for isinf... yes checking for void *... yes checking size of void *... 4 checking for -Wdeclaration-after-statement option to gcc... yes checking integrity of package... configure: error: Your mono distribution is incomplete; if unpacking from a tar file, make sure you use GNU tar; see http://www.mono-project.com/IncompletePackage for more details Ive tried creating a new checkout, but the package really seems incomplete. Im 99% sure I've got mono, mcs, glib and pkg-config installed correctly. Could someone point out what I could be doing wrong? Many thanks, Bas -- View this message in context: http://www.nabble.com/Compiling-mono-from-the-repository-tp19901757p19901757.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ 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 _ Reveal your inner athlete and share it with friends on Windows Live. http://revealyourinnerathlete.windowslive.com?locale=en-usocid=TXT_TAGLM_WLYIA_whichathlete_us___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Compile monodevelop-debugger from SVN on Debian
Hi:To run mono-debugger you need Mono from svn or mono 2.0 and Mono-debugger 2.0. (Which i think it is not present on Debian/Ubuntu Repository) An alternative could be to run:./configure --prefix=/usr --select this let you select which package you will build, and you can disable the debugger Addin. My recomendation: Setup a parallel mono environment [*], if you have any version of mono installed, maybe some applications could depend on that installation, and if you break it you will have problem with other installed applications. (I've got this problem some times ago on Ubuntu) Bye [*] http://www.mono-project.com/Parallel_Mono_Environments From: [EMAIL PROTECTED] To: mono-devel-list@lists.ximian.com Date: Wed, 8 Oct 2008 18:30:07 +0400 Subject: [Mono-dev] Compile monodevelop-debugger from SVN on Debian Hello! I'm windows developer and new for Linux, that's why I cannot resolve next problem. Help me a bit, please. Debian's repository contains only Monodevelop 1.0. I want to try Monodevelop 2.0 and going to compile it from the source. $ svn co svn://anonsvn.mono-project.com/source/trunk/monodevelop $ cd monodevelop $ ./configure --prefix=/usr Checking for package 'mono-debugger'.. ERROR: Package named 'mono-debugger' = 0.80 not found. Ok, I understand. Need to download, compile and install monodevelop-debugger $ svn co svn://anonsvn.mono-project.com/source/trunk/debugger $ cd debugger $ ./autogen.sh --prefix=/usr configure: error: Cannot find termcap library Debian's FAQ said: Debian uses the terminfo database and the ncurses library of terminal interface routes, rather than the termcap database and the termcap library. Users who are compiling programs that require some knowledge of the terminal interface should replace references to libtermcap with references to libncurses. To support binaries that have already been linked with the termcap library, and for which you do not have the source, Debian provides a package called termcap-compat. This provides both libtermcap.so.2 and /etc/termcap. Install this package if the program fails to run with the error message can't load library 'libtermcap.so.2', or complains about a missing /etc/termcap file. I have installed libtermcap-compat and its dependencies manually, but autogen script has the same error: Cannot find termcap library What I have to do? === Best regards, Alexander M. Batishchev ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list _ Your PC, mobile phone, and online services work together like never before. http://clk.atdmt.com/MRT/go/108587394/direct/01/___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Bug in mod_mono?
Hi:If this isn't a correct place to make this kind of question, about a bug found in mod_mono, on Ubuntu (Server and Desktop 8.04) point me to the correct place please.I've got now installed and running properly my apache with Mod_mono 2 (at least the samples works). But when i install, i add mono+gtk+monodevelop and mono-apache-server2 and xsp2 and xsp2_base (this are the names of the Ubuntu package on an official repository and in the debian repository too) with aptitude. After the installation, all works great, except mod_mono. I try everything, and finally found my solution in apache error log. (/var/log/apache2/error.log). I found that mod_mono was calling /bin/mod-mono-server and the real name was /bin/mono-apache-server2) I finally resolve this by making a link (ln -s mono-apache-server mono-apache-server2). Is this a mod_mono bug or maybe it is a bug from ubuntu package? (I think that is a mod_mono error, beacause i try to compile from source and i have the some problem.Do i fill a bug report?Thanks a lot. Luciano _ Send funny voice messages packed with tidbits from MSN. Everyone wants to be ready. http://www.noonewantstolookdumb.com?OCID=T001MSN54N1613A___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] System.IO or Mono.Unix
Hi. First: I'm developing an application that use System.IO and i read that there are some IO operation classes in the Mono.Unix namespace. Which is the best solution? System.IO or Mono.Unix? I'm developing a Linux-Only Application. Second: Could someone explain (example) how Mono.Unix.DirectoryInfo.GetEntries works? i need to get all the directories/files/symbolic links and: length, datetime creation and modified, fullpath, etc. I don't understand how to use the returned value (Mono.Unix.Native.Dirent) and how to convert to UnixFileInfo or UnixSymbolicLinkInfo. Thanks you in advance Luciano _ Latinos en EE.UU: noticias y artículos de interés para ti http://latino.msn.com/noticias/latinoseneeuu ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] System.IO or Mono.Unix
Thanks to you and jonathan. You are right, i don't need (at this moment) any native calls, maybe in the future i will use mixed solution. i was thinking that maybe it was faster Mono.Unix than System.IO. Thanks! Bye. Luciano From: David Brown [EMAIL PROTECTED] To: Luciano _ [EMAIL PROTECTED] CC: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] System.IO or Mono.Unix Date: Fri, 22 Dec 2006 10:58:19 -0800 MIME-Version: 1.0 Received: from mail.davidb.org ([66.93.32.219]) by bay0-mc9-f7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Fri, 22 Dec 2006 10:59:05 -0800 Received: from a64.davidb.org ([66.93.32.226])by mail.davidb.org with esmtpa (Exim 4.62 #1 (Debian))id 1Gxpb1-w0-Lx; Fri, 22 Dec 2006 10:58:19 -0800 X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlK3oXsmRrh6gU= User-Agent: Thunderbird 1.5.0.8 (X11/2006) References: [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 22 Dec 2006 18:59:06.0315 (UTC) FILETIME=[412289B0:01C725FB] Luciano _ wrote: First: I'm developing an application that use System.IO and i read that there are some IO operation classes in the Mono.Unix namespace. Which is the best solution? System.IO or Mono.Unix? I'm developing a Linux-Only Application. The simple answer would be: does your application depend on knowledge of the specifics of Linux or Unix filesystem semantics? If so, you should use the native calls. Otherwise, use the portable calls. For example, writing Linux backup software would definitely need to use the Mono.Unix calls, since the program needs to accurately backup the information directly. Second: Could someone explain (example) how Mono.Unix.DirectoryInfo.GetEntries works? i need to get all the directories/files/symbolic links and: length, datetime creation and modified, fullpath, etc. I don't understand how to use the returned value (Mono.Unix.Native.Dirent) and how to convert to UnixFileInfo or UnixSymbolicLinkInfo. The only portable field in the Dirent is d_name, which will give you a string. Use Mono.Unix.Native.lstat to get the rest of the information. The names UnixSymbolicLinkInfo and UnixFileInfo are kind of misleading. I personally think that wrapper is more confusing than it is worth. The lstat will fill in a Mono.Unix.Native.Stat which will have what you want. Remember, you might need the routines in Mono.Unix.Marshal to convert the Posix time fields to something useful in the rest of Mono. I have not had success doing these conversions without confusion between localtime and UTC, though. The question you are asking suggests you need to use the native calls. Dave _ Visita MSN Latino Entretenimiento: ¡música, cine, chismes, TV y más...! http://latino.msn.com/entretenimiento/ ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] System.IO.Directory.CreateDirectory bug!
Thanks, i will test when the next mono release. Thanks. From: Robert Jordan [EMAIL PROTECTED] To: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] System.IO.Directory.CreateDirectory bug! Date: Sat, 16 Dec 2006 15:36:01 +0100 MIME-Version: 1.0 Received: from lists.ximian.com ([130.57.169.22]) by bay0-mc8-f13.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Sat, 16 Dec 2006 06:36:32 -0800 Received: from galactus.ximian.com (localhost.localdomain [127.0.0.1])by lists.ximian.com (Postfix) with ESMTP id 099A41CFB98;Sat, 16 Dec 2006 10:43:57 -0500 (EST) Received: from herald.ximian.com (frontgate.ximian.com [130.57.169.19])by lists.ximian.com (Postfix) with ESMTP id A1C1B1CFB54for mono-devel-list@lists.ximian.com;Sat, 16 Dec 2006 10:43:55 -0500 (EST) Received: by herald.ximian.com (Postfix, from userid 2601)id 1F73670044; Sat, 16 Dec 2006 09:36:25 -0500 (EST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2])by herald.ximian.com (Postfix) with ESMTP id 4041570044for mono-devel-list@lists.ximian.com;Sat, 16 Dec 2006 09:36:22 -0500 (EST) Received: from list by ciao.gmane.org with local (Exim 4.43)id 1Gvae6-00068b-43for mono-devel-list@lists.ximian.com; Sat, 16 Dec 2006 15:36:14 +0100 Received: from p548b66a4.dip.t-dialin.net ([84.139.102.164])by main.gmane.org with esmtp (Gmexim 0.1 (Debian))id 1AlnuQ-0007hv-00for mono-devel-list@lists.ximian.com; Sat, 16 Dec 2006 15:36:14 +0100 Received: from robertj by p548b66a4.dip.t-dialin.net with local (Gmexim 0.1(Debian)) id 1AlnuQ-0007hv-00for mono-devel-list@lists.ximian.com; Sat, 16 Dec 2006 15:36:14 +0100 X-Message-Info: txF49lGdW43toKDsUtl/QwfnK8MPE/0PcJJ2poq/dP4= X-Original-To: mono-devel-list@lists.ximian.com Delivered-To: mono-devel-list@lists.ximian.com X-Injected-Via-Gmane: http://gmane.org/ Lines: 10 References: [EMAIL PROTECTED][EMAIL PROTECTED] X-Complaints-To: [EMAIL PROTECTED] X-Gmane-NNTP-Posting-Host: p548b66a4.dip.t-dialin.net User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on frontgate.ximian.com X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=AWL,SPF_HELO_PASS,SPF_PASS version=3.0.3 X-BeenThere: mono-devel-list@lists.ximian.com X-Mailman-Version: 2.1.8 Precedence: list List-Id: Mono Development mono-devel-list.lists.ximian.com List-Unsubscribe: http://lists.ximian.com/mailman/listinfo/mono-devel-list, mailto:[EMAIL PROTECTED] List-Archive: http://lists.ximian.com/pipermail/mono-devel-list List-Post: mailto:mono-devel-list@lists.ximian.com List-Help: mailto:[EMAIL PROTECTED] List-Subscribe: http://lists.ximian.com/mailman/listinfo/mono-devel-list,mailto:[EMAIL PROTECTED] Errors-To: [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 16 Dec 2006 14:36:32.0802 (UTC) FILETIME=[94D4B820:01C7211F] Leszek Ciesielski wrote: Do i fill a bug report? is it correct this behavior? Just checked on MS.Net 2.0, an exception is thrown when you try to create a directory with a same name as file. I guess we have to stick with MS behaviour, not MSDN, if they differ. So this is a bug. This bug has been fixed a couple of weeks ago. Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list _ Latinos en EE.UU: noticias y artículos de interés para ti http://latino.msn.com/noticias/latinoseneeuu ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] System.IO.Directory.CreateDirectory bug!
Hi: I'm using mono 1.1.17.1. I have a problem with System.IO.Directory.CreateDirectory method. The problem is: if i create a file in somewhere with some name, and then create a folder in the same place with the same (file) name, the folder is not created (wich is correct) but no exception is throw. This is correct? (If i create first the directory and then the file, the System.IO.File.Create method throw a correct System.IO.IOException). The code to test is: namespace test { class MainClass { public static void Main(string[] args) { File.Create(/tmp/test); Console.WriteLine(String.Format(File Exists? {0}, File.Exists(/tmp/test).ToString())); Directory.CreateDirectory(/tmp/test); // An IOException must be throw here. Console.WriteLine(String.Format(Folder Exists? {0}, Directory.Exists(/tmp/test).ToString())); } } } Do i fill a bug report? is it correct this behavior? Thanks in advanced Luciano _ Visita MSN Latino Noticias: Todo lo que pasa en el mundo y en tu paín, ¡en tu idioma! http://latino.msn.com/noticias/ ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] System Icon For a File
Hi, sorry if this isn't the correct List. The question, is: I'm developing an application with MonoDevelop, with GTK. The question: I need to obtain the icon for a file. If it is a *tar* or pdf file (example) i need to obtain the icon that gnome gave to this file, and then assign it to a TreeView ListStore. If this possible? how do i do?. my application is Linux-only, maybe using some library and P/Invoke? or maybe something with mime/types. Thanks in advanced. Luciano _ ¿Cuánto vale tu auto? Tips para mantener tu carro. ¡De todo en MSN Latino Autos! http://latino.msn.com/autos/ ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list