免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2224 | 回复: 5
打印 上一主题 下一主题

有谁在FC6下成功安装过arpd? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-19 21:58 |只看该作者 |倒序浏览
fc6下装不上arpd,

./configure:

ok..

fedora# make

gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I/usr/local/include -I/usr/local/include -c arpd.c
arpd.c: In function ‘arpd_send’:
arpd.c:268: error: syntax error before string constant
arpd.c: In function ‘arpd_lookup’:
arpd.c:285: error: syntax error before string constant
arpd.c:294: error: syntax error before string constant
arpd.c:297: error: syntax error before string constant
arpd.c: In function ‘arpd_recv_cb’:
arpd.c:426: error: syntax error before string constant
make: ** [arpd.o] Erro 1

我试过修改arpd.c,并在arpd.c中加上一句:
#define __FUNCTION__ ""
还是不行,
我又把arpd.c中的所有“_FUNCTION__ ”都删除,也不行。

我去Honeyd Discussion Forums(([url]http://www.honeyd.org/phpBB2/viewtopic.php?t=400[/url])上找了一下,按照他们的办法还是行不通,

也试过安装rpm格式的arpd,但是提示少了一个libdnet.1.  伤心!

有个人用打patch的方法解决(http://www.honeyd.org/phpBB2/viewtopic.php?t=367&highlight=arpd)。但是我不知道如何打patch.

高手请帮帮我。谢谢!

[ 本帖最后由 fklk 于 2007-3-19 21:59 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-03-20 02:14 |只看该作者
原帖由 fklk 于 2007-3-19 21:58 发表于 1楼  
fc6下装不上arpd


我想你應該是根本沒裝 libnet-devel ? 所以編譯不起來 ?

ftp://ftp.isu.edu.tw/Linux/Fedor ... .2.1-9.fc6.i386.rpm
ftp://ftp.isu.edu.tw/Linux/Fedor ... .2a-11.fc6.i386.rpm

你要裝 arpd binary rpm package, 你也要裝 libnet10 rpm package 後才可以使用。

--

论坛徽章:
0
3 [报告]
发表于 2007-03-20 08:30 |只看该作者

回复 #2 kenduest 的帖子

谢谢!
我再试试。

论坛徽章:
0
4 [报告]
发表于 2007-03-20 08:49 |只看该作者

回复 #2 kenduest 的帖子

我把你给的rpm包装上了,但是出现了下面的问题:
/usr/sbin/arpd from install of arpd-0.2-3.fc6.rf conflicts with file from package iproute-2.6.16-6.fc6
我重蹈他的覆辙了  
http://linux.chinaunix.net/bbs/viewthread.php?tid=878102

论坛徽章:
0
5 [报告]
发表于 2007-03-20 14:52 |只看该作者
原帖由 fklk 于 2007-3-20 08:49 发表于 4楼  
我把你给的rpm包装上了,但是出现了下面的问题:
/usr/sbin/arpd from install of arpd-0.2-3.fc6.rf conflicts with file from package iproute-2.6.16-6.fc6
我重蹈他的覆辙了  
http://linux.chinaunix.n ...


簡單說那個 package 有問題,因為檔案與系統的 iproute2 衝突。

這樣吧,我想你自己就跑 rpm2cpio artd-xxx.rpm | cpio -idv 解開相關檔案,取出複製你要的檔案即可使用,如何呢 ?

--

论坛徽章:
0
6 [报告]
发表于 2007-03-22 16:30 |只看该作者
这几天一直在搞这玩意。
最后我用 make -i 勉强装上了。呵呵。
谢谢楼上的支援。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP