Kannel Friends,
Trying to build Kannel on OpenIndiana (Illumos), I've made (shoehorned!) this patch to gwuuid.c to sort out the fir_hwaddr issues at build - this bit seems to be working: Index: gwlib/gw_uuid.c =================================================================== --- gwlib/gw_uuid.c (revision 5011) +++ gwlib/gw_uuid.c (working copy) @@ -267,10 +267,16 @@ for (i = 0; i < n; i+= ifreq_size(*ifr) ) { ifrp = (struct ifreq *)((char *) ifc.ifc_buf+i); strncpy(ifr.ifr_name, ifrp->ifr_name, IFNAMSIZ); -#ifdef SIOCGIFHWADDR + +/* -- CHANGING THIS BIT: #ifdef SIOCGIFHWADDR */ +#if defined(SIOCGIFHWADDR) && !defined(__sun) + static DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr, PDWORD type) + { if (ioctl(sd, SIOCGIFHWADDR, &ifr) < 0) continue; - a = (unsigned char *) &ifr.ifr_hwaddr.sa_data; + a = (unsigned char *) &ifr.ifr_hwaddr.sa_data; + endif + } #else #ifdef SIOCGENADDR if (ioctl(sd, SIOCGENADDR, &ifr) < 0) Next thing I'm running into is: gwlib/log.c: In function `decode': gwlib/log.c:85: error: syntax error before '*' token gwlib/log.c:86: error: `CODE' undeclared (first use in this function) gwlib/log.c:86: error: (Each undeclared identifier is reported only once gwlib/log.c:86: error: for each function it appears in.) gwlib/log.c:86: error: `facilities' undeclared (first use in this function) gwlib/log.c:86: error: `facilitynames' undeclared (first use in this function) gwlib/log.c:91: error: `c' undeclared (first use in this function) make: *** [gwlib/log.o] Error 1 Have tried some experiments here, including pulling out the register declaration, to no avail. Thanks in advance! Lou