LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1059|回复: 0

iputils问题

[复制链接]
发表于 2005-12-27 07:11:22 | 显示全部楼层 |阅读模式
在编译iputils的时候出现问题,怀疑自己少打了什么依赖导致的

  1. gcc -O2 -g -march=i686 -fpie  -pie  arping.c  -lresolv -o arping
  2. arping.c: In function `send_pack':
  3. arping.c:103: error: dereferencing pointer to incomplete type
  4. arping.c:106: error: `ETH_P_IP' undeclared (first use in this function)
  5. arping.c:106: error: (Each undeclared identifier is reported only once
  6. arping.c:106: error: for each function it appears in.)
  7. arping.c:107: error: dereferencing pointer to incomplete type
  8. arping.c:111: error: dereferencing pointer to incomplete type
  9. arping.c:112: error: dereferencing pointer to incomplete type
  10. arping.c:118: error: dereferencing pointer to incomplete type
  11. arping.c:120: error: dereferencing pointer to incomplete type
  12. arping.c:127: error: dereferencing pointer to incomplete type
  13. arping.c: In function `recv_pack':
  14. arping.c:204: error: dereferencing pointer to incomplete type
  15. arping.c:204: error: `PACKET_HOST' undeclared (first use in this function)
  16. arping.c:205: error: dereferencing pointer to incomplete type
  17. arping.c:205: error: `PACKET_BROADCAST' undeclared (first use in this function)
  18. arping.c:206: error: dereferencing pointer to incomplete type
  19. arping.c:206: error: `PACKET_MULTICAST' undeclared (first use in this function)
  20. arping.c:215: error: dereferencing pointer to incomplete type
  21. arping.c:216: error: dereferencing pointer to incomplete type
  22. arping.c:220: error: `ETH_P_IP' undeclared (first use in this function)
  23. arping.c:224: error: invalid use of undefined type `struct sockaddr_ll'
  24. arping.c:235: error: invalid use of undefined type `struct sockaddr_ll'
  25. arping.c:253: error: invalid use of undefined type `struct sockaddr_ll'
  26. arping.c:253: error: invalid use of undefined type `struct sockaddr_ll'
  27. arping.c:260: error: dereferencing pointer to incomplete type
  28. arping.c:269: error: invalid use of undefined type `struct sockaddr_ll'
  29. arping.c:288: error: dereferencing pointer to incomplete type
  30. arping.c:295: error: invalid use of undefined type `struct sockaddr_ll'
  31. arping.c:295: error: invalid use of undefined type `struct sockaddr_ll'
  32. arping.c: In function `main':
  33. arping.c:461: error: invalid use of undefined type `struct sockaddr_ll'
  34. arping.c:462: error: invalid use of undefined type `struct sockaddr_ll'
  35. arping.c:463: error: invalid use of undefined type `struct sockaddr_ll'
  36. arping.c:463: error: `ETH_P_ARP' undeclared (first use in this function)
  37. arping.c:464: error: invalid application of `sizeof' to incomplete type `sockaddr_ll'
  38. arping.c:470: error: invalid application of `sizeof' to incomplete type `sockaddr_ll'
  39. arping.c:476: error: invalid use of undefined type `struct sockaddr_ll'
  40. arping.c:482: error: `he' has an incomplete type
  41. arping.c:483: error: invalid use of undefined type `struct sockaddr_ll'
  42. arping.c:483: error: invalid use of undefined type `struct sockaddr_ll'
  43. arping.c:483: error: invalid use of undefined type `struct sockaddr_ll'
  44. arping.c:483: error: invalid use of undefined type `struct sockaddr_ll'
  45. arping.c:483: error: invalid use of undefined type `struct sockaddr_ll'
  46. arping.c:503: error: storage size of 'from' isn't known
  47. arping.c: At top level:
  48. arping.c:51: error: storage size of `me' isn't known
  49. arping.c:52: error: storage size of `he' isn't known
  50. make: *** [arping] 错误 1
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表