Maurice,

Thanks for reporting this isue with OpenIndiana.
You are right about the configuration not knowing OpenIndiana.

For the MAC_VERSION undeclared issue, the hardcoding which you have done might 
be the only way out for now. 

For the vmxnet3_mac_callback struct compilation, we will get a fix in by next 
publish of tools. If you need the fix sooner, you can replace the struct 
definition with the following C99 named initializators. It will resolve the 
issue for you immediately.

static mac_callbacks_t vmxnet3_mac_callbacks = {
    .mc_callbacks = MC_GETCAPAB,
    .mc_getstat = vmxnet3_getstat,
    .mc_start = vmxnet3_start,
    .mc_stop = vmxnet3_stop,
    .mc_setpromisc = vmxnet3_setpromisc,
    .mc_multicst = vmxnet3_multicst,
    .mc_unicst = vmxnet3_unicst,
    .mc_tx = vmxnet3_tx,
    .mc_getcapab = vmxnet3_getcapab
};


Best regards.
Shreyas



________________________________________

Subject: compiling on OpenIndiana oi_147 fails inside vmxnet3
Date: Thursday, September 30, 2010, 11:48:41 pm
From: Maurice Volaski <maurice.vola...@einstein.yu.edu>
To: "open-vm-tools-discuss@lists.sourceforge.net" <open-vm-tools-
disc...@lists.sourceforge.net>

I'm trying to compile on OpenIndiana oi_147 and  at first it fails
with the errors below

vmxnet3_main.c:36: error: syntax error before "mac_capab_t"
...
vmxnet3_main.c:963: error: `MAC_CAPAB_HCKSUM' undeclared (first use
in this function)
....
vmxnet3_main.c:1243: error: `MAC_VERSION' undeclared (first use in
this function)

This appears to be due an undefined define for OPEN_SOLARIS. I'm
guess this happens because configure doesn't yet know OpenIndiana is
really OpenSolaris.

Anyway, after I hardcoded it, I get this error

vmxnet3_main.c:50: warning: initialization from incompatible pointer
type, which is referring to
/* MAC callbacks */
static mac_callbacks_t vmxnet3_mac_callbacks = {
    MC_GETCAPAB,        /* mc_callbacks */
    vmxnet3_getstat,    /* mc_getstat */
    vmxnet3_start,      /* mc_start */
    vmxnet3_stop,       /* mc_stop */
    vmxnet3_setpromisc, /* mc_setpromisc */
    vmxnet3_multicst,   /* mc_multicst */
    vmxnet3_unicst,     /* mc_unicst */
    vmxnet3_tx,         /* mc_tx */
    NULL,               /* mc_ioctl */
    vmxnet3_getcapab    /* mc_getcapab */
};

But it appears that the actual definition of mac_callbacks_t doesn't match:

typedef struct mac_callbacks_s {
         uint_t          mc_callbacks;   /* Denotes which callbacks are set */
         mac_getstat_t   mc_getstat;     /* Get the value of a statistic */
         mac_start_t     mc_start;       /* Start the device */
         mac_stop_t      mc_stop;        /* Stop the device */
         mac_setpromisc_t mc_setpromisc; /* Enable or disable
promiscuous mode */
         mac_multicst_t  mc_multicst;    /* Enable or disable a
multicast addr */
         mac_unicst_t    mc_unicst;      /* Set the unicast MAC address */
         mac_tx_t        mc_tx;          /* Transmit a packet */
         void            *mc_reserved;   /* Reserved, do not use */
         mac_ioctl_t     mc_ioctl;       /* Process an unknown ioctl */
         mac_getcapab_t  mc_getcapab;    /* Get capability information */
         mac_open_t      mc_open;        /* Open the device */
         mac_close_t     mc_close;       /* Close the device */
         mac_set_prop_t  mc_setprop;
         mac_get_prop_t  mc_getprop;
         mac_prop_info_t mc_propinfo;
} mac_callbacks_t;

--

Maurice Volaski, maurice.vola...@einstein.yu.edu
Computing Support, Rose F. Kennedy Center
Albert Einstein College of Medicine of Yeshiva University

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
open-vm-tools-discuss mailing list
open-vm-tools-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-discuss

-----------------------------------------
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
open-vm-tools-discuss mailing list
open-vm-tools-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-discuss

Reply via email to