[Mono-list] Newbie Compiling from CVS

Daniel Morgan danmorg@sc.rr.com
Sat, 7 Dec 2002 08:56:11 -0500


Hi,

Your buld of mono succeeded although it looks like it didn't.

Most of them are warnings which can be ignored...

The errors you see are for copying the mcs.exe (C# compiler) and *.dll
(class libraries), such as corlib.dll, System.dll, System.Xml assemblies
from one place to another...  They are being copied from
../../mcs/mcs/mcs.exe and ../../mcs/class/lib/*.dll to your mono install
prefix /bin and /lib.  Since you have never built mcs from cvs and do not
have these files, this is why you get these errors.

The mono build script does not build mcs.exe nor *.dll assemblies.  You have
to get these from the latest monocharge tarball at
http://www.gnome-db.org/~gonzalo/mono/

It this tarball, it contains the mcs.exe and *.dll aseemblies you need.
Untar/ungzip this tarball to your mono/install prefix.

From that monocharge tarball, you can copy mcs.exe to your mcs/mcs and *.dll
to your mcs/class/lib directories.

-----Original Message-----
From: mono-list-admin@ximian.com [mailto:mono-list-admin@ximian.com]On
Behalf Of Segovax
Sent: Saturday, December 07, 2002 4:22 AM
To: mono-list@ximian.com
Subject: [Mono-list] Newbie Compiling from CVS


I couldn't get the mono-build.sh script to work so I've tried to install
from anon CVS using the directions on the go-mono website.

I've logged in and pulled down the mcs mono and gtk-sharp source.

I then enter the mono directory and type ./autogen.sh.
That seems to work fine.

However, when I run make, I get a myriad of errors that have me
frustrated.  Can anyone please help :o)

This is a condensed stderr from make.
---------------------
In file included from ../../mono/os/gc_wrapper.h:6,
                 from mono-hash.c:40:
/usr/include/glib-2.0/gc/gc.h:203: warning: function declaration isn't a
prototype
In file included from ../../mono/os/gc_wrapper.h:6,

...

/usr/include/glib-2.0/gc/gc.h:838: warning: function declaration isn't a
prototype
assembly.c: In function `search_loaded':
assembly.c:62: warning: unused variable `size'
...

/usr/include/glib-2.0/gc/gc.h:838: warning: function declaration isn't a
prototype
mono-config.c: In function `mono_config_init':
mono-config.c:211: warning: passing arg 2 of `g_hash_table_insert'
discards qualifiers from pointer target type
mono-config.c:211: warning: passing arg 3 of `g_hash_table_insert'
discards qualifiers from pointer target type
loader.c: In function `mono_add_internal_call':
loader.c:49: warning: passing arg 3 of `g_hash_table_insert' discards
qualifiers from pointer target type
...

libtest.c:196: warning: assignment discards qualifiers from pointer
target type
libtest.c: At top level:
libtest.c:207: warning: no previous prototype for
`mono_test_marshal_stringbuilder'
cp: cannot stat `../../mcs/class/lib/corlib.dll': No such file or directory
cp: cannot stat `/mono/lib/corlib.dll': No such file or directory
cp: cannot stat `../../mcs/class/lib/System.dll': No such file or directory
cp: cannot stat `/mono/lib/System.dll': No such file or directory
cp: cannot stat `../../mcs/class/lib/System.Data.dll': No such file or
directory
cp: cannot stat `/mono/lib/System.Data.dll': No such file or directory
cp: cannot stat `../../mcs/class/lib/System.Xml.dll': No such file or
directory
cp: cannot stat `/mono/lib/System.Xml.dll': No such file or directory

...
---------------------
ugh....

Thanks for any help you can give.


_______________________________________________
Mono-list maillist  -  Mono-list@ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list