[Mono-list] Mac X and latest cvs source

Andy Satori dru@satori-assoc.com
Tue, 19 Aug 2003 12:23:43 -0400


In an update on my earlier comments.

I've now got a built copy of the mono runtime, but will have to grab a  
monocharge later to build mcs and get a working installation

Turns out the ./configure that autogen.sh creates has a problem on OS  
X, in that it raises an error  on the lines:

GLIB_REQUIRED_VERSION=1.3.11

PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION)


and as such fails the dependancy check.

Modifying the generated configure will allow you to build mono (you do  
need the GCC 3.3 update from Apple)

Once these are done, the make process runs fine until it gets to the  
mcs portion of the build, at which point it fails here, because I don't  
have an existing mcs.exe or corlib to work with, I haven't built it  
here, and my linux machine is at home..

Andy

On Tuesday, August 19, 2003, at 10:12 AM, Matthieu Cormier wrote:

>
> Thanks for the response.
>
>> If you want to help out, you should use mono from cvs, not a version
>> several months old. Mono from cvs compiles fine on macosx (yes, we  
>> know
>> the last released package doesn't).
>
> I've downloaded the latest source from cvs and unsuccessfully tried  
> making
> the mono module.
>
> Below is a summary of what I tried to do to install.
> My main questions are:
> 	1. What libtool is everyone using?  Does it require a specific
> version?  autogen.sh tries using a --version option which isn't  
> available
> on the version I compiled and installed so I commented out that initial
> test.
> 	2. Have I not installed glib properly?  Why is pkg-config giving
> me the error displayed below?
>
> 	3. Typing make in the mcs directory gives me a Bus error.  I'm
> assuming that this is because there is no jit compiler on Mac and it is
> try to use mint.  Is this correct?
>
> Thanks, M@
>
>  ----------- Begin of Install notes -----
>
> checked out mono sources
> Tried ./autogen.sh --prefix=/usr/local in mono module
> wanted libtool
> 	dowloaded and extracted libtool-1.4.2.tar.gz
> 	setenv CFLAGS "-no-cpp-precomp"
> 	./configure
> 	make
> 	make check
> 		====================
> 		4 of 79 tests failed
> 		====================
> 		FAILED: mdemo-make.test
> 			dryrun.test
> 			hardcore.test
> 			mdemo-make.test
> 	sudo make install
> retried ./autogen.sh --prefix=/usr/local
> still wanted libtool
> looked at autogen.sh
> tried libtool --version ( didn't work )
> commented out libtool test in autogen.sh
>
> retried ./autogen.sh --prefix=/usr/local
> Got Error message
> 	 
> =======================================================================
> 	checking for pkg-config... /usr/local/bin/pkg-config
> 	./configure: line 8054: syntax error near unexpected token
> 	`PKG_CHECK_MODULES(BASE_DEPENDENCIES,'
> 	./configure: line 8054: `PKG_CHECK_MODULES(BASE_DEPENDENCIES,  
> glib-2.0 >= $GLIB_REQUIRED_VERSION)'
> 	 
> =======================================================================
>
> looked at "pkg-config --version"  0.15 installed
> decided to install latest stable pkg-config 0.14
> 	downloaded and extracted
> 	setenv CFLAGS "-no-cpp-precomp"
> 	./configure
> 	make
> 	make check
> 		===================
> 		All 11 tests passed
> 		===================
> 	sudo make install
> retried ./autogen.sh --prefix=/usr/local
> Got Error message
>          
> =======================================================================
>         checking for pkg-config... /usr/local/bin/pkg-config
>         ./configure: line 8054: syntax error near unexpected token
>         `PKG_CHECK_MODULES(BASE_DEPENDENCIES,'
>         ./configure: line 8054: `PKG_CHECK_MODULES(BASE_DEPENDENCIES,  
> glib-2.0 >= $GLIB_REQUIRED_VERSION)'
>          
> =======================================================================
> I know I installed glib-2.0.7 but let's install the latest stable  
> release
> 	downloaded and extracted glib-2.2.2.tar.gz from ftp.gtk.org
> 	setenv CFLAGS "-no-cpp-precomp"
> 	./configure
> 	make
> 	make check
> 		====================
> 		2 of 30 tests failed
> 		====================
> 	suod make install
>
> retried ./autogen.sh --prefix=/usr/local
> 	recieved same error message
>          
> =======================================================================
>         checking for pkg-config... /usr/local/bin/pkg-config
>         ./configure: line 8054: syntax error near unexpected token
>         `PKG_CHECK_MODULES(BASE_DEPENDENCIES,'
>         ./configure: line 8054: `PKG_CHECK_MODULES(BASE_DEPENDENCIES,  
> glib-2.0 >= $GLIB_REQUIRED_VERSION)'
>          
> =======================================================================
>
>
> NOTES: When running ./autogen.sh --prefix=/usr/local I get the  
> following
> "You should update your `aclocal.m4' by running aclocal"
> running aclocal inside the directory does not eliminate this message,
> have never used aclocal before
>
> ----------- End of INstall notes---------
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>