vmware3 port works on FreeBSD 6

Vladimir Grebenschikov vova at fbsd.ru
Sun Nov 13 08:14:17 PST 2005


В вс, 13/11/2005 в 10:14 -0500, Danny Puckett пишет:
> It wont l for me.  I receive the following
> 
> 
> intstal/usr/ports/emulators/vmware3/work/vmware-distrib/vmmon-only/freebsd/driver.c:172:error:unknown 
> ield `d_maj' specified in initializer
> /usr/ports/emulators/vmware3/work/vmware-distrib/vmmon-only/freebsd/driver.c:181: 
> warning: initialization makes pointer from integer without a cast

Actually build does not work for current with same diagnostic.
It is trivial to make it build-able, look example in emulators/rtc:

/usr/ports/emulators/rtc/files$ cvs -R diff -r1.14 -r1.15 rtc.c 
Index: rtc.c
===================================================================
RCS file: /usr/ncvs/ports/emulators/rtc/files/rtc.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- rtc.c       10 Mar 2004 09:44:44 -0000      1.14
+++ rtc.c       13 Mar 2004 21:20:03 -0000      1.15
@@ -22,7 +22,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $FreeBSD: ports/emulators/rtc/files/rtc.c,v 1.14 2004/03/10 09:44:44 silby Exp $
+ * $FreeBSD: ports/emulators/rtc/files/rtc.c,v 1.15 2004/03/13 21:20:03 silby Exp $
  * $vmFreeBSD: vmware/vmnet-only/freebsd/vmnet.c,v 1.14 2000/01/23 22:29:50 vsilyaev Exp $
  */
 
@@ -96,6 +96,8 @@
 #if __FreeBSD_version >= 502103
        .d_version =    D_VERSION,
        .d_flags =      D_NEEDGIANT,
+#else 
+       .d_maj =        CDEV_MAJOR,
 #endif
        .d_open =       rtc_open,
        .d_close =      rtc_close,
@@ -103,7 +105,6 @@
        .d_poll =       rtc_poll,
        .d_read =       rtc_read,
        .d_name =       DEVICE_NAME,
-       .d_maj =        CDEV_MAJOR,
 #else
        /* open */      rtc_open,
        /* close */     rtc_close,


But it crash system when starting vmware itself.

I do not dig more.

> Mike Silbersack wrote:
> > 
> > The vmware3 port seems to work on FreeBSD 6 now, with the help of some 
> > others I figured out why it wasn't working.
> > 
> > I didn't test FreeBSD 7 (-current), but I assume that should be working 
> > too.
> > 
> > I won't have time to work on this further or import Orlando's VMware 4.x 
> > patches anytime in the next month, so please don't start asking. :)
> > 
> > Mike "Silby" Silbersack
> > _______________________________________________
> > freebsd-emulation at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
> > To unsubscribe, send any mail to 
> > "freebsd-emulation-unsubscribe at freebsd.org"
-- 
Vladimir B. Grebenschikov
vova at fbsd.ru


More information about the freebsd-emulation mailing list