It's added but it bails during the make install part... I did an "emerge unmerge mono" first and then "emerge mono" and at the end of the compilation it starts to do a make install and this happens: make[3]: Entering directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime' make[3]: Nothing to be done for `install-exec-am'. /bin/sh ../mkinstalldirs /var/tmp/portage/mono-0.97/image//usr/bin /bin/install -c -m 644 monoresgen.exe /var/tmp/portage/mono-0.97/image//usr/bin/monoresgen.exe /bin/install -c -m 644 secutil.exe /var/tmp/portage/mono-0.97/image//usr/bin/secutil.exe /bin/install -c -m 644 ilasm.exe /var/tmp/portage/mono-0.97/image//usr/bin/ilasm.exe /bin/install -c -m 644 cilc.exe /var/tmp/portage/mono-0.97/image//usr/bin/cilc.exe /bin/install -c -m 644 xsd.exe /var/tmp/portage/mono-0.97/image//usr/bin/xsd.exe /bin/install -c -m 644 wsdl.exe /var/tmp/portage/mono-0.97/image//usr/bin/wsdl.exe /bin/install -c -m 644 genxs.exe /var/tmp/portage/mono-0.97/image//usr/bin/genxs.exe /bin/install -c -m 644 al.exe /var/tmp/portage/mono-0.97/image//usr/bin/al.exe /bin/install -c -m 644 disco.exe /var/tmp/portage/mono-0.97/image//usr/bin/disco.exe /bin/install -c -m 644 sqlsharp.exe /var/tmp/portage/mono-0.97/image//usr/bin/sqlsharp.exe /bin/install -c -m 644 signcode.exe /var/tmp/portage/mono-0.97/image//usr/bin/signcode.exe /bin/install -c -m 644 chktrust.exe /var/tmp/portage/mono-0.97/image//usr/bin/chktrust.exe /bin/install -c -m 644 soapsuds.exe /var/tmp/portage/mono-0.97/image//usr/bin/soapsuds.exe /bin/install -c -m 644 monop.exe /var/tmp/portage/mono-0.97/image//usr/bin/monop.exe /bin/install -c -m 644 mono-find-provides.exe /var/tmp/portage/mono-0.97/image//usr/bin/mono-find-provides.exe /bin/install -c -m 644 mono-find-requires.exe /var/tmp/portage/mono-0.97/image//usr/bin/mono-find-requires.exe /bin/install -c -m 644 setreg.exe /var/tmp/portage/mono-0.97/image//usr/bin/setreg.exe /bin/install -c -m 644 cert2spc.exe /var/tmp/portage/mono-0.97/image//usr/bin/cert2spc.exe /bin/install -c -m 644 certmgr.exe /var/tmp/portage/mono-0.97/image//usr/bin/certmgr.exe /bin/install -c -m 644 MakeCert.exe /var/tmp/portage/mono-0.97/image//usr/bin/MakeCert.exe /bin/install -c -m 644 gacutil.exe /var/tmp/portage/mono-0.97/image//usr/bin/gacutil.exe /bin/install -c -m 644 sn.exe /var/tmp/portage/mono-0.97/image//usr/bin/sn.exe /bin/sh ../mkinstalldirs /var/tmp/portage/mono-0.97/image//usr/lib/mono/1.0/ mkdir -p -- /var/tmp/portage/mono-0.97/image//usr/lib/mono/1.0/ /bin/install -c -m 644 mcs.exe /var/tmp/portage/mono-0.97/image//usr/lib/mono/1.0//mcs.exe /bin/install -c -m 644 mbas.exe /var/tmp/portage/mono-0.97/image//usr/lib/mono/1.0//mbas.exe /bin/sh ../mkinstalldirs /var/tmp/portage/mono-0.97/image//usr/lib/mono/2.0/ mkdir -p -- /var/tmp/portage/mono-0.97/image//usr/lib/mono/2.0/ /bin/install -c -m 644 gmcs.exe /var/tmp/portage/mono-0.97/image//usr/lib/mono/2.0//gmcs.exe make[3]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime' make[2]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime' Making install in net_1_1 make[2]: Entering directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1' make[3]: Entering directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1' make[3]: Nothing to be done for `install-exec-am'. /bin/sh ../../mkinstalldirs /var/tmp/portage/mono-0.97/image//usr/lib /bin/install -c -m 644 mscorlib.dll /var/tmp/portage/mono-0.97/image//usr/lib/mscorlib.dll MONO_PATH=. /var/tmp/portage/mono-0.97/image//usr/bin/mono ./../gacutil.exe /i ./Accessibility.dll /f /package 1.0 /gacdir /var/tmp/portage/mono-0.97/image//usr/lib /root /var/tmp/portage/mono-0.97/image//usr/lib /var/tmp/portage/mono-0.97/image//usr/bin/mono: error while loading shared libraries: libmono.so.0: cannot open shared object file: No such file or directory make[3]: *** [install-data-local] Error 1 make[3]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime' make: *** [install-recursive] Error 1 !!! ERROR: dev-dotnet/mono-0.97 failed. !!! Function src_install, Line 45, Exitcode 2 !!! (no error message) Is it my system only that behaves this way?
Since nothing has changed (more or less) between the previous ebuild and this one I believe that either: a) mono has changed something in the install routine or, b) the previous installations worked since I perhaps did _not_ do an "emerge unmerge mono" before installing a new version of mono. Regarding b), mono probably used the libmono.so.0 that was installed on the system, while in this case there was no libmono.so.0 installed.
The mono-0.96 ebuild works on a clean system (i.e. doing "emerge unmerge mono" first). Something has changed in the mono makefile stuff? If I have 0.96 installed and then simply do a: emerge -u mono (to install 0.97) it compiles and installs correctly. So a quick fix is to make sure you have 0.96 installed before upgrading to 0.97.
Well ugh. Definitely sounds like some of the makefiles changed. I'll dig through some diffs and try to find where the breakage was introduced.
Peter, I saw the the mail on mono-devel-list regarding this. (http://lists.ximian.com/archives/public/mono-devel-list/2004-June/006675.html) A simple patch to fix this in this ebuild maybe?
Yeah, i'm testing a fix now, but mono takes a bit to build on my thinkpad. (:
Created attachment 34334 [details] Fixed mono ebuild Okay, here is a fixed ebuild that uses the mono runtime from the included package like 0.96 used to do. WORKSFORME, but i want one more confirmation before commiting it.
Works for me[tm]. Good work Peter.
Okay, the fix is commited. Marking FIXED, please reopen if people continue to experience problems.
Fresh installation, current ebuild: Making install in net_1_1 make[2]: Entering directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1' make[3]: Entering directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1' make[3]: Nothing to be done for `install-exec-am'. /bin/sh ../../mkinstalldirs /var/tmp/portage/mono-0.97/image//usr/lib /bin/install -c -m 644 mscorlib.dll /var/tmp/portage/mono-0.97/image//usr/lib/mscorlib.dll MONO_PATH=. ../../mono/mini/mono ./../gacutil.exe /i ./Accessibility.dll /f /package 1.0 /gacdir /var/tmp/portage/mono-0.97/image//usr/lib /root /var/tmp/portage/mono-0.97/image//usr/lib Unhandled Exception: System.DllNotFoundException: libc in <0x00053> (wrapper managed-to-native) Mono.Tools.Driver:symlink (string,string) in <0x0001b> Mono.Tools.Driver:Symlink (string,string) in <0x005ef> Mono.Tools.Driver:Install (bool,string,string,string,string,string,string) in <0x0063e> Mono.Tools.Driver:Main (string[]) make[3]: *** [install-data-local] Error 1 make[3]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime' make: *** [install-recursive] Error 1 !!! ERROR: dev-dotnet/mono-0.97 failed. !!! Function src_install, Line 50, Exitcode 2 !!! (no error message)
Re: libc See bug #55229. I just fixed this now. Please test and report back to *that* bug if it works/fails. Thanks.