[Mono-list] [patch] MacOSX autoconf/automake fixes

Andy Satori dru@satori-assoc.com
Tue, 27 Jan 2004 14:31:26 -0500

With the current AnonCVS snapshot on 10.3.2

autogen.sh still fails out of the gate, and must be worked around:

checking for pkg-config... /opt/local/bin/pkg-config
./configure: line 20045: syntax error near unexpected token 
./configure: line 20045: `PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 

where: 'which pkg-config'
	returns: '/opt/local/bin/pkg-config'
where: 'pkg-config --cflags glib-2.0'
	returns: '-I/opt/local/include/glib-2.0 

modifying ./configure.in to skip this check results in a complete run

make fullbuild fails:

make[3]: Nothing to be done for `install-data-am'.
(cd runtime; make install assemblies_DATA=mscorlib.dll 
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ../mkinstalldirs /usr/local/lib
  /usr/bin/install -c -m 644 mscorlib.dll /usr/local/lib/mscorlib.dll
/bin/sh ../mkinstalldirs /usr/local/bin
  /usr/bin/install -c -m 644 mcs.exe /usr/local/bin/mcs.exe
(cd ../mcs/class; make)
Creating ../../../build/deps/I18N.dll.makefrag ...
touch ../../../build/deps/I18N.dll.stamp
MONO_PATH="../../../class/lib:$MONO_PATH" mono  ../../../mcs/mcs.exe 
/r:mscorlib.dll  -d:NET_1_1 -d:ONLY_1_1 -g /noconfig  /target:library 
/out:../../../class/lib/I18N.dll @I18N.dll.sources

Unhandled Exception: System.IO.FileNotFoundException: File 
'mscorlib.dll' not found.
in (unmanaged) (wrapper managed-to-native) 
System.Reflection.Assembly:LoadFrom (string)

make[3]: *** [../../../class/lib/I18N.dll] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [mcs-rest] Error 2

looks like there is a missing /lib:../../../class/lib

still alot of warnings about point from int without cast,
	added to my todo list of things to cleanup if / when I get time 


On Jan 27, 2004, at 11:07 AM, Andy Satori wrote:

> I'm pulling a current CVS right now, and I'll run the test this 
> evening.
> Andy
> On Jan 27, 2004, at 10:54 AM, Paolo Molaro wrote:
>> On 01/26/04 Benjamin Reed wrote:
>>> Attached is a patch that fixes these issues properly, within autoconf
>>> and automake.  You still need to do glibtoolize and friends 
>>> (autogen.sh
>>> stuff) until a new release is made, though.
>> Thanks for the patch: the issues should be already fixed in cvs
>> without any additional patch. Feel free to try and report if it works
>> for you. Also reports of running the jit on 10.3 (success or failure 
>> for
>> make test in mono/mono/tests) are appreciated.
>> Thanks.
>> lupus
>> -- 
>> -----------------------------------------------------------------
>> lupus@debian.org                                     debian/rules
>> lupus@ximian.com                             Monkeys do it better
>> _______________________________________________
>> Mono-list maillist  -  Mono-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list