snmp release build

Serge Aleynikov serge@REDACTED
Thu Jun 16 18:36:59 CEST 2005


Hi,

When I include an SNMP applicaiton in a release under R10B-5, I am 
getting a bunch of compilation warnings:

proxy.rel:
{release, {"proxy","1.0"}, {erts, "100.100.100"},
  [{kernel,"2.10.7"},
   {stdlib,"1.13.7"},
   {snmp, "4.1.4"},
   {proxy, "1.0"}]}.

 >erlc -pa ../ebin -o ../ebin -d proxy.rel
*WARNING* snmp: Source code not found: snmp.erl
*WARNING* snmp: Source code not found: snmp_app.erl
*WARNING* snmp: Source code not found: snmp_app_sup.erl
*WARNING* snmp: Source code not found: snmpa.erl
*WARNING* snmp: Source code not found: snmpa_acm.erl
*WARNING* snmp: Source code not found: snmpa_agent.erl
*WARNING* snmp: Source code not found: snmpa_agent_sup.erl
*WARNING* snmp: Source code not found: snmpa_app.erl
*WARNING* snmp: Source code not found: snmpa_authentication_service.erl
*WARNING* snmp: Source code not found: snmpa_error.erl
*WARNING* snmp: Source code not found: snmpa_error_io.erl
*WARNING* snmp: Source code not found: snmpa_error_logger.erl
*WARNING* snmp: Source code not found: snmpa_error_report.erl
*WARNING* snmp: Source code not found: snmpa_general_db.erl
...

I traced this to the systools_make:make_script() that cannot guess the 
location of SNMP's source files because they haven't been stored using 
conventional directories:

 >ls -al /usr/local/lib/erlang/lib/snmp-4.1.4/src
total 28
drwxr-xr-x    7 root     root         4096 Jun 15 16:10 .
drwxr-xr-x    9 serge    devlp        4096 Jun 15 16:10 ..
drwxr-xr-x    2 root     root         4096 Jun 15 16:10 agent
drwxr-xr-x    2 root     root         4096 Jun 15 16:10 app
drwxr-xr-x    2 root     root         4096 Jun 15 16:10 compiler
drwxr-xr-x    2 root     root         4096 Jun 15 16:10 manager
drwxr-xr-x    2 root     root         4096 Jun 15 16:10 misc

I think it can be considered a bug in the SNMP.  I don't see a good way 
of hiding these warning messages ("+silent" option given to erlc doesn't 
quite help).

Serge




More information about the erlang-questions mailing list