cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/lib/perl/5.18/CORE" -DSWIG IWLib_wrap.c In file included from wireless.h:74:0, from IWLib_wrap.c:1046: /usr/include/net/if.h:44:5: error: expected identifier before numeric constant IFF_UP = 0x1, /* Interface is up. */ ^ In file included from iwlib.h:58:0, from IWLib_wrap.c:1047: /usr/include/net/if.h:111:8: error: redefinition of 'struct ifmap' struct ifmap ^ In file included from wireless.h:74:0, from IWLib_wrap.c:1046: /usr/include/linux/if.h:143:8: note: originally defined here struct ifmap { ^ In file included from iwlib.h:58:0, from IWLib_wrap.c:1047: /usr/include/net/if.h:126:8: error: redefinition of 'struct ifreq' struct ifreq ^ In file included from wireless.h:74:0, from IWLib_wrap.c:1046: /usr/include/linux/if.h:177:8: note: originally defined here struct ifreq { ^ In file included from iwlib.h:58:0, from IWLib_wrap.c:1047: /usr/include/net/if.h:176:8: error: redefinition of 'struct ifconf' struct ifconf ^ In file included from wireless.h:74:0, from IWLib_wrap.c:1046: /usr/include/linux/if.h:226:8: note: originally defined here struct ifconf { ^ IWLib_wrap.c: In function 'iw_address_ntoa': IWLib_wrap.c:1107:5: warning: return makes pointer from integer without a cast [enabled by default] return iw_ether_ntoa( (struct ether_addr*)(addr->sa_data) ); ^ IWLib_wrap.c: In function '_wrap_iw_print_pm_value': IWLib_wrap.c:11593:9: error: too few arguments to function 'iw_print_pm_value' iw_print_pm_value(arg1,arg2,arg3,arg4); ^ In file included from IWLib_wrap.c:1047:0: iwlib.h:390:2: note: declared here iw_print_pm_value(char * buffer, ^ IWLib_wrap.c: In function '_wrap_iw_print_retry_value': IWLib_wrap.c:11647:9: error: too few arguments to function 'iw_print_retry_value' iw_print_retry_value(arg1,arg2,arg3,arg4); ^ In file included from IWLib_wrap.c:1047:0: iwlib.h:401:2: note: declared here iw_print_retry_value(char * buffer, ^ IWLib_wrap.c: In function '_wrap_iw_print_timeval': IWLib_wrap.c:11677:44: error: too few arguments to function 'iw_print_timeval' iw_print_timeval(arg1,arg2,(struct timeval const *)arg3); ^ In file included from IWLib_wrap.c:1047:0: iwlib.h:408:2: note: declared here iw_print_timeval(char * buffer, ^ IWLib_wrap.c: In function '_wrap_iw_ether_ntoa': IWLib_wrap.c:11821:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] result = (char *)iw_ether_ntoa((struct ether_addr const *)arg1); ^ IWLib_wrap.c: In function '_wrap_iw_pr_ether': IWLib_wrap.c:12195:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] result = (char *)iw_pr_ether(arg1,(unsigned char const *)arg2);