我确实在solaris11 sparc,11x86和Solaris10上安装了net-snmp-5.7.3,所有测试用例均已成功安装。 但是,当我在Solaris10x86上安装net-snmp-5.7.3时,我得到的测试案例很少。我已经禁用了运行内置的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
这里配置和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'
我不知道它为什么失败。任何建议,我在这里想念的。预先感谢。