[Mono-list] still can't run mono on RH7.1/i386

Dietmar Maurer dietmar@ximian.com
04 Apr 2002 14:35:10 +0200


I have no idea why you have zero sized dlls. Simply copy the real dlls
(from mcs/class/lib) to /usr/src/mono/install/lib/ and try it again.

- Dietmar

On Thu, 2002-04-04 at 14:05, Mike Carifio wrote:
> I guess I'm getting closer. Corlib.dll was mismatched. So I blew away
> /usr/src/mono/install
> (the local build targets), did a 'make clean' and rebuilt everything.
> Now several
> .dll's have zero size. Strace is pretty cool, though.
> 
> [root@penguin try]# strace -e open /usr/src/mono/install/bin/mono
> /usr/src/mono/install/bin/mcs.exe first.cs
> open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
> directory)
> open("/usr/src/mono/install/lib/i686/mmx/libglib-1.3.so.14", O_RDONLY) =
> -1 ENOENT (No such file or directory)
> open("/usr/src/mono/install/lib/i686/libglib-1.3.so.14", O_RDONLY) = -1
> ENOENT (No such file or directory)
> open("/usr/src/mono/install/lib/mmx/libglib-1.3.so.14", O_RDONLY) = -1
> ENOENT (No such file or directory)
> open("/usr/src/mono/install/lib/libglib-1.3.so.14", O_RDONLY) = -1
> ENOENT (No such file or directory)
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> open("/usr/lib/libglib-1.3.so.14", O_RDONLY) = 3
> open("/usr/src/mono/install/lib/libgmodule-1.3.so.14", O_RDONLY) = -1
> ENOENT (No such file or directory)
> open("/usr/lib/libgmodule-1.3.so.14", O_RDONLY) = 3
> open("/usr/src/mono/install/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/lib/libdl.so.2", O_RDONLY)       = 3
> open("/usr/src/mono/install/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/lib/i686/libm.so.6", O_RDONLY)   = 3
> open("/usr/src/mono/install/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> open("/lib/i686/libpthread.so.0", O_RDONLY) = 3
> open("/usr/src/mono/install/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/lib/libnsl.so.1", O_RDONLY)      = 3
> open("/usr/src/mono/install/lib/librt.so.1", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/lib/librt.so.1", O_RDONLY)       = 3
> open("/usr/src/mono/install/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/lib/i686/libc.so.6", O_RDONLY)   = 3
> open("/usr/src/mono/install/lib/corlib.dll", O_RDONLY|O_LARGEFILE) = 3
> The assembly corlib.dll was not found or could not be loaded.
> It should have been installed in the `/usr/src/mono/install/lib'
> directory.
> [root@penguin try]# ls -la /usr/src/mono/install/lib/corlib.dll
> -rw-r--r--    1 root     root            0 Apr  4 05:50
> /usr/src/mono/install/lib/corlib.dll
> [root@penguin try]# pwd
> /usr/src/mono/try
> [root@penguin try]# ls -la            
> total 8508
> drwxrwxr-x    2 root     root         4096 Apr  4 05:50 .
> drwxrwxr-x    7 root     root         4096 Apr  4 05:45 ..
> -rw-r--r--    1 root     root            0 Apr  4 05:50 corlib.dll
> -rw-r--r--    1 root     root      3409160 Apr  4 05:50 libmetadata.a
> -rw-r--r--    1 root     root      2654782 Apr  4 05:50 libmono.a
> -rw-r--r--    1 root     root       211148 Apr  4 05:50 libmonodis.a
> -rw-r--r--    1 root     root        44916 Apr  4 05:50 libmonoutils.a
> -rw-r--r--    1 root     root      2026888 Apr  4 05:50 libwapi.a
> -rw-r--r--    1 root     root        19456 Apr  4 05:50 System.Data.dll
> -rw-r--r--    1 root     root       192512 Apr  4 05:50 System.dll
> -rw-r--r--    1 root     root            0 Apr  4 05:50
> System.Drawing.dll
> -rw-r--r--    1 root     root            0 Apr  4 05:50 System.Web.dll
> -rw-r--r--    1 root     root       110592 Apr  4 05:50 System.Xml.dll
> [root@penguin try]# 
> 
>  
> 
> > -----Original Message-----
> > From: Dietmar Maurer [mailto:dietmar@ximian.com] 
> > Sent: Thursday, April 04, 2002 2:47 AM
> > To: Mike Carifio
> > Cc: Mono List
> > Subject: Re: [Mono-list] still can't run mono on RH7.1/i386
> > 
> > 
> > On Thu, 2002-04-04 at 01:46, Mike Carifio wrote:
> > > Using mono-build.sh, I get a clean cvs checkout and build, I think. 
> > > But I still can't compile first.cs (hello, world). Suggestions? Pl. 
> > > advise at your convenience. Thanks.
> > > 
> > > [root@penguin try]# echo $LD_LOAD_LIBRARY
> > > /usr/src/mono/install/lib
> > > [root@penguin try]# ls $LD_LOAD_LIBRARY 
> > > corlib.dll  libgc.so        libmetadata.a  libmonoutils.a   
> > System.dll
> > > System.Xml.dll
> > > libgc.a     libgc.so.1      libmono.a      libwapi.a
> > > System.Drawing.dll
> > > libgc.la    libgc.so.1.0.1  libmonodis.a   System.Data.dll
> > > System.Web.dll
> > > [root@penguin try]# /usr/src/mono/install/bin/m
> > > mcs        mint       mono       monodis    monograph  
> > > [root@penguin try]# /usr/src/mono/install/bin/mono
> > > /usr/src/mono/install/bin/m
> > > mcs        mcs.exe    mint       mono       monodis    monograph  
> > > [root@penguin try]# /usr/src/mono/install/bin/mono
> > > /usr/src/mono/install/bin/mcs.exe first.cs
> > > 
> > > (process:21928): ** ERROR **: file appdomain.c: line 293 
> > (mono_init): 
> > > assertion failed: (mono_defaults.asyncresult_class != 0) aborting...
> > 
> > You need to install a newer version of corlib.dll. Try 
> > 
> > strace -e open /usr/src/mono/install/bin/mono 
> > /usr/src/mono/install/bin/mcs.exe first.cs
> > 
> > to check if it opens the right corlib.dll.
> > 
> > - Dietmar
> > 
> > 
> > 
> > 
> >