我没有安装在solaris11 SPARC,11x86和Solaris10的的net-snmp-5.7.3,所有测试用例和安装是成功的。 但是,当我在Solaris10x86安装的net-snmp-5.7.3,我是getitng一些测试用例失败。 我已经禁用它自带内置的运行SNMP。
细节:
bash-3.2# uname -a
SunOS sca00jzu 5.10 Generic_148889-02 i86pc i386 i86pc
bash-3.2# gcc --ver
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
我的路径当前设置为
bash-3.2# echo $PATH
/usr/bin/perl:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/opt/csw/bin:/opt/csw/gnu:/usr/sbin:/usr/bin
我使用下面的命令:
./configure --prefix=/opt --with-mib-modules="ucd-snmp/lmSensors ucd-snmp/diskio smux mibII/mta_sendmail" --with-cc=gcc --with-openssl=internal
make
make test
这里配置,并命令是成功的,但在运行时“做试验”,我得到一个测试用例失败。
/scratch/kkumsati/net-snmp-5.7.3/testing/fulltests/temptests/T065agentextend_sh_simple.........FAILED tests 2-6
Failed 5/7 tests, 28.57% okay
/scratch/kkumsati/net-snmp-5.7.3/testing/fulltests/temptests/T161snmpTargetAddr_simple.........ok 31/0
/scratch/kkumsati/net-snmp-5.7.3/testing/fulltests/temptests/T200snmpv2cwalkall_simple.........ok 3/0
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
/scratch/kkumsati/net-snmp-5.7.3/ 7 5 71.43% 2-6
11 tests skipped.
Failed 1/72 test scripts, 98.61% okay. 5/286 subtests failed, 98.25% okay.
*** Error code 29
The following command caused the error:
if test "x/usr/bin/perl" = "x" \
-o "xyes" != xyes \
|| { ! /usr/bin/perl -e 'require TAP::Harness;' >/dev/null 2>&1 \
&& ! /usr/bin/perl -e 'require Test::Harness; die if $Test::Harness::VERSION < 1.21;' >/dev/null 2>&1; };\
then \
echo ./RUNTESTS ; \
./RUNTESTS ; \
else \
echo ./RUNFULLTESTS ; \
/usr/bin/perl ./RUNFULLTESTS ; \
fi
make: Fatal error: Command failed for target `test'
Current working directory /scratch/kkumsati/net-snmp-5.7.3/testing
*** Error code 1
make: Fatal error: Command failed for target `test'
我没有得到任何线索,为什么它的失败。 任何建议什么,我在这里失踪。 提前致谢。