QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 971|回复: 1

两个bug[修正]

[复制链接]
发表于 2005-12-27 09:42:22 | 显示全部楼层 |阅读模式
1.pmount的重build存在问题已经解决,个人问题

2.iputils编译存在问题
[code:1]怀疑是自己把什么依赖包给去掉了[/code:1]去除这句话,我在全新的rc2中测试过了。
[code:1]gcc -O2 -g -march=i686 -fpie  -pie  arping.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

[/code:1]
 楼主| 发表于 2005-12-27 11:48:28 | 显示全部楼层
解决!iputils使用gentoo的iputils-ss021109-try.tar.bz2,稍微做了点改动(主要将自己无用的去掉)
就可以用了
但是0923为什么不能compile就还是不明白
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-25 13:39 , Processed in 0.060724 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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