Skip site navigation (1)Skip section navigation (2)
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

[-- Attachment #1 --]
>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/ 

[-- Attachment #2 --]
:Kpatch-configureU[S8~^SFvB	K2Mq-qd9X/_Ir#]̀";w.1C6/RZ)ڎ:vOnsR~gۆeYkʢv~v,;vV9c9YҟSdzA'fbkp{yyy4:x8+gsdX{vGY	{q6W0)r;R~"'mi@7Fβ{46wC88.8ďYL",
DfYR[KьK<ѐm{xFυ4VH;WުL9*sڬ{@々c@ϻ604˧/Q(5LZ{N
:v
ȡJ\2rժ+[-}% ~w5dF	YFQs)!"]K? b1m,ˇO~.X3Y03e|-+=;td}\=mU3Lygsk&Tݺ}"K*9YP4=BwX=7~*B2>76am'aF.A2LOoWXKU&
i01V,@

-iUSݺ9M<Mפ!kXF'7sP3_pQC:|"`ܰ[m5龖^J5AN$}t̓)ڇ%D{t	g	%,dd۠˴m^ꋋ~Έh,X{CFӌS,
aU,9"
YR4ḫ){!~5ex7eX5w^I'.W}{?Do/:M"

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