免费注册 查看新帖 |

Chinaunix

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

【已解决】solaris10下编译netsnmp错误,求救! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-26 18:51 |只看该作者 |倒序浏览
错误提示
gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I./include/netsnmp/system/solaris.h -DNETSNMP_ENABLE_IPV6 -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c if-mib/data_access/interface_solaris2.c  -fPIC -DPIC -o if-mib/data_access/.libs/interface_solaris2.o
if-mib/data_access/interface_solaris2.c: In function `_set_ip_flags_v4':
if-mib/data_access/interface_solaris2.c:248: error: structure has no member named `ipAdEntRetransmitTime'
if-mib/data_access/interface_solaris2.c: In function `_set_ip_flags_v6':
if-mib/data_access/interface_solaris2.c:270: error: structure has no member named `ipv6AddrIdentifierLen'
if-mib/data_access/interface_solaris2.c:271: error: structure has no member named `ipv6AddrIdentifierLen'
if-mib/data_access/interface_solaris2.c:272: error: structure has no member named `ipv6AddrIdentifier'
if-mib/data_access/interface_solaris2.c:277: error: structure has no member named `ipv6AddrReasmMaxSize'
if-mib/data_access/interface_solaris2.c:278: error: structure has no member named `ipv6AddrRetransmitTime'
if-mib/data_access/interface_solaris2.c:279: error: structure has no member named `ipv6AddrReachableTime'
gmake[2]: *** [if-mib/data_access/interface_solaris2.lo] Error 1
gmake[2]: Leaving directory `/tmp/net-snmp-5.4.1/agent/mibgroup'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory `/tmp/net-snmp-5.4.1/agent'
gmake: *** [subdirs] Error 1
编译参数:
./configure --prefix=/opt/csw/netsnmp \
--enable-shared  \
--with-default-snmp-version=2 \
--enable-mfd-rewrites \
--with-mibs="mibII:host:ucd-snmp/diskio:disman/event-mib:ucd-snmp/lmSensors: \
agentx:mibII/mta_sendmail:notification:ucd_snmp:agent_mibs" \
--with-libwrap=/opt/csw/lib \
--enable-ipv6 \
CPPFLAGS=-I./include/netsnmp/system/solaris.h



系统信息:
SunOS CACTIWEB 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Blade-1000


帮忙啊

[ 本帖最后由 ybr81925 于 2008-4-26 20:42 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-04-26 19:24 |只看该作者
这种情况一般都是编译的软件跟编译器的版本不匹配,可以看一下软件里的说明。

论坛徽章:
0
3 [报告]
发表于 2008-04-26 20:04 |只看该作者
netsnmp的官网上是这样说的
The problem is that for S10U4+ you need to set a flag to enable the
extended MIB information. But that flag is only set in development gate
of net-snmp. However, you should be able to successfully build 5.4.1 by
adding the flag manually. Just add:

    #define NEW_MIB_COMPLIANT
  
to include/net-snmp/system/solaris.h
但是我不知道该怎么做,各位大哥帮帮忙谢谢!

论坛徽章:
0
4 [报告]
发表于 2008-04-26 20:42 |只看该作者
郁闷原来是英语理解问题,就在include/net-snmp/system/solaris.h这个文件最后加上
#define NEW_MIB_COMPLIANT这句话

论坛徽章:
0
5 [报告]
发表于 2008-05-15 16:38 |只看该作者
libtool: link: cannot find the library `/usr/lib/libbeecrypt.la' (librpmio.la: /usr/lib/libbeecrypt.la)
make[1]: *** [snmpd] 错误 1
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.2/agent'
make: *** [subdirs] 错误 1
这是我的错误信息,谁知道是怎么回事

论坛徽章:
0
6 [报告]
发表于 2008-05-15 17:25 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
7 [报告]
发表于 2008-05-15 17:35 |只看该作者
cannot find the library `/usr/lib/libbeecrypt.la' (librpmio.la: /usr/lib/libbeecrypt.la)
很明显啊~在那个路径找不到对应的库文件

论坛徽章:
0
8 [报告]
发表于 2008-05-22 15:53 |只看该作者
*** 作者被禁止或删除 内容自动屏蔽 ***

[ 本帖最后由 chenqioulin 于 2010-1-17 20:55 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP