Date: Wed, 14 Apr 2010 03:28:41 +0900 From: "Daisuke Aoyama" <aoyama@peach.ne.jp> To: "Bernhard Froehlich" <decke@bluelife.at> Cc: freebsd-emulation@freebsd.org Subject: Re: VirtualBox 3.1.6 does not work under i386 kernel Message-ID: <DA36511C0AFB4D898F08A615533F164B@artemis> References: <CF76818C99FD42EBB1A79E147C507A7D@artemis> <28976d8065c7ecca24a2b3bacd01fcb7@bluelife.at>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_0007_01CADB82.949562D0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit >That sounds similar to PR ports/145457 but I could not reproduce that yet. >Could you try the patch from the PR and see if it works for you? > >http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/145457 Sorry, I didn't look at PR. It said same thing I wrote. But solution is a bit different. I wrote PNG inc/lib in Makefile. (See previous attached vboxvnc-316-png-Makefile.tar.gz) @${ECHO} 'SDK_VBOX_LIBPNG_INCS = ${PREFIX}/include/libpng' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'SDK_VBOX_LIBPNG_LIBS = png' >> ${WRKSRC}/LocalConfig.kmk The PR's patch use check_png function in configure to set SDK_VBOX_LIBPNG_INCS, SDK_VBOX_LIBPNG_LIBS. It seems to be smart than mine, of course :) But I can't understand sed replacement section at line 1630. I don't need it for this issue. So my suggested patch is attached in this mail. Also there is my reproductive step by using ESXi Virtual Machine. I believe you can do. I tested VM(Mem:768M, HDD:8GB) on ESXi4. VM data on VMFS is located at FreeNAS 0.7.1 iSCSI target (ports/net/istgt). 1.) fresh install "Standard > 4 Developer" without any ports/packages from FreeBSD-7.3-RELEASE-i386-disc1.iso 2.) boot installed system and login as root from console 3.) install ports by portsnap # portsnap fetch extract 4.) build VirtualBox 3.1.6 without X11 (DEBUG is optional) # cd /usr/ports/emulators/virtualbox-ose # env BATCH=yes WITHOUT_X11=yes make WITHOUT_QT4=yes WITHOUT_DBUS=yes WITHOUT_NLS=yes WITH_DEBUG=yes 5.) install VirtualBox 3.1.6 (w/build kernel modules + install) # env BATCH=yes WITHOUT_X11=yes make WITHOUT_QT4=yes WITHOUT_DBUS=yes WITHOUT_NLS=yes WITH_DEBUG=yes install 6.) run VBoxManage # rehash # VBoxManage list vms 7.) you can get "ERROR: failed to create a session object!" :-) Regards, Daisuke Aoyama ----- Original Message ----- From: "Bernhard Froehlich" <decke@bluelife.at> To: "Daisuke Aoyama" <aoyama@peach.ne.jp> Cc: <freebsd-emulation@freebsd.org> Sent: Tuesday, April 13, 2010 7:26 PM Subject: Re: VirtualBox 3.1.6 does not work under i386 kernel > On Tue, 13 Apr 2010 18:37:19 +0900, "Daisuke Aoyama" <aoyama@peach.ne.jp> > wrote: >> I am working on making VirtualBox 3.1.6 after releasing FreeNAS 0.7.1. >> I found VirtualBox 3.1.6 does not work under i386 kernel. >> It seems PNG library is not used correctly in VBoxC.so. >> However, I don't know how to correct it by smart way. >> Also I cannot test it under X11. >> >> Could you test my patch under X11 + i386 kernel? >> Before patch, you will get like this: >> ---------------------------------------------------------------------- >> [aoyama@freenas225 ~]$ VBoxManage list vms >> Sun VirtualBox Command Line Management Interface Version 3.1.6_OSE >> (C) 2005-2010 Sun Microsystems, Inc. >> All rights reserved. >> >> ERROR: failed to create a session object! >> ERROR: code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not >> registered (extended info not available) >> Most likely, the VirtualBox COM server is not running or failed to > start. >> ---------------------------------------------------------------------- >> >> After patch, you should be able to use VirtualBox 3.1.6. > > That sounds similar to PR ports/145457 but I could not reproduce that yet. > Could you try the patch from the PR and see if it works for you? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/145457 > > -- > Bernhard Fröhlich > http://www.bluelife.at/ ------=_NextPart_000_0007_01CADB82.949562D0 Content-Type: application/octet-stream; name="patch-configure.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch-configure.gz" H4sICDqJxEsCA3BhdGN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vqIHEPD4bV7qi4uaqq6R5X7OiGgVsywPiPi0sljtj+57Q/hG04zx GPwMvlOYFSwK5GFVkLr4LDmyIg1ZmbKB6Z79UjTd4birgil7IX41ZXg3ZViK7DWyd4xeSScuu/GW B1cX9+N9j3s/l0RvBPMvmTpNItAIAAA= ------=_NextPart_000_0007_01CADB82.949562D0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DA36511C0AFB4D898F08A615533F164B>