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" <[email protected]>
To: "Daisuke Aoyama" <[email protected]>
Cc: <[email protected]>
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" <[email protected]>
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:
----------------------------------------------------------------------
[aoy...@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: patch-configure.gz
Description: Binary data

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[email protected]"

Reply via email to