[luci] LuCI development on MacOS

Christoph Pilka christoph.pilka at googlemail.com
Mon Aug 10 11:54:46 CEST 2009


Hi Cyrus,

thanks for the quick response ;-) I'm trying to compile the most  
recent trunk but it fails compiling iwinfo_wl.c. Beeing Debian user  
for 12 years I switched to MacOS some days ago, so absolutely Mac  
newbie ;-) But it would be fine to get LuCI compiling on the new box.

[...]
gcc  -O2 --std=gnu99 -Wall -Werror -pedantic -fstrict-aliasing -I/opt/ 
local/include   -fPIC -c -o src/iwinfo_wl.o src/iwinfo_wl.c
In file included from src/iwinfo.h:16,
                  from src/iwinfo_wl.h:22,
                  from src/iwinfo_wl.c:21:
/usr/include/net/if.h:259: error: field 'ifru_addr' has incomplete type
/usr/include/net/if.h:260: error: field 'ifru_dstaddr' has incomplete  
type
/usr/include/net/if.h:261: error: field 'ifru_broadaddr' has  
incomplete type
/usr/include/net/if.h:298: error: field 'ifra_addr' has incomplete type
/usr/include/net/if.h:299: error: field 'ifra_broadaddr' has  
incomplete type
/usr/include/net/if.h:300: error: field 'ifra_mask' has incomplete type
/usr/include/net/if.h:374: error: field 'addr' has incomplete type
/usr/include/net/if.h:375: error: field 'dstaddr' has incomplete type
In file included from src/iwinfo_wext.h:23,
                  from src/iwinfo.h:21,
                  from src/iwinfo_wl.h:22,
                  from src/iwinfo_wl.c:21:
src/include/wext.h:755: error: field 'addr' has incomplete type
src/include/wext.h:781: error: field 'bssid' has incomplete type
src/include/wext.h:839: error: field 'addr' has incomplete type
src/include/wext.h:852: error: field 'addr' has incomplete type
src/include/wext.h:865: error: field 'bssid' has incomplete type
src/include/wext.h:873: error: field 'src_addr' has incomplete type
src/include/wext.h:884: error: field 'bssid' has incomplete type
src/include/wext.h:938: error: field 'ap_addr' has incomplete type
src/include/wext.h:939: error: field 'addr' has incomplete type
cc1: warnings being treated as errors
src/iwinfo_wl.c: In function 'wl_ioctl':
src/iwinfo_wl.c:33: warning: implicit declaration of function 'socket'
src/iwinfo_wl.c:33: error: 'AF_INET' undeclared (first use in this  
function)
src/iwinfo_wl.c:33: error: (Each undeclared identifier is reported  
only once
src/iwinfo_wl.c:33: error: for each function it appears in.)
src/iwinfo_wl.c:33: error: 'SOCK_DGRAM' undeclared (first use in this  
function)
src/iwinfo_wl.c:42: error: 'SIOCDEVPRIVATE' undeclared (first use in  
this function)
make[1]: *** [src/iwinfo_wl.o] Error 1
*** Compilation of libs/iwinfo failed!
make: *** [gccbuild] Error 1


On Aug 10, 2009, at 11:18 AM, Steven Barth wrote:

> Hi Christoph,
>
> its generally a bad idea to unpack the headers on MacOS.
> I've changed the Makefile of the corresponding library that included  
> the header
> to not build on MacOS. The library is not necessary for 99% of the  
> SDK anyway.
>
> Hope this helps
> Cyrus
> _______________________________________________
> luci mailing list
> luci at lists.subsignal.org
> https://lists.subsignal.org/mailman/listinfo/luci



More information about the luci mailing list