Hi,

when I try to compile luci locally for development I get following error:

make[2]: Entering directory `/home/askend/trunk/luci/libs/luanet/src'
cc -O2 -fPIC -I/usr/include/lua5.1   --std=gnu99 -c  iwconfig.c -o
iwconfig.o
iwconfig.c:27:19: error: iwlib.h: No such file or directory
iwconfig.c: In function ‘iwc_startup’:
iwconfig.c:47: warning: implicit declaration of function ‘iw_sockets_open’
iwconfig.c: In function ‘iwc_shutdown’:
iwconfig.c:55: warning: implicit declaration of function ‘iw_sockets_close’
iwconfig.c: At top level:
iwconfig.c:61: warning: ‘struct wireless_info’ declared inside parameter
list
iwconfig.c:61: warning: its scope is only this definition or declaration,
which is probably not what you want
iwconfig.c: In function ‘get_info’:
iwconfig.c:63: error: storage size of ‘wrq’ isn’t known
iwconfig.c:65: error: invalid application of ‘sizeof’ to incomplete type
‘struct wireless_info’
iwconfig.c:68: warning: implicit declaration of function
‘iw_get_basic_config’
iwconfig.c:68: error: dereferencing pointer to incomplete type
iwconfig.c:75: warning: implicit declaration of function ‘ioctl’
iwconfig.c:76: error: ‘ENODEV’ undeclared (first use in this function)
iwconfig.c:76: error: (Each undeclared identifier is reported only once
iwconfig.c:76: error: for each function it appears in.)
iwconfig.c:78: error: ‘ENOTSUP’ undeclared (first use in this function)
iwconfig.c:82: warning: implicit declaration of function ‘iw_get_range_info’
iwconfig.c:82: error: dereferencing pointer to incomplete type
iwconfig.c:83: error: dereferencing pointer to incomplete type
iwconfig.c:86: warning: implicit declaration of function ‘iw_get_ext’
iwconfig.c:86: error: ‘SIOCGIWAP’ undeclared (first use in this function)
iwconfig.c:88: error: dereferencing pointer to incomplete type
iwconfig.c:89: error: dereferencing pointer to incomplete type
iwconfig.c:89: error: ‘sockaddr’ undeclared (first use in this function)
iwconfig.c:93: error: ‘SIOCGIWRATE’ undeclared (first use in this function)
iwconfig.c:95: error: dereferencing pointer to incomplete type
iwconfig.c:96: error: dereferencing pointer to incomplete type
iwconfig.c:96: error: ‘iwparam’ undeclared (first use in this function)
iwconfig.c:101: error: ‘SIOCGIWPOWER’ undeclared (first use in this
function)
iwconfig.c:103: error: dereferencing pointer to incomplete type
iwconfig.c:104: error: dereferencing pointer to incomplete type
iwconfig.c:108: warning: implicit declaration of function ‘iw_get_stats’
iwconfig.c:108: error: dereferencing pointer to incomplete type
iwconfig.c:109: error: dereferencing pointer to incomplete type
iwconfig.c:109: error: dereferencing pointer to incomplete type
iwconfig.c:111: error: dereferencing pointer to incomplete type
iwconfig.c:115: error: dereferencing pointer to incomplete type
iwconfig.c:116: error: ‘IW_ESSID_MAX_SIZE’ undeclared (first use in this
function)
iwconfig.c:118: error: ‘SIOCGIWNICKN’ undeclared (first use in this
function)
iwconfig.c:120: error: dereferencing pointer to incomplete type
iwconfig.c:122: error: dereferencing pointer to incomplete type
iwconfig.c:122: error: dereferencing pointer to incomplete type
iwconfig.c:125: error: ‘SIOCGIWTXPOW’ undeclared (first use in this
function)
iwconfig.c:127: error: dereferencing pointer to incomplete type
iwconfig.c:128: error: dereferencing pointer to incomplete type
iwconfig.c:133: error: ‘SIOCGIWSENS’ undeclared (first use in this function)
iwconfig.c:135: error: dereferencing pointer to incomplete type
iwconfig.c:136: error: dereferencing pointer to incomplete type
iwconfig.c:139: error: dereferencing pointer to incomplete type
iwconfig.c:139: error: dereferencing pointer to incomplete type
iwconfig.c:142: error: ‘SIOCGIWRETRY’ undeclared (first use in this
function)
iwconfig.c:144: error: dereferencing pointer to incomplete type
iwconfig.c:145: error: dereferencing pointer to incomplete type
iwconfig.c:150: error: ‘SIOCGIWRTS’ undeclared (first use in this function)
iwconfig.c:152: error: dereferencing pointer to incomplete type
iwconfig.c:153: error: dereferencing pointer to incomplete type
iwconfig.c:157: error: ‘SIOCGIWFRAG’ undeclared (first use in this function)
iwconfig.c:159: error: dereferencing pointer to incomplete type
iwconfig.c:160: error: dereferencing pointer to incomplete type
iwconfig.c: In function ‘iwc_get’:
iwconfig.c:168: error: storage size of ‘info’ isn’t known
iwconfig.c:186: error: ‘iw_operation_mode’ undeclared (first use in this
function)
iwconfig.c:193: error: ‘KILO’ undeclared (first use in this function)
iwconfig.c:194: warning: implicit declaration of function
‘iw_channel_to_freq’
iwconfig.c:195: warning: implicit declaration of function ‘iw_print_freq’
iwconfig.c:202: warning: implicit declaration of function ‘iw_sawap_ntop’
iwconfig.c:206: warning: implicit declaration of function ‘iw_print_bitrate’
iwconfig.c:212: warning: implicit declaration of function ‘iw_print_txpower’
iwconfig.c: In function ‘iwc_set_essid’:
iwconfig.c:246: error: storage size of ‘wrq’ isn’t known
iwconfig.c:248: error: ‘IW_ESSID_MAX_SIZE’ undeclared (first use in this
function)
iwconfig.c:271: error: ‘SIOCGIWESSID’ undeclared (first use in this
function)
iwconfig.c:281: warning: implicit declaration of function
‘iw_get_kernel_we_version’
iwconfig.c:289: warning: implicit declaration of function ‘iw_set_ext’
iwconfig.c:289: error: ‘SIOCSIWESSID’ undeclared (first use in this
function)
iwconfig.c: In function ‘iwc_set_mode’:
iwconfig.c:299: error: storage size of ‘wrq’ isn’t known
iwconfig.c:316: error: ‘IW_NUM_OPER_MODE’ undeclared (first use in this
function)
iwconfig.c:316: error: ‘iw_operation_mode’ undeclared (first use in this
function)
iwconfig.c:323: error: ‘SIOCSIWMODE’ undeclared (first use in this function)
iwconfig.c: In function ‘iwc_set_channel’:
iwconfig.c:332: error: storage size of ‘wrq’ isn’t known
iwconfig.c:350: warning: implicit declaration of function ‘iw_float2freq’
iwconfig.c:351: error: ‘IW_FREQ_FIXED’ undeclared (first use in this
function)
iwconfig.c:353: error: ‘SIOCSIWFREQ’ undeclared (first use in this function)
iwconfig.c: At top level:
iwconfig.c:526: warning: ‘struct iw_range’ declared inside parameter list
iwconfig.c:526: warning: ‘struct iw_event’ declared inside parameter list
iwconfig.c:526: warning: ‘struct stream_descr’ declared inside parameter
list
iwconfig.c: In function ‘print_scanning_token’:
iwconfig.c:531: error: dereferencing pointer to incomplete type
iwconfig.c:533: error: ‘SIOCGIWAP’ undeclared (first use in this function)
iwconfig.c:534: warning: implicit declaration of function ‘iw_saether_ntop’
iwconfig.c:534: error: dereferencing pointer to incomplete type
iwconfig.c:537: error: ‘SIOCGIWFREQ’ undeclared (first use in this function)
iwconfig.c:541: warning: implicit declaration of function ‘iw_freq2float’
iwconfig.c:541: error: dereferencing pointer to incomplete type
iwconfig.c:544: warning: implicit declaration of function
‘iw_freq_to_channel’
iwconfig.c:553: error: ‘SIOCGIWMODE’ undeclared (first use in this function)
iwconfig.c:555: error: dereferencing pointer to incomplete type
iwconfig.c:555: error: ‘IW_NUM_OPER_MODE’ undeclared (first use in this
function)
iwconfig.c:556: error: dereferencing pointer to incomplete type
iwconfig.c:557: error: ‘iw_operation_mode’ undeclared (first use in this
function)
iwconfig.c:557: error: dereferencing pointer to incomplete type
iwconfig.c:559: error: ‘SIOCGIWESSID’ undeclared (first use in this
function)
iwconfig.c:561: error: ‘IW_ESSID_MAX_SIZE’ undeclared (first use in this
function)
iwconfig.c:563: error: dereferencing pointer to incomplete type
iwconfig.c:563: error: dereferencing pointer to incomplete type
iwconfig.c:564: error: dereferencing pointer to incomplete type
iwconfig.c:564: error: dereferencing pointer to incomplete type
iwconfig.c:565: error: dereferencing pointer to incomplete type
iwconfig.c:571: error: ‘SIOCGIWENCODE’ undeclared (first use in this
function)
iwconfig.c:573: error: ‘IW_ENCODING_TOKEN_MAX’ undeclared (first use in
this function)
iwconfig.c:574: error: dereferencing pointer to incomplete type
iwconfig.c:575: error: dereferencing pointer to incomplete type
iwconfig.c:575: error: dereferencing pointer to incomplete type
iwconfig.c:577: error: dereferencing pointer to incomplete type
iwconfig.c:577: error: ‘IW_ENCODE_NOKEY’ undeclared (first use in this
function)
iwconfig.c:578: error: dereferencing pointer to incomplete type
iwconfig.c:578: error: ‘IW_ENCODE_DISABLED’ undeclared (first use in this
function)
iwconfig.c:582: warning: implicit declaration of function ‘iw_print_key’
iwconfig.c:582: error: dereferencing pointer to incomplete type
iwconfig.c:583: error: dereferencing pointer to incomplete type
iwconfig.c:588: error: ‘SIOCGIWRATE’ undeclared (first use in this function)
iwconfig.c:595: error: dereferencing pointer to incomplete type
iwconfig.c:601: error: dereferencing pointer to incomplete type
iwconfig.c:608: error: ‘IWEVGENIE’ undeclared (first use in this function)
iwconfig.c:611: error: dereferencing pointer to incomplete type
iwconfig.c:612: error: dereferencing pointer to incomplete type
iwconfig.c: In function ‘iwc_scan’:
iwconfig.c:635: error: storage size of ‘wrq’ isn’t known
iwconfig.c:636: error: storage size of ‘scanopt’ isn’t known
iwconfig.c:639: error: ‘IW_SCAN_MAX_DATA’ undeclared (first use in this
function)
iwconfig.c:640: error: storage size of ‘range’ isn’t known
iwconfig.c:654: error: ‘IW_EV_LCP_PK2_LEN’ undeclared (first use in this
function)
iwconfig.c:654: error: ‘IW_EV_LCP_PK_LEN’ undeclared (first use in this
function)
iwconfig.c:654: error: ‘IW_EV_POINT_PK2_LEN’ undeclared (first use in this
function)
iwconfig.c:654: error: ‘IW_EV_POINT_PK_LEN’ undeclared (first use in this
function)
iwconfig.c:685: error: ‘SIOCSIWSCAN’ undeclared (first use in this function)
iwconfig.c:687: error: ‘errno’ undeclared (first use in this function)
iwconfig.c:687: error: ‘EPERM’ undeclared (first use in this function)
iwconfig.c:722: error: ‘EAGAIN’ undeclared (first use in this function)
iwconfig.c:722: error: ‘EINTR’ undeclared (first use in this function)
iwconfig.c:750: error: ‘SIOCGIWSCAN’ undeclared (first use in this function)
iwconfig.c:753: error: ‘E2BIG’ undeclared (first use in this function)
iwconfig.c:800: error: storage size of ‘iwe’ isn’t known
iwconfig.c:801: error: storage size of ‘stream’ isn’t known
iwconfig.c:805: warning: implicit declaration of function
‘iw_init_event_stream’
iwconfig.c:810: warning: implicit declaration of function
‘iw_extract_event_stream’
iwconfig.c:814: error: ‘SIOCGIWAP’ undeclared (first use in this function)
make[2]: *** [iwconfig.o] Error 1
make[2]: Leaving directory `/home/askend/trunk/luci/libs/luanet/src'
make[1]: *** [compile] Error 2
make[1]: Leaving directory `/home/askend/trunk/luci/libs/luanet'
make: *** [gccbuild] Error 1

Does anyone know what could be wrong? I downloaded latest version from svn.

Thanks!
_______________________________________________
Development mailing list
[email protected]
http://fonosfera.org/mailman/listinfo/development

Reply via email to