SOLVED: qemu: freebsd6_mmap -1 errno 12 Cannot allocate memory

Daniel Eischen deischen at freebsd.org
Sat Dec 8 06:37:14 PST 2007


On Sat, 8 Dec 2007, Eugene Grosbein wrote:

> On Sat, Dec 08, 2007 at 01:09:47PM +0700, Eugene Grosbein wrote:
>
>>>> 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.
>
> The problem is solved with libSDL.so.11 extracted from backup
> to /usr/local/lib/compat and a section in /etc/libmap.conf:
>
> [qemu]
> libSDL.so.11    compat/libSDL.so.11
>
> So qemu just works again. Thank you very much!

Please reread my original reply to you.  If you are going to be
rebuilding or installing new ports, then you really need to do
a portupgrade -af.  The same thing may happen again for some
other library.

-- 
DE


More information about the freebsd-stable mailing list