Post by chenzhijin1980
把所有出现"netinet/in.h"一类错误的源文件中,都确保开头的#include <sys/types.h>一行在#include<netinet/in.h>之前。
psk.c: In function `psk_wpa_pbkdf2_f':
psk.c:35: error: `SHA_DIGEST_LENGTH' undeclared (first use in this function)
psk.c:35: error: (Each undeclared identifier is reported only once
psk.c:35: error: for each function it appears in.)
psk.c:35: warning: unused variable `digest1'
psk.c: In function `psk_wpa_pbkdf2':
psk.c:84: error: `SHA_DIGEST_LENGTH' undeclared (first use in this function)
*** Error code 1
Stop in /tmp/xsupplicant-1.2.1/src.
*** Error code 1
sha1.c这个文件没有#include <sys/types.h>这个
Stop in /tmp/xsupplicant-1.2.1 (line 229 of Makefile).
n file included from eap_types/sim/sha1.c:23:
/usr/include/netinet/in.h:136: error: syntax error before "in_addr_t"
/usr/include/netinet/in.h:213: error: syntax error before "u_int8_t"
/usr/include/netinet/in.h:217: error: syntax error before "int8_t"
/usr/include/netinet/in.h:232: error: syntax error before "int8_t"
In file included from /usr/include/netinet/in.h:553,
from eap_types/sim/sha1.c:23:
/usr/include/netinet6/in6.h:118: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:140: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:145: error: syntax error before "u_int32_t"
/usr/include/netinet6/in6.h:667: error: syntax error before '*' token
/usr/include/netinet6/in6.h:669: error: syntax error before '*' token
/usr/include/netinet6/in6.h:670: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:671: error: syntax error before "u_int8_t"
eap_types/sim/sha1.c: In function `nossl_SHA1_Transform':
eap_types/sim/sha1.c:71: warning: implicit declaration of function `htonl'
*** Error code 1
Stop in /tmp/xsupplicant-1.2.1/src (line 367 of Makefile).
In function `packet_catch':
cardif/generic/cardif_generic.c:45: warning: control reaches end of non-void fun
ction
cardif/generic/cardif_generic.c: In function `setup_pcap':
cardif/generic/cardif_generic.c:73: warning: passing arg 1 of `eth_ntoa' from in
compatible pointer type
cardif/generic/cardif_generic.c: In function `cardif_init':
cardif/generic/cardif_generic.c:139: warning: passing arg 2 of `eth_get' from in
compatible pointer type
cardif/generic/cardif_generic.c: At top level:
cardif/generic/cardif_generic.c:317: error: conflicting types for `cardif_sendfr
ame'
cardif/cardif.h:123: error: previous declaration of `cardif_sendframe'
cardif/generic/cardif_generic.c: In function `cardif_sendframe':
cardif/generic/cardif_generic.c:340: error: structure has no member named `userd
ata'
cardif/generic/cardif_generic.c:345: error: structure has no member named `userd
ata'
cardif/generic/cardif_generic.c: In function `cardif_getframe':
cardif/generic/cardif_generic.c:393: warning: implicit declaration of function `
snmp_dot1xSuppEapolFramesRx'
*** Error code 1
Stop in /home/jim/misc/xsupplicant-1.2.1/src (line 493 of Makefile).
*** Error code 1
Stop in /home/jim/misc/xsupplicant-1.2.1 (line 229 of Makefile).
In function `packet_catch':
cardif/generic/cardif_generic.c:45: warning: control reaches end of non-void fun
ction
cardif/generic/cardif_generic.c: In function `setup_pcap':
cardif/generic/cardif_generic.c:73: warning: passing arg 1 of `eth_ntoa' from in
compatible pointer type
cardif/generic/cardif_generic.c: In function `cardif_init':
cardif/generic/cardif_generic.c:139: warning: passing arg 2 of `eth_get' from in
compatible pointer type
cardif/generic/cardif_generic.c: At top level:
cardif/generic/cardif_generic.c:317: error: conflicting types for `cardif_sendfr
ame'
cardif/cardif.h:123: error: previous declaration of `cardif_sendframe'
cardif/generic/cardif_generic.c: In function `cardif_sendframe':
cardif/generic/cardif_generic.c:340: error: structure has no member named `userd
ata'
cardif/generic/cardif_generic.c:345: error: structure has no member named `userd
ata'
cardif/generic/cardif_generic.c: In function `cardif_getframe':
cardif/generic/cardif_generic.c:393: warning: implicit declaration of function `
snmp_dot1xSuppEapolFramesRx'
*** Error code 1
Stop in /home/jim/misc/xsupplicant-1.2.1/src (line 493 of Makefile).
*** Error code 1
Stop in /home/jim/misc/xsupplicant-1.2.1 (line 229 of Makefile).