<div dir="ltr"><div><span style="line-height:1.5">On the lines that have errors, does it help if you change the type to INTEGER? (ie InetAddressType becomes INTEGER).</span><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 19, 2016 at 9:27 AM Kenneth Lakin <<a href="mailto:kennethlakin@gmail.com">kennethlakin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm running Erlang 19.1.3. I'm using snmpc to compile the MIBs from RFCs<br class="gmail_msg">
4668, 4669, 4670, and 4671. (These are the updated RADIUS client/server<br class="gmail_msg">
and RADIUS Accounting client/server MIBs.) Attempts to compile any these<br class="gmail_msg">
MIBs fail with the same error (but with differing line numbers) :<br class="gmail_msg">
<br class="gmail_msg">
Eshell V8.1  (abort with ^G)<br class="gmail_msg">
1> snmpc:compile("RADIUS-AUTH-SERVER-MIB", []).<br class="gmail_msg">
RADIUS-AUTH-SERVER-MIB.mib: 692: syntax error before: '{'<br class="gmail_msg">
{error,compilation_failed}<br class="gmail_msg">
2><br class="gmail_msg">
<br class="gmail_msg">
In all cases, the line causing the trouble is a SYNTAX line with a -er-<br class="gmail_msg">
type of InetAddressType inside an OBJECT block, inside a<br class="gmail_msg">
MODULE-COMPLIANCE block. If I change the SYNTAX type of that OBJECT to<br class="gmail_msg">
something else (like, say InetAddress), and update the constraints, the<br class="gmail_msg">
compilation succeeds with the following warnings and return value:<br class="gmail_msg">
<br class="gmail_msg">
[RADIUS-AUTH-SERVER-MIB.mib][WAR]: No RowStatus column in table<br class="gmail_msg">
radiusAuthClientTable => The default functions won't work properly<br class="gmail_msg">
[RADIUS-AUTH-SERVER-MIB.mib][WAR]: No RowStatus column in table<br class="gmail_msg">
radiusAuthClientExtTable => The default functions won't work properly<br class="gmail_msg">
{ok,"./RADIUS-AUTH-SERVER-MIB.bin"}<br class="gmail_msg">
<br class="gmail_msg">
Both InetAddressType and InetAddress appear to be defined in the same<br class="gmail_msg">
MIB. That MIB file appears to be part of the Erlang snmp application.<br class="gmail_msg">
The MIB files that I'm attempting to compile are in the current working<br class="gmail_msg">
directory of the Erlang shell. Three separate reputable-looking MIB<br class="gmail_msg">
syntax checkers can find no significant problem with the files I'm<br class="gmail_msg">
attempting to compile. Why is compilation failing? Is there something<br class="gmail_msg">
that I'm overlooking, or is this a bug?<br class="gmail_msg">
<br class="gmail_msg">
The RFC 4669 MIB is at [0]. See [1] for the plaintext version of the<br class="gmail_msg">
same file.<br class="gmail_msg">
<br class="gmail_msg">
[0] <a href="https://gist.github.com/kennethlakin/9bdefaeb7c7c8a4945c45ace184c658d" rel="noreferrer" class="gmail_msg" target="_blank">https://gist.github.com/kennethlakin/9bdefaeb7c7c8a4945c45ace184c658d</a><br class="gmail_msg">
[1]<br class="gmail_msg">
<a href="https://gist.githubusercontent.com/kennethlakin/9bdefaeb7c7c8a4945c45ace184c658d/raw/469a639ffff47a9ed47099af3c344a29c9fe35ba/RADIUS-AUTH-SERVER-MIB.mib" rel="noreferrer" class="gmail_msg" target="_blank">https://gist.githubusercontent.com/kennethlakin/9bdefaeb7c7c8a4945c45ace184c658d/raw/469a639ffff47a9ed47099af3c344a29c9fe35ba/RADIUS-AUTH-SERVER-MIB.mib</a><br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
erlang-questions mailing list<br class="gmail_msg">
<a href="mailto:erlang-questions@erlang.org" class="gmail_msg" target="_blank">erlang-questions@erlang.org</a><br class="gmail_msg">
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" class="gmail_msg" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br class="gmail_msg">
</blockquote></div>