Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

J

JesusCruzAcr

@JesusCruzAcr
Unfollow Follow
About
Posts
8
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error when I tried to do make / NetXms 3.1.241 / Ubuntu18.04
    J JesusCruzAcr
    Support

    Hello Victor,

    as you recomendation, I did what you said (download the new version) and everything goes ok, maybe was about broken package. Thank you for your fast reply.

    Thanks and have a nice day!


  • Error when I tried to do make / NetXms 3.1.241 / Ubuntu18.04
    J JesusCruzAcr
    Support

    Hello Filipp,

    Yes, the system on wich I try to compile it have some limitations, so for that reason I need to do the installation from the resources. So I'm trying to emulate it on an Ubuntu 18.04 installed on a virtual machine.

    thanks and have a nice day!


  • Error when I tried to do make / NetXms 3.1.241 / Ubuntu18.04
    J JesusCruzAcr
    Support

    Hello, I tried to do an agent, when I did the ./configure everything goes without problem, the problem is on the Make, the system gives me the next text:

    make[3]: se entra en el directorio '/home/acragt/Descargas/netxms-3.1.241/src/libnetxms'
      CXX      libnetxms_la-array.lo
    In file included from ../../include/nms_threads.h:990:0,
                    from ../../include/nms_util.h:35,
                    from libnetxms.h:28,
                    from array.cpp:24:
    ../../include/rwlock.h: In function ‘pthread_rwlock_t* RWLockCreate()’:
    ../../include/rwlock.h:35:20: error: ‘MemAlloc’ was not declared in this scope
        hLock = (RWLOCK)MemAlloc(sizeof(pthread_rwlock_t));
                        ^~~~~~~~
    ../../include/rwlock.h:35:20: note: suggested alternative: ‘realloc’
        hLock = (RWLOCK)MemAlloc(sizeof(pthread_rwlock_t));
                        ^~~~~~~~
                        realloc
    ../../include/rwlock.h:38:7: error: ‘MemFree’ was not declared in this scope
          MemFree(hLock);
          ^~~~~~~
    ../../include/rwlock.h: In function ‘void RWLockDestroy(RWLOCK)’:
    ../../include/rwlock.h:49:7: error: ‘MemFree’ was not declared in this scope
          MemFree(hLock);
          ^~~~~~~
    array.cpp: In function ‘void DefaultObjectDestructor(void*, Array*)’:
    array.cpp:33:4: error: ‘MemFree’ was not declared in this scope
        MemFree(element);
        ^~~~~~~
    array.cpp: At global scope:
    array.cpp:44:1: error: prototype for ‘Array::Array(int, int, bool, void (*)(void*, Array*))’ does not match any in class ‘Array’
     Array::Array(int initial, int grow, bool owner, void (*objectDestructor)(void *, Array *))
     ^~~~~
    In file included from libnetxms.h:28:0,
                    from array.cpp:24:
    ../../include/nms_util.h:842:2: error: candidates are: Array::Array(int, int, bool)
      Array(int initial = 0, int grow = 16, bool owner = false);
      ^~~~~
    ../../include/nms_util.h:837:4: error:                Array::Array(const Array*)
        Array(const Array *src);
        ^~~~~
    ../../include/nms_util.h:836:4: error:                Array::Array(void*, int, int, size_t)
        Array(void *data, int initial, int grow, size_t elementSize);
        ^~~~~
    In file included from libnetxms.h:27:0,
                    from array.cpp:24:
    ../../include/nms_util.h:819:22: error:                Array::Array(const Array&)
        DISABLE_COPY_CTOR(Array)
                          ^
    ../../include/nms_common.h:1235:30: note: in definition of macro ‘DISABLE_COPY_CTOR’
     #define DISABLE_COPY_CTOR(c) c (const c &s) = delete;
                                  ^
    array.cpp: In constructor ‘Array::Array(void*, int, int, size_t)’:
    array.cpp:68:25: error: ‘MemAlloc’ was not declared in this scope
          m_data = (void **)MemAlloc(m_elementSize * m_allocated);
                            ^~~~~~~~
    array.cpp:68:25: note: suggested alternative: ‘realloc’
          m_data = (void **)MemAlloc(m_elementSize * m_allocated);
                            ^~~~~~~~
                            realloc
    array.cpp:79:25: error: invalid conversion from ‘void (*)(void*, Array*)’ to ‘void (*)(void*)’ [-fpermissive]
        m_objectDestructor = DefaultObjectDestructor;
                            ^~~~~~~~~~~~~~~~~~~~~~~
    array.cpp:81:4: error: ‘m_context’ was not declared in this scope
        m_context = NULL;
        ^~~~~~~~~
    array.cpp:81:4: note: suggested alternative: ‘connect’
        m_context = NULL;
        ^~~~~~~~~
        connect
    array.cpp: In constructor ‘Array::Array(const Array*)’:
    array.cpp:93:46: error: ‘MemCopyBlock’ was not declared in this scope
        m_data = (src->m_data != NULL) ? (void **)MemCopyBlock(src->m_data, m_elementSize * m_allocated) : NULL;
                                                  ^~~~~~~~~~~~
    array.cpp:97:4: error: ‘m_context’ was not declared in this scope
        m_context = src->m_context;
        ^~~~~~~~~
    array.cpp:97:4: note: suggested alternative: ‘connect’
        m_context = src->m_context;
        ^~~~~~~~~
        connect
    array.cpp:97:21: error: ‘const class Array’ has no member named ‘m_context’
        m_context = src->m_context;
                        ^~~~~~~~~
    array.cpp: In destructor ‘virtual Array::~Array()’:
    array.cpp:118:2: error: ‘MemFree’ was not declared in this scope
      MemFree(m_data);
      ^~~~~~~
    array.cpp: In member function ‘int Array::add(void*)’:
    array.cpp:129:12: error: ‘MemRealloc’ was not declared in this scope
      m_data = MemRealloc(m_data, m_elementSize * m_allocated);
                ^~~~~~~~~~
    array.cpp:129:12: note: suggested alternative: ‘realloc’
      m_data = MemRealloc(m_data, m_elementSize * m_allocated);
                ^~~~~~~~~~
                realloc
    array.cpp: At global scope:
    array.cpp:146:29: error: no ‘void* Array::addPlaceholder()’ member function declared in class ‘Array’
     void *Array::addPlaceholder()
                                ^
    array.cpp: In member function ‘void Array::set(int, void*)’:
    array.cpp:188:13: error: ‘MemRealloc’ was not declared in this scope
        m_data = MemRealloc(m_data, m_elementSize * m_allocated);
                ^~~~~~~~~~
    array.cpp:188:13: note: suggested alternative: ‘realloc’
        m_data = MemRealloc(m_data, m_elementSize * m_allocated);
                ^~~~~~~~~~
                realloc
    array.cpp: At global scope:
    array.cpp:222:46: error: no ‘void* Array::replaceWithPlaceholder(int)’ member function declared in class ‘Array’
     void *Array::replaceWithPlaceholder(int index)
                                                  ^
    array.cpp: In member function ‘void Array::insert(int, void*)’:
    array.cpp:247:19: error: ‘MemRealloc’ was not declared in this scope
              m_data = MemRealloc(m_data, m_elementSize * m_allocated);
                      ^~~~~~~~~~
    array.cpp:247:19: note: suggested alternative: ‘realloc’
              m_data = MemRealloc(m_data, m_elementSize * m_allocated);
                      ^~~~~~~~~~
                      realloc
    array.cpp:258:19: error: ‘MemRealloc’ was not declared in this scope
              m_data = MemRealloc(m_data, m_elementSize * m_allocated);
                      ^~~~~~~~~~
    array.cpp:258:19: note: suggested alternative: ‘realloc’
              m_data = MemRealloc(m_data, m_elementSize * m_allocated);
                      ^~~~~~~~~~
                      realloc
    array.cpp: In member function ‘void Array::clear()’:
    array.cpp:298:12: error: ‘MemRealloc’ was not declared in this scope
      m_data = MemRealloc(m_data, m_elementSize * m_grow);
                ^~~~~~~~~~
    array.cpp:298:12: note: suggested alternative: ‘realloc’
      m_data = MemRealloc(m_data, m_elementSize * m_grow);
                ^~~~~~~~~~
                realloc
    array.cpp: At global scope:
    array.cpp:306:30: error: no ‘void Array::shrinkTo(int)’ member function declared in class ‘Array’
     void Array::shrinkTo(int size)
                                  ^
    array.cpp:355:6: error: prototype for ‘void Array::sort(int (*)(void*, const void*, const void*), void*)’ does not match any in class ‘Array’
     void Array::sort(int (*cb)(void *, const void *, const void *), void *context)
          ^~~~~
    array.cpp:347:6: error: candidate is: void Array::sort(int (*)(const void*, const void*))
     void Array::sort(int (*cb)(const void *, const void *))
          ^~~~~
    array.cpp:412:28: error: no ‘void ArrayIterator::unlink()’ member function declared in class ‘ArrayIterator’
     void ArrayIterator::unlink()
                                ^
    Makefile:947: recipe for target 'libnetxms_la-array.lo' failed
    make[3]: *** [libnetxms_la-array.lo] Error 1
    make[3]: se sale del directorio '/home/acragt/Descargas/netxms-3.1.241/src/libnetxms'
    Makefile:450: recipe for target 'all-recursive' failed
    make[2]: *** [all-recursive] Error 1
    make[2]: se sale del directorio '/home/acragt/Descargas/netxms-3.1.241/src'
    Makefile:504: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: se sale del directorio '/home/acragt/Descargas/netxms-3.1.241'
    Makefile:436: recipe for target 'all' failed
    make: *** [all] Error 2
    root@acragt-VirtualBox:/home/acragt/Descargas/netxms-3.1.241#

    Also I attach the log file.

    Thank you and have a nice day!


    config.log


  • Unable to bind socket for local admin interface
    J JesusCruzAcr
    Support

    there were no services that were occupying the port (apparently something remained, generating this error). Just simply restart the OS and raise the demon again and without problems.

    Thanks for the attention, good day!


  • Unable to bind socket for local admin interface
    J JesusCruzAcr
    Support

    The problem is in UBUNTU 18.04 and NetXMS 3.1.241


  • Unable to bind socket for local admin interface
    J JesusCruzAcr
    Support

    Hello,

    when I tried to start the demon, the log file gives me the next error:

    2020.02.24 13:18:42.874 Log file opened (rotation policy 2, max size 16777216)
    2020.02.24 13:18:42.874 *I* [                  ] Code page set to ISO8859-1
    2020.02.24 13:18:42.875 *I* [                  ] Platform subagent "/~/acrxmsserver/lib/netxms/linux.nsm" successfully loaded
    2020.02.24 13:18:42.883 *I* [db.drv            ] Database driver "mysql.ddr" loaded and initialized successfully
    2020.02.24 13:18:42.900 *E* [                  ] Unable to bind socket for local admin interface (98 Address already in use)
    2020.02.24 13:18:42.936 *I* [                  ] Server certificate not set
    2020.02.24 13:18:42.956 *I* [db.drv            ] Database driver "sqlite.ddr" loaded and initialized successfully
    2020.02.24 13:18:43.011 *I* [db.drv            ] Database driver "sqlite.ddr" loaded and initialized successfully
    2020.02.24 13:18:43.028 *I* [                  ] Network device driver NETONIX loaded successfully
    2020.02.24 13:18:43.028 *I* [                  ] Network device driver TB loaded successfully
    2020.02.24 13:18:43.028 *I* [                  ] Network device driver H3C loaded successfully
    2020.02.24 13:18:43.028 *I* [                  ] Network device driver HPSW loaded successfully
    2020.02.24 13:18:43.028 *I* [                  ] Network device driver PROCURVE loaded successfully
    2020.02.24 13:18:43.028 *I* [                  ] Network device driver EXTREME loaded successfully
    2020.02.24 13:18:43.029 *I* [                  ] Network device driver BAYSTACK loaded successfully
    2020.02.24 13:18:43.029 *I* [                  ] Network device driver NTWS loaded successfully
    2020.02.24 13:18:43.029 *I* [                  ] Network device driver ERS8000 loaded successfully
    2020.02.24 13:18:43.029 *I* [                  ] Network device driver MIKROTIK loaded successfully
    2020.02.24 13:18:43.029 *I* [                  ] Network device driver OPTIX loaded successfully
    2020.02.24 13:18:43.029 *I* [                  ] Network device driver DELL-PWC loaded successfully
    2020.02.24 13:18:43.030 *I* [                  ] Network device driver AT loaded successfully
    2020.02.24 13:18:43.030 *I* [                  ] Network device driver SYMBOL-WS loaded successfully
    2020.02.24 13:18:43.030 *I* [                  ] Network device driver AIRESPACE loaded successfully
    2020.02.24 13:18:43.030 *I* [                  ] Network device driver IGNITENET loaded successfully
    2020.02.24 13:18:43.031 *I* [                  ] Network device driver DLINK loaded successfully
    2020.02.24 13:18:43.031 *I* [                  ] Network device driver CATALYST-GENERIC loaded successfully
    2020.02.24 13:18:43.031 *I* [                  ] Network device driver CATALYST-2900XL loaded successfully
    2020.02.24 13:18:43.031 *I* [                  ] Network device driver CISCO-ESW loaded successfully
    2020.02.24 13:18:43.031 *I* [                  ] Network device driver CISCO-NEXUS loaded successfully
    2020.02.24 13:18:43.031 *I* [                  ] Network device driver CISCO-SB loaded successfully
    2020.02.24 13:18:43.031 *I* [                  ] Network device driver CISCO-GENERIC loaded successfully
    2020.02.24 13:18:43.031 *I* [                  ] Network device driver NET-SNMP loaded successfully
    2020.02.24 13:18:43.031 *I* [                  ] Network device driver PING3 loaded successfully
    2020.02.24 13:18:43.032 *I* [                  ] Network device driver UBNT loaded successfully
    2020.02.24 13:18:43.032 *I* [                  ] Network device driver JUNIPER loaded successfully
    2020.02.24 13:18:43.032 *I* [                  ] Network device driver NETSCREEN loaded successfully
    2020.02.24 13:18:43.032 *I* [                  ] Network device driver QTECH-OLT loaded successfully
    2020.02.24 13:18:43.032 *I* [                  ] Network device driver RITTAL loaded successfully
    2020.02.24 13:18:43.033 *I* [db.drv            ] Database driver "sqlite.ddr" loaded and initialized successfully
    2020.02.24 13:18:43.573 *I* [                  ] Listening for SNMP traps on UDP socket 0.0.0.0:162
    2020.02.24 13:18:43.574 *I* [                  ] Listening for SNMP traps on UDP socket :::162
    2020.02.24 13:18:43.575 *I* [                  ] NetXMS Server started
    2020.02.24 13:18:43.575 *E* [                  ] SocketListener/AgentTunnels: cannot bind IPv4 socket (98 Address already in use)
    2020.02.24 13:18:43.576 *E* [                  ] SocketListener/AgentTunnels: cannot bind IPv6 socket (98 Address already in use)
    2020.02.24 13:18:43.576 *E* [                  ] SocketListener/Clients: cannot bind IPv4 socket (98 Address already in use)
    2020.02.24 13:18:43.576 *E* [                  ] SocketListener/Clients: cannot bind IPv6 socket (98 Address already in use)
    2020.02.24 13:18:43.576 *E* [                  ] SocketListener/MobileDevices: cannot bind IPv4 socket (98 Address already in use)
    2020.02.24 13:18:43.576 *E* [                  ] SocketListener/MobileDevices: cannot bind IPv6 socket (98 Address already in use)

    Have a nice day!


  • Make Error NetXms 2.2.17/Ubuntu18.04
    J JesusCruzAcr
    Support

    Hello,

    thank you for your fast response. I will try to do it with the version 3.1 and if I have another doubt i will let you know 🙂

    Have a nice day!


  • Make Error NetXms 2.2.17/Ubuntu18.04
    J JesusCruzAcr
    Support

    Hello,

    I have a problem after the ./configure, when I tried to do the Make, the system send me the next message:

    make[3]: No se hace nada para 'all'.
    make[3]: se sale del directorio '/home/acriter/Descargas/netxms-2.2.17/src/sqlite'
    Making all in libnetxms
    make[3]: se entra en el directorio '/home/acriter/Descargas/netxms-2.2.17/src/libnetxms'
      CXX      libnetxms_la-array.lo
    In file included from ../../include/nms_threads.h:990:0,
                    from ../../include/nms_util.h:35,
                    from libnetxms.h:28,
                    from array.cpp:24:
    ../../include/rwlock.h: In function %u2018pthread_rwlock_t* RWLockCreate()%u2019:
    ../../include/rwlock.h:35:53: error: %u2018MemAlloc%u2019 was not declared in this scope
        hLock = (RWLOCK)MemAlloc(sizeof(pthread_rwlock_t));
                                                        ^
    ../../include/rwlock.h:38:20: error: %u2018MemFree%u2019 was not declared in this scope
          MemFree(hLock);
                        ^
    ../../include/rwlock.h: In function %u2018void RWLockDestroy(RWLOCK)%u2019:
    ../../include/rwlock.h:49:20: error: %u2018MemFree%u2019 was not declared in this scope
          MemFree(hLock);
                        ^
    array.cpp: In function %u2018void DefaultObjectDestructor(void*)%u2019:
    array.cpp:33:19: error: %u2018MemFree%u2019 was not declared in this scope
        MemFree(element);
                      ^
    array.cpp: In constructor %u2018Array::Array(int, int, bool)%u2019:
    array.cpp:49:78: error: %u2018MemAlloc%u2019 was not declared in this scope
        m_data = (m_allocated > 0) ? (void **)MemAlloc(m_elementSize * m_allocated) : NULL;
                                                                                  ^
    array.cpp: In constructor %u2018Array::Array(void*, int, int, size_t)%u2019:
    array.cpp:66:61: error: %u2018MemAlloc%u2019 was not declared in this scope
          m_data = (void **)MemAlloc(m_elementSize * m_allocated);
                                                                ^
    array.cpp: In constructor %u2018Array::Array(const Array*)%u2019:
    array.cpp:90:99: error: %u2018MemCopyBlock%u2019 was not declared in this scope
        m_data = (src->m_data != NULL) ? (void **)MemCopyBlock(src->m_data, m_elementSize * m_allocated) : NULL;
                                                                                                      ^
    array.cpp: In destructor %u2018virtual Array::~Array()%u2019:
    array.cpp:106:16: error: %u2018MemFree%u2019 was not declared in this scope
      MemFree(m_data);
                    ^
    array.cpp: In member function %u2018int Array::add(void*)%u2019:
    array.cpp:117:58: error: %u2018MemRealloc%u2019 was not declared in this scope
      m_data = MemRealloc(m_data, m_elementSize * m_allocated);
                                                              ^
    array.cpp: In member function %u2018void Array::set(int, void*)%u2019:
    array.cpp:152:59: error: %u2018MemRealloc%u2019 was not declared in this scope
        m_data = MemRealloc(m_data, m_elementSize * m_allocated);
                                                              ^
    array.cpp: In member function %u2018void Array::insert(int, void*)%u2019:
    array.cpp:196:65: error: %u2018MemRealloc%u2019 was not declared in this scope
              m_data = MemRealloc(m_data, m_elementSize * m_allocated);
                                                                    ^
    array.cpp:207:65: error: %u2018MemRealloc%u2019 was not declared in this scope
              m_data = MemRealloc(m_data, m_elementSize * m_allocated);
                                                                    ^
    array.cpp: In member function %u2018void Array::clear()%u2019:
    array.cpp:247:53: error: %u2018MemRealloc%u2019 was not declared in this scope
      m_data = MemRealloc(m_data, m_elementSize * m_grow);
                                                        ^
    array.cpp: At global scope:
    array.cpp:255:30: error: no %u2018void Array::shrinkTo(int)%u2019 member function declared in class %u2018Array%u2019
     void Array::shrinkTo(int size)
                                  ^
    array.cpp:304:6: error: prototype for %u2018void Array::sort(int (*)(void*, const void*, const void*), void*)%u2019 does not match any in class %u2018Array%u2019
     void Array::sort(int (*cb)(void *, const void *, const void *), void *context)
          ^~~~~
    array.cpp:296:6: error: candidate is: void Array::sort(int (*)(const void*, const void*))
     void Array::sort(int (*cb)(const void *, const void *))
          ^~~~~
    array.cpp:361:28: error: no %u2018void ArrayIterator::unlink()%u2019 member function declared in class %u2018ArrayIterator%u2019
     void ArrayIterator::unlink()
                                ^
    cc1plus: warning: unrecognized command line option %u2018-Wno-format-truncation%u2019
    Makefile:859: recipe for target 'libnetxms_la-array.lo' failed
    make[3]: *** [libnetxms_la-array.lo] Error 1
    make[3]: se sale del directorio '/home/acriter/Descargas/netxms-2.2.17/src/libnetxms'
    Makefile:448: recipe for target 'all-recursive' failed
    make[2]: *** [all-recursive] Error 1
    make[2]: se sale del directorio '/home/acriter/Descargas/netxms-2.2.17/src'
    Makefile:502: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: se sale del directorio '/home/acriter/Descargas/netxms-2.2.17'
    Makefile:434: recipe for target 'all' failed
    make: *** [all] Error 2

    This problem is on UBUNTU 18.04 with NetXMS 2.2.17 and trying to do an agent. Also I attach the log file. I added some libraries that I apparently lack, but still the problem persists.

    Thank you and have a nice day!


    config.log

    make_error.txt

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups