Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75560 - Emerging mono fails because of Unhandled Exception: System.DllNotFoundException: libc
Summary: Emerging mono fails because of Unhandled Exception: System.DllNotFoundExcepti...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: dotnet project
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
: 76144 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-24 09:34 UTC by Thomas Markus
Modified: 2005-01-04 08:08 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mono ebulid with potential fix (mono-1.0.5-r3.ebuild,4.05 KB, text/plain)
2005-01-03 08:40 UTC, Peter Johanson (RETIRED)
Details
Better-tested, hopefully-working version (mono-1.0.5-r3.ebuild,4.09 KB, text/plain)
2005-01-03 18:20 UTC, Peter Johanson (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Markus 2004-12-24 09:34:40 UTC
When emerging mono-1.0.5-r3 I get the following error:

MONO_CFG_DIR='/var/tmp/portage/mono-1.0.5-r3/image//etc/' MONO_PATH="../../class/lib/default:$MONO_PATH" /var/tmp/portage/mono-1.0.5-r3/work/mono-1.0.5/mono/mini/mono  ../../tools/security/sn.exe -q -R ../../class/lib/default/System.dll ../../class/mono.snk
Assembly ../../class/lib/default/System.dll signed.
echo stamp > ../../build/deps/default_System.dll.was_signed
MONO_PATH="../../class/lib/default:$MONO_PATH" /var/tmp/portage/mono-1.0.5-r3/work/mono-1.0.5/mono/mini/mono  ../../tools/gacutil/gacutil.exe /i ../../class/lib/default/System.dll /f /root /var/tmp/portage/mono-1.0.5-r3/image//usr/lib /package 1.0

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[2]: *** [install-local] Error 1
make[2]: Leaving directory `/var/tmp/portage/mono-1.0.5-r3/work/mcs-1.0.5/class/System'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mono-1.0.5-r3/work/mcs-1.0.5/class'
make: *** [install-recursive] Error 1

!!! ERROR: dev-dotnet/mono-1.0.5-r3 failed.
!!! Function src_install, Line 122, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. Emerge
2. Wait
3. *poof* there it is
Comment 1 Thomas Markus 2004-12-24 09:37:13 UTC
This is perhaps a somewhat similar bug, although it should be fixed already
http://forums.gentoo.org/viewtopic.php?t=191629&highlight=mono+emerge+libc
Comment 2 Bret Towe 2004-12-24 23:43:19 UTC
i encountered this problem on my laptop which didnt have mono installed
the sed line from .97 doesnt fix the problem
but i copied the needed config file to /etc/mono/ and reran the merge
and it installed fine after that
Comment 3 Brian Pankey 2005-01-02 22:12:54 UTC
im having the same problems. clean install, trying to emerge mono and same exact error shows.

compaqserver ~ # emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r1 i586)
=================================================================
System uname: 2.6.10-gentoo-r1 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 28 2004, 23:34:03)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=k6-2 -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k6-2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow acl alsa apache2 berkdb bitmap-fonts ctype dba fortran gd gdbm gif gpm imap jpeg libwww maildir mmx mysql ncurses nls openssh pam pam-mysql php png readline sqlite ssl tcpd xml2 zlib"
Comment 4 Peter Johanson (RETIRED) gentoo-dev 2005-01-03 08:40:39 UTC
Created attachment 47492 [details]
mono ebulid with potential fix

Here's an ebuild that hopefully fixes the problem. I've done rudimentary
testing on it, can you please try this and report back any success/failure?
Thanks.
Comment 5 alex f 2005-01-03 09:33:12 UTC
Ebuild from Comment #4 fails with the same error except it happens on line 128 from src_install() line.

MONO_PATH="../../class/lib/default:$MONO_PATH" /var/tmp/portage/mono-1.0.5-r3/wo
rk/mono-1.0.5/mono/mini/mono  ../../tools/gacutil/gacutil.exe /i ../../class/lib
/default/System.dll /f /root /var/tmp/portage/mono-1.0.5-r3/image//usr/lib /pack
age 1.0

Unhandled Exception: System.DllNotFoundException: libc
in <0x00053> (wrapper managed-to-native) Mono.Tools.Driver:symlink (string,strin
g)
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[2]: *** [install-local] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/mono-1.0.5-r3/work/mcs-1.0.5/class/
System'
make[1]: *** [install-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/mono-1.0.5-r3/work/mcs-1.0.5/class'
make: *** [install-recursive] Fehler 1

!!! ERROR: dev-dotnet/mono-1.0.5-r3 failed.
!!! Function src_install, Line 128, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

# emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10 i686)
=================================================================
System uname: 2.6.10 i686 Intel(R) Pentium(R) M processor 1.50GHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 29 2004, 16:37:00)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r2, 1.6.3, 1.7.9, 1.4_p6, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X X509 aac aalib acl acpi alsa artworkextra avi berkdb bitmap-fonts cdr crypt cups dhcp directfb divx4linux dmx dvb dvd dvdr dvdread eds encode ethereal evo faad fam fbcon flac font-server foomaticdb gdbm gif gmail gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl imap imlib ipv6 java jce jpeg libwww mad maildir matroska mbox mikmod mime mmap mmx mmx2 mono motif mozilla moznocompose moznoirc moznomail mozsvg mpeg ncurses network nls nntp noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl nptlonly objc oggvorbis opengl pcre pdflib perl pic png pnp python quicktime readline real rtc ruby samba sdl skey speex spell sse sse2 ssl svga tcpd theora threads tiff truetype trusted ucs2 unicode xml2 xv xvid zlib video_cards_radeon"
Comment 6 Peter Johanson (RETIRED) gentoo-dev 2005-01-03 18:20:26 UTC
Created attachment 47542 [details]
Better-tested, hopefully-working version

Ok, here's a new iteration. Tested her with /etc/mono moved out of the way, and
src_install() succeeds. Please test and report back. Thanks.
Comment 7 Bret Towe 2005-01-03 21:00:57 UTC
i tried it out and before running i removed mono and removed /etc/mono completely
merged fine for me
Comment 8 alex f 2005-01-04 05:29:47 UTC
Comment #6 Ebuild worked. Thanks
Comment 9 Peter Johanson (RETIRED) gentoo-dev 2005-01-04 08:04:49 UTC
Ok, those changes have been commited to -r2 and -r3. Marking FIXED, please test though and confirm the versions in portage work for you. Thanks.
Comment 10 Peter Johanson (RETIRED) gentoo-dev 2005-01-04 08:08:34 UTC
*** Bug 76144 has been marked as a duplicate of this bug. ***