tsung icon indicating copy to clipboard operation
tsung copied to clipboard

compilation error

Open edukondalugorla opened this issue 7 years ago • 4 comments

Hi, I am getting compilation error, please help me.

src/tsung_controller/ts_os_mon_snmp.erl:36: can't find include lib "snmp/include/snmp_types.hrl" src/tsung_controller/ts_os_mon_snmp.erl:202: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:210: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:213: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:214: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:215: variable 'Val' is unbound src/tsung_controller/ts_os_mon_snmp.erl:215: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:218: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:221: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:225: record varbind undefined src/tsung_controller/ts_os_mon_snmp.erl:226: variable 'OID' is unbound src/tsung_controller/ts_os_mon_snmp.erl:227: variable 'Val' is unbound Makefile:379: recipe for target 'ebin/ts_os_mon_snmp.beam' failed make: *** [ebin/ts_os_mon_snmp.beam] Error 1

edukondalugorla avatar Dec 19 '17 05:12 edukondalugorla

Hi @edukondalugorla! Can you please elaborate on what your environment looks like?

  • tsung version (or git SHA)
  • Erlang version
  • OS

tisba avatar May 30 '18 11:05 tisba

I was able to reproduce the error on Ubuntu Xenial 16.04

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.5 LTS
Release:	16.04
Codename:	xenial

With the erlang-dev pulled from default repositories:

Package: erlang-dev (1:18.3-dfsg-1ubuntu3.1)

The issue is can be worked around by using the latest Erlang 19 from erlang-solutions repositories.

villhei avatar Sep 07 '18 09:09 villhei

Can you confirm that you have all required erlang application packages installed? In this case erlang-snmp. erlang-dev does not include all erlang applications, only headers and tools required to compile erlang code.

tisba avatar Sep 07 '18 10:09 tisba

esl-erlang is the one that should definitely work (from the erlang-solutions repo).

tisba avatar Sep 07 '18 10:09 tisba