免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] make net-snmp时出错,高手指教! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-10 13:51 |只看该作者 |倒序浏览
# make
===>  Building for net-snmp-5.2.1_1
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/snmplib
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/agent
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/agent/helpers
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/agent/mibgroup
/bin/sh /usr/local/bin/libtool15 --mode=compile cc -I../../include -I. -I../../agent -I../../agent/mibgroup  -I../../snmplib   -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include  -I/usr/local/lib/perl5/5.8.6/mach/CORE   -DINET6 -O -pipe  -Dfreebsd5 -c -o mibII/ipv6.lo mibII/ipv6.c
cc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.6/BSDPAN -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -DINET6 -O -pipe -Dfreebsd5 -c mibII/ipv6.c  -fPIC -DPIC -o mibII/.libs/ipv6.o
In file included from mibII/ipv6.c:95:
/usr/include/netinet6/ip6_var.h:118: error: field `ip6po_rhi_route' has incomplete type
/usr/include/netinet6/ip6_var.h:132: error: field `ip6po_nhi_route' has incomplete type
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/agent/mibgroup.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/agent.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp.


搞了一天都没解决问题,请教高手们!

论坛徽章:
0
2 [报告]
发表于 2009-12-11 09:15 |只看该作者
顶,高手们出现一下撒!

论坛徽章:
2
IT运维版块每日发帖之星
日期:2015-10-05 06:20:00操作系统版块每日发帖之星
日期:2015-10-05 06:20:00
3 [报告]
发表于 2009-12-11 11:34 |只看该作者
/usr/include/netinet6/ip6_var.h:118: error: field `ip6po_rhi_route' has incomplete type


貌似文件有问题?/usr/include/netinet6/ip6_var.h:第118行,如果你是编程高手的话,可以去看看,如果不是,那建议先 make clean,然后再重新编译。

论坛徽章:
0
4 [报告]
发表于 2009-12-11 15:15 |只看该作者
懷疑和IPV6支持有關,是否在內核中關閉了IPV6?

或者make config一下,如果有IPV6選項的話禁用掉試試。

论坛徽章:
0
5 [报告]
发表于 2009-12-17 11:26 |只看该作者
make clean 之后在make还是报同样的错误;
make config显示如下结果:
#make config
===> No options to configure

现在该怎么办啊?

论坛徽章:
2
IT运维版块每日发帖之星
日期:2015-10-05 06:20:00操作系统版块每日发帖之星
日期:2015-10-05 06:20:00
6 [报告]
发表于 2009-12-17 21:20 |只看该作者
看看4楼的建议,然后有个办法可以试试,就是不要使用ports,自己下载个源码来编译看看。

论坛徽章:
2
技术图书徽章
日期:2013-09-04 15:21:51酉鸡
日期:2013-11-01 21:20:20
7 [报告]
发表于 2009-12-18 00:23 |只看该作者
为啥不直接用编译好的包呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP