两个bug[修正]
1.pmount的重build存在问题已经解决,个人问题2.iputils编译存在问题
怀疑是自己把什么依赖包给去掉了去除这句话,我在全新的rc2中测试过了。
gcc -O2 -g -march=i686 -fpie-piearping.c-lresolv -o arping
arping.c: In function `send_pack':
arping.c:103: error: dereferencing pointer to incomplete type
arping.c:106: error: `ETH_P_IP' undeclared (first use in this function)
arping.c:106: error: (Each undeclared identifier is reported only once
arping.c:106: error: for each function it appears in.)
arping.c:107: error: dereferencing pointer to incomplete type
arping.c:111: error: dereferencing pointer to incomplete type
arping.c:112: error: dereferencing pointer to incomplete type
arping.c:118: error: dereferencing pointer to incomplete type
arping.c:120: error: dereferencing pointer to incomplete type
arping.c:127: error: dereferencing pointer to incomplete type
arping.c: In function `recv_pack':
arping.c:204: error: dereferencing pointer to incomplete type
arping.c:204: error: `PACKET_HOST' undeclared (first use in this function)
arping.c:205: error: dereferencing pointer to incomplete type
arping.c:205: error: `PACKET_BROADCAST' undeclared (first use in this function)
arping.c:206: error: dereferencing pointer to incomplete type
arping.c:206: error: `PACKET_MULTICAST' undeclared (first use in this function)
arping.c:215: error: dereferencing pointer to incomplete type
arping.c:216: error: dereferencing pointer to incomplete type
arping.c:220: error: `ETH_P_IP' undeclared (first use in this function)
arping.c:224: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:235: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:253: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:253: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:260: error: dereferencing pointer to incomplete type
arping.c:269: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:288: error: dereferencing pointer to incomplete type
arping.c:295: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:295: error: invalid use of undefined type `struct sockaddr_ll'
arping.c: In function `main':
arping.c:461: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:462: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:463: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:463: error: `ETH_P_ARP' undeclared (first use in this function)
arping.c:464: error: invalid application of `sizeof' to incomplete type `sockaddr_ll'
arping.c:470: error: invalid application of `sizeof' to incomplete type `sockaddr_ll'
arping.c:476: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:482: error: `he' has an incomplete type
arping.c:483: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:483: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:483: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:483: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:483: error: invalid use of undefined type `struct sockaddr_ll'
arping.c:503: error: storage size of 'from' isn't known
arping.c: At top level:
arping.c:51: error: storage size of `me' isn't known
arping.c:52: error: storage size of `he' isn't known
make: *** [arping] 错误 1
解决!iputils使用gentoo的iputils-ss021109-try.tar.bz2,稍微做了点改动(主要将自己无用的去掉)
就可以用了
但是0923为什么不能compile就还是不明白
页:
[1]