[Mono-dev] Build mono in linux
Rubén de Alba
rdealba at codicesoftware.com
Thu Jun 28 03:49:14 EDT 2007
I execute the command ($ ./configure --with-glib=embedded) and it finishes
withour errors.
Then, I do the make and it fails:
-bash-3.00$ make
make all-recursive
make[1]: Entering directory `/home/CODICE/ruben/monosvn/mono'
Making all in libgc
make[2]: Entering directory `/home/CODICE/ruben/monosvn/mono/libgc'
Making all in include
make[3]: Entering directory `/home/CODICE/ruben/monosvn/mono/libgc/include'
Making all in private
make[4]: Entering directory
`/home/CODICE/ruben/monosvn/mono/libgc/include/private'
make[4]: No se hace nada para `all'.
make[4]: Leaving directory
`/home/CODICE/ruben/monosvn/mono/libgc/include/private'
make[4]: Entering directory `/home/CODICE/ruben/monosvn/mono/libgc/include'
make[4]: No se hace nada para `all-am'.
make[4]: Leaving directory `/home/CODICE/ruben/monosvn/mono/libgc/include'
make[3]: Leaving directory `/home/CODICE/ruben/monosvn/mono/libgc/include'
Making all in doc
make[3]: Entering directory `/home/CODICE/ruben/monosvn/mono/libgc/doc'
make[3]: No se hace nada para `all'.
make[3]: Leaving directory `/home/CODICE/ruben/monosvn/mono/libgc/doc'
make[3]: Entering directory `/home/CODICE/ruben/monosvn/mono/libgc'
make[3]: No se hace nada para `all-am'.
make[3]: Leaving directory `/home/CODICE/ruben/monosvn/mono/libgc'
make[2]: Leaving directory `/home/CODICE/ruben/monosvn/mono/libgc'
Making all in mono
make[2]: Entering directory `/home/CODICE/ruben/monosvn/mono/mono'
Making all in utils
make[3]: Entering directory `/home/CODICE/ruben/monosvn/mono/mono/utils'
if /bin/sh ../../libtool --tag=CC --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../mono -I../../libgc/include
-I../../eglib/src -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP
-DUSE_MUNMAP -D_FILE_OFFSET_BITS=64 -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing
-Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT
mono-ehash.lo -MD -MP -MF ".deps/mono-ehash.Tpo" -c -o mono-ehash.lo
mono-ehash.c; \
then mv -f ".deps/mono-ehash.Tpo" ".deps/mono-ehash.Plo"; else rm -f
".deps/mono-ehash.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../mono -I../../libgc/include
-I../../eglib/src -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP
-DUSE_MUNMAP -D_FILE_OFFSET_BITS=64 -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing
-Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual
-Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT
mono-ehash.lo -MD -MP -MF .deps/mono-ehash.Tpo -c
mono-ehash.c -fPIC -DPIC -o .libs/mono-ehash.o
In file included from mono-ehash.c:31:
../../eglib/src/glib.h:17:26: error: eglib-config.h: No such file or
directory
In file included from mono-ehash.c:31:
../../eglib/src/glib.h:120: error: syntax error before 'n_bytes'
../../eglib/src/glib.h:120: warning: function declaration isn't a prototype
../../eglib/src/glib.h:121: error: syntax error before 'gsize'
../../eglib/src/glib.h:121: warning: function declaration isn't a prototype
../../eglib/src/glib.h:123: error: syntax error before 'n_blocks'
../../eglib/src/glib.h:123: warning: function declaration isn't a prototype
../../eglib/src/glib.h:124: error: syntax error before 'n_bytes'
../../eglib/src/glib.h:124: warning: function declaration isn't a prototype
../../eglib/src/glib.h:125: error: syntax error before 'gsize'
../../eglib/src/glib.h:125: warning: function declaration isn't a prototype
../../eglib/src/glib.h:208: error: syntax error before 'gsize'
../../eglib/src/glib.h:208: warning: function declaration isn't a prototype
../../eglib/src/glib.h:210: error: syntax error before 'gsize'
../../eglib/src/glib.h:210: warning: function declaration isn't a prototype
../../eglib/src/glib.h:240: error: syntax error before 'g_strlcpy'
../../eglib/src/glib.h:240: error: syntax error before 'gsize'
../../eglib/src/glib.h:240: warning: type defaults to 'int' in declaration
of 'g_strlcpy'
../../eglib/src/glib.h:240: warning: function declaration isn't a prototype
../../eglib/src/glib.h:240: warning: data definition has no type or storage
class
../../eglib/src/glib.h:243: error: syntax error before 'gssize'
../../eglib/src/glib.h:243: warning: function declaration isn't a prototype
../../eglib/src/glib.h:244: error: syntax error before 'gsize'
../../eglib/src/glib.h:244: warning: function declaration isn't a prototype
../../eglib/src/glib.h:272: error: syntax error before 'gsize'
../../eglib/src/glib.h:272: warning: no semicolon at end of struct or union
../../eglib/src/glib.h:273: warning: type defaults to 'int' in declaration
of 'allocated_len'
../../eglib/src/glib.h:273: warning: data definition has no type or storage
class
../../eglib/src/glib.h:274: warning: type defaults to 'int' in declaration
of 'GString'
../../eglib/src/glib.h:274: warning: data definition has no type or storage
class
../../eglib/src/glib.h:276: error: syntax error before '*' token
../../eglib/src/glib.h:276: warning: type defaults to 'int' in declaration
of 'g_string_new'
../../eglib/src/glib.h:276: warning: data definition has no type or storage
class
../../eglib/src/glib.h:277: error: syntax error before '*' token
../../eglib/src/glib.h:277: error: syntax error before 'gssize'
../../eglib/src/glib.h:277: warning: type defaults to 'int' in declaration
of 'g_string_new_len'
../../eglib/src/glib.h:277: warning: function declaration isn't a prototype
../../eglib/src/glib.h:277: warning: data definition has no type or storage
class
../../eglib/src/glib.h:278: error: syntax error before '*' token
../../eglib/src/glib.h:278: error: syntax error before 'default_size'
../../eglib/src/glib.h:278: warning: type defaults to 'int' in declaration
of 'g_string_sized_new'
../../eglib/src/glib.h:278: warning: function declaration isn't a prototype
../../eglib/src/glib.h:278: warning: data definition has no type or storage
class
../../eglib/src/glib.h:279: error: syntax error before '*' token
../../eglib/src/glib.h:279: warning: function declaration isn't a prototype
../../eglib/src/glib.h:280: error: syntax error before '*' token
../../eglib/src/glib.h:280: error: syntax error before '*' token
../../eglib/src/glib.h:280: warning: type defaults to 'int' in declaration
of 'g_string_append'
../../eglib/src/glib.h:280: warning: function declaration isn't a prototype
../../eglib/src/glib.h:280: warning: data definition has no type or storage
class
../../eglib/src/glib.h:281: error: syntax error before '*' token
../../eglib/src/glib.h:281: warning: function declaration isn't a prototype
../../eglib/src/glib.h:282: error: syntax error before '*' token
../../eglib/src/glib.h:282: warning: function declaration isn't a prototype
../../eglib/src/glib.h:283: error: syntax error before '*' token
../../eglib/src/glib.h:283: error: syntax error before '*' token
../../eglib/src/glib.h:283: warning: type defaults to 'int' in declaration
of 'g_string_append_c'
../../eglib/src/glib.h:283: warning: function declaration isn't a prototype
../../eglib/src/glib.h:283: warning: data definition has no type or storage
class
../../eglib/src/glib.h:284: error: syntax error before '*' token
../../eglib/src/glib.h:284: error: syntax error before '*' token
../../eglib/src/glib.h:284: warning: type defaults to 'int' in declaration
of 'g_string_append'
../../eglib/src/glib.h:284: warning: function declaration isn't a prototype
../../eglib/src/glib.h:284: warning: data definition has no type or storage
class
../../eglib/src/glib.h:285: error: syntax error before '*' token
../../eglib/src/glib.h:285: error: syntax error before '*' token
../../eglib/src/glib.h:285: warning: type defaults to 'int' in declaration
of 'g_string_append_len'
../../eglib/src/glib.h:285: warning: function declaration isn't a prototype
../../eglib/src/glib.h:285: warning: data definition has no type or storage
class
../../eglib/src/glib.h:286: error: syntax error before '*' token
../../eglib/src/glib.h:286: error: syntax error before '*' token
../../eglib/src/glib.h:286: warning: type defaults to 'int' in declaration
of 'g_string_truncate'
../../eglib/src/glib.h:286: warning: function declaration isn't a prototype
../../eglib/src/glib.h:286: warning: data definition has no type or storage
class
../../eglib/src/glib.h:287: error: syntax error before '*' token
../../eglib/src/glib.h:287: error: syntax error before '*' token
../../eglib/src/glib.h:287: warning: type defaults to 'int' in declaration
of 'g_string_prepend'
../../eglib/src/glib.h:287: warning: function declaration isn't a prototype
../../eglib/src/glib.h:287: warning: data definition has no type or storage
class
../../eglib/src/glib.h:654: error: syntax error before 'gsize'
../../eglib/src/glib.h:654: warning: function declaration isn't a prototype
../../eglib/src/glib.h:702: error: syntax error before 'gsize'
../../eglib/src/glib.h:704: warning: function declaration isn't a prototype
../../eglib/src/glib.h:708: error: syntax error before 'gsize'
../../eglib/src/glib.h:710: warning: function declaration isn't a prototype
../../eglib/src/glib.h:722: error: syntax error before 'gssize'
../../eglib/src/glib.h:723: warning: function declaration isn't a prototype
../../eglib/src/glib.h:731: error: syntax error before 'gssize'
../../eglib/src/glib.h:733: warning: function declaration isn't a prototype
../../eglib/src/glib.h:734: error: syntax error before 'gssize'
../../eglib/src/glib.h:735: warning: function declaration isn't a prototype
../../eglib/src/glib.h:736: error: syntax error before 'gssize'
../../eglib/src/glib.h:737: warning: function declaration isn't a prototype
../../eglib/src/glib.h:738: error: syntax error before 'gssize'
../../eglib/src/glib.h:740: warning: function declaration isn't a prototype
../../eglib/src/glib.h:741: error: syntax error before 'gssize'
../../eglib/src/glib.h:741: warning: function declaration isn't a prototype
In file included from ../../mono/io-layer/critical-sections.h:16,
from ../../mono/io-layer/wapi.h:20,
from ../../mono/io-layer/io-layer.h:25,
from ../../mono/metadata/object-internals.h:7,
from ../../mono/metadata/gc-internal.h:13,
from mono-ehash.c:34:
../../mono/io-layer/mono-mutex.h:167: error: syntax error before 'static'
In file included from ../../mono/io-layer/wapi.h:30,
from ../../mono/io-layer/io-layer.h:25,
from ../../mono/metadata/object-internals.h:7,
from ../../mono/metadata/gc-internal.h:13,
from mono-ehash.c:34:
../../mono/io-layer/threads.h:45: error: syntax error before 'gsize'
../../mono/io-layer/threads.h:45: warning: function declaration isn't a
prototype
../../mono/io-layer/threads.h:46: error: syntax error before 'gsize'
../../mono/io-layer/threads.h:46: warning: function declaration isn't a
prototype
../../mono/io-layer/threads.h:47: error: syntax error before
'G_GNUC_NORETURN'
../../mono/io-layer/threads.h:47: warning: type defaults to 'int' in
declaration of 'G_GNUC_NORETURN'
../../mono/io-layer/threads.h:47: warning: data definition has no type or
storage class
../../mono/io-layer/threads.h:49: error: syntax error before
'GetCurrentThreadId'
../../mono/io-layer/threads.h:49: warning: type defaults to 'int' in
declaration of 'GetCurrentThreadId'
../../mono/io-layer/threads.h:49: warning: data definition has no type or
storage class
In file included from mono-ehash.c:34:
../../mono/metadata/gc-internal.h:60: error: syntax error before '*' token
../../mono/metadata/gc-internal.h:60: warning: function declaration isn't a
prototype
../../mono/metadata/gc-internal.h:82: error: syntax error before '*' token
../../mono/metadata/gc-internal.h:82: warning: function declaration isn't a
prototype
../../mono/metadata/gc-internal.h:83: error: syntax error before 'gsize'
../../mono/metadata/gc-internal.h:83: warning: function declaration isn't a
prototype
mono-ehash.c:347: warning: no previous prototype for
'mono_g_hash_table_insert_replace'
make[3]: *** [mono-ehash.lo] Error 1
make[3]: Leaving directory `/home/CODICE/ruben/monosvn/mono/mono/utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/CODICE/ruben/monosvn/mono/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/CODICE/ruben/monosvn/mono'
make: *** [all] Error 2
Regards,
Rubén.
----- Original Message -----
From: "Robert Jordan" <robertj at gmx.net>
To: <mono-devel-list at lists.ximian.com>
Sent: Wednesday, June 27, 2007 5:54 PM
Subject: Re: [Mono-dev] Build mono in linux
Rubén de Alba wrote:
> Hi!
>
> I've been compiling the source code (svn) in a linux machine and
> testing the binaries generated in other linux machines. This works
> fine in most of the cases, but in one of them the executable 'mono'
> fails with the next error:
>
> ../.. ../mono: symbol lookup error : ../.. ../mono: undefined symbol:
> g_unsetenv
The GLib libraries on your test machine are too old.
>
> I'll try compile with the configure option --with-glib=embedded (I
> thought that could be related), but the build fails.
How does the build fail? I doubt it failed silently, so
please post the error message(s).
Robert
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
--
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.4/825 - Release Date: 30/05/2007
15:03
More information about the Mono-devel-list
mailing list