Hi all!
When trying to make NAV on this system, I get the following error(s):
************************* (cd SimpleSnmp && /usr/bin/ant ) && touch SimpleSnmp Buildfile: build.xml
init: [mkdir] Created dir: /root/nav-3.0.0/src/SimpleSnmp/build
compile: [javac] Compiling 3 source files to /root/nav-3.0.0/src/SimpleSnmp/build [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:36: package snmp does not exist [javac] import snmp.*; [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:70: cannot resolve symbol [javac] symbol : class SNMPv1CommunicationInterface [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] private SNMPv1CommunicationInterface comInterface = null; [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:598: cannot resolve symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPVarBindList var = null; [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:605: cannot resolve symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] var = new SNMPVarBindList(); [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:608: cannot resolve symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPVarBindList nextpair = comInterface.getNextMIBEntry(nextoid); [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:609: cannot resolve symbol [javac] symbol : class SNMPObject [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObject snmpobj = nextpair.getSNMPObjectAt(0); [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:610: cannot resolve symbol [javac] symbol : class SNMPNull [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (snmpobj instanceof SNMPNull) break; [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:611: cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)snmpobj; [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:611: cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)snmpobj; [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:612: cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:612: cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:623: cannot resolve symbol [javac] symbol : class SNMPBadValueException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] } catch (SNMPBadValueException exp) { [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:626: cannot resolve symbol [javac] symbol : class SNMPException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] } catch (SNMPException exp) { [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:627: cannot resolve symbol [javac] symbol : class SNMPGetException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (!(exp instanceof SNMPGetException && exp.getMessage() != null && exp.getMessage().indexOf("not available for retrieval") >= 0)) { [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:651: cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)(var.getSNMPObjectAt(i)); [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:651: cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)(var.getSNMPObjectAt(i)); [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:652: cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:652: cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:653: cannot resolve symbol [javac] symbol : class SNMPObject [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObject snmpValue = pair.getSNMPObjectAt(1); [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:657: cannot resolve symbol [javac] symbol : class SNMPOctetString [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (!decodeHex && snmpValue instanceof SNMPOctetString) { [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:663: cannot resolve symbol [javac] symbol : class SNMPOctetString [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (data.length() == 0 && !(snmpValue instanceof SNMPOctetString)) { [javac] ^ [javac] /root/nav-3.0.0/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:806: cannot resolve symbol [javac] symbol : class SNMPv1CommunicationInterface [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] comInterface = new SNMPv1CommunicationInterface(snmpVersion, hostAddress, cs_ro); [javac] ^ [javac] 22 errors
BUILD FAILED /root/nav-3.0.0/src/SimpleSnmp/build.xml:30: Compile failed; see the compiler error output for details.
Total time: 2 seconds make[1]: *** [SimpleSnmp] Error 1 make[1]: Leaving directory `/root/nav-3.0.0/src' make: *** [all] Error 1 *************************
Does anybody has any suggestions on how to fix? It clearly seems snmp-related...?
Regards, Evert