Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Dec 2007 13:09:47 +0700
From:      Eugene Grosbein <eugen@grosbein.pp.ru>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        Daniel Eischen <deischen@freebsd.org>, Boris Samorodov <bsam@ipt.ru>, stable@freebsd.org
Subject:   Re: qemu: freebsd6_mmap -1 errno 12 Cannot allocate memory
Message-ID:  <20071208060947.GB38551@svzserv.kemerovo.su>
In-Reply-To: <20071208060206.GQ83121@deviant.kiev.zoral.com.ua>
References:  <20071207154852.GA22166@grosbein.pp.ru> <20860185@bb.ipt.ru> <Pine.GSO.4.64.0712071140240.11654@sea.ntplx.net> <20071208042252.GA30019@svzserv.kemerovo.su> <20071208054552.GP83121@deviant.kiev.zoral.com.ua> <20071208055537.GA38551@svzserv.kemerovo.su> <20071208060206.GQ83121@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 08, 2007 at 08:02:06AM +0200, Kostik Belousov wrote:

> > > > 	libpthread.so.2 => /lib/libpthread.so.2 (0x481f5000)
> > > RELENG_6 libpthread
> > > > 	libc.so.6 => /lib/libc.so.6 (0x4821c000)
> > > RELENG_6 libc
> > 
> > [skip]
> > 
> > > > 	libthr.so.3 => /lib/libthr.so.3 (0x48546000)
> > > RELENG_7 libpthread
> > > > 	libc.so.7 => /lib/libc.so.7 (0x48558000)
> > > RELENG_7 libc
> > 
> > Thank you. Now I wonder, how such thing may happen
> > if qemu was built under 6.2 where there were no
> > libthr.so.3 and libc.so.7?
> Most likely, you have rebuilt some library that brough in the dependencies.
> Check with readelf -d (look for NEEDED tags).

$ readelf -d `which qemu` | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libm.so.4]
 0x00000001 (NEEDED)                     Shared library: [libz.so.3]
 0x00000001 (NEEDED)                     Shared library: [libSDL.so.11]
 0x00000001 (NEEDED)                     Shared library: [libutil.so.5]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.2]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]

Well, libSDL.so.11 is a culprit here. I'll try to get older version to
/usr/local/lib/compat and use libmap.conf to resolve this.

Eugene Grosbein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071208060947.GB38551>