Giter VIP home page Giter VIP logo

snmp-collector's People

Contributors

krishmanl avatar refathwadood avatar vances avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

snmp-collector's Issues

snmp_collector_api_SUITE ct run is failing

I have built and installed as explained in README.maintainer. When I tried to run the testsuite snmp_collector_api_SUITE, the testcase init_per_suite is failing. Why is it failing? Please guide me.

~/git4/snmp_collector.build/test$ ct_run -suite snmp_collector_api_SUITE
*** CT Error Notification 2024-04-22 19:48:46.643 ***

snmp_collector_api_SUITE:init_per_suite failed
Reason: {badmatch,{error,{undefined,{snmp_collector_app,start,[norma...}

Full error description and stacktrace

=== Ended at 2024-04-22 19:48:46
=== Location: [{snmp_collector_api_SUITE,init_per_suite,65},
{test_server,ts_tc,1793},
{test_server,run_test_case_eval1,1390},
{test_server,run_test_case_eval,1234}]
=== === Reason: no match of right hand side value
{error,{undefined,{snmp_collector_app,start,[normal,[]]}}}
in function snmp_collector_api_SUITE:init_per_suite/1 (../../snmp-collector/test/snmp_collector_api_SUITE.erl, line 65)
in call from test_server:ts_tc/3 (test_server.erl, line 1793)
in call from test_server:run_test_case_eval1/6 (test_server.erl, line 1390)
in call from test_server:run_test_case_eval/9 (test_server.erl, line 1234)

*** init_per_suite failed.
Skipping all cases.

make is failing with an error "invalid application of ‘sizeof’ to incomplete type ‘EVP_MD_CTX’"

I have followed the procedure explained in the file README.maintainer. All the steps till "make" have succeeded. The " make " command throws the following error "invalid application of ‘sizeof’ to incomplete type ‘EVP_MD_CTX’ {aka ‘struct evp_md_ctx_st’}". Please help me in resolving this issue.

/usr/local/bin/erlc -W -v -I ../../snmp-collector/include -I ../include ../../snmp-collector/src/snmp_collector_manager_fsm.erl
/usr/local/bin/erlc -W -v -I ../../snmp-collector/include -I ../include ../../snmp-collector/src/snmp_collector_manager_fsm_sup.erl
/usr/local/bin/erlc -W -v -I ../../snmp-collector/include -I ../include ../../snmp-collector/src/snmp_collector_manager_server.erl
/usr/local/bin/erlc -W -v -I ../../snmp-collector/include -I ../include ../../snmp-collector/src/snmp_collector_manager_sup_sup.erl
/usr/local/bin/erlc -W -v -I ../../snmp-collector/include -I ../include ../../snmp-collector/src/snmp_collector_manager_port_sup.erl
/usr/local/bin/erlc -W -v -I ../../snmp-collector/include -I ../include ../../snmp-collector/src/snmp_collector_manager_sup.erl
make[2]: Leaving directory '/home/bhuvan/git/snmp_collector.build/ebin'

Making all in c_src
make[2]: Entering directory '/home/bhuvan/git/snmp_collector.build/c_src'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../snmp-collector/c_src -I..   -I/include -I/usr/local/lib/erlang/erts-14.1.1/include  -g -O2 -Wall -MT snmp_collector_usm.lo -MD -MP -MF .deps/snmp_collector_usm.Tpo -c -o snmp_collector_usm.lo ../../snmp-collector/c_src/snmp_collector_usm.c

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../snmp-collector/c_src -I.. -I/include -I/usr/local/lib/erlang/erts-14.1.1/include -g -O2 -Wall -MT snmp_collector_usm.lo -MD -MP -MF .deps/snmp_collector_usm.Tpo -c ../../snmp-collector/c_src/snmp_collector_usm.c  -fPIC -DPIC -o .libs/snmp_collector_usm.o

../../snmp-collector/c_src/snmp_collector_usm.c: In function ‘ku_nif’:
../../snmp-collector/c_src/snmp_collector_usm.c:165:32: **error: invalid application of ‘sizeof’ to incomplete type ‘EVP_MD_CTX’ {aka ‘struct evp_md_ctx_st’}**
  165 |                         sizeof(EVP_MD_CTX))) == NULL))
      |                                ^~~~~~~~~~

make[2]: *** [Makefile:462: snmp_collector_usm.lo] Error 1
make[2]: Leaving directory '/home/bhuvan/git/snmp_collector.build/c_src'
make[1]: *** [Makefile:435: all-recursive] Error 1
make[1]: Leaving directory '/home/bhuvan/git/snmp_collector.build'
make: *** [Makefile:365: all] Error 2
bhuvan@vm-alarm:~/git/snmp_collector.build$ 

snmp_collector_snmp_SUITE ct run is failing

I have built and installed as explained in README.maintainer. When I tried to run the testsuite snmp_collector_snmp_SUITE, I got the following result. Why is it failing? Please guide me.

~/git4/snmp_collector.build/test$ ct_run -suite snmp_collector_snmp_SUITE

  1. The testcase init_per_suite is passed.

  2. The test add_new_agent failed with an error "{undef,[{snmp_collector_snmp_SUITE,...},{...}|...]} ... Reason: undefined function snmp_collector_snmp_SUITE:add_new_agent/1"

  3. All other testcases are SKIPPED with an error
    ERROR! init_per_testcase crashed!
    Location: [{snmp_collector_snmp_SUITE,init_snmp,690},
    {snmp_collector_snmp_SUITE,init_per_testcase,65},
    {test_server,do_init_per_testcase,1563},
    {test_server,run_test_case_eval1,1264},
    {test_server,run_test_case_eval,1234}]
    Reason: {{badmatch,{error,enoent}},

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.