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

  1. Home
  2. Support
  3. Make Error NetXms 2.2.17/Ubuntu18.04

Make Error NetXms 2.2.17/Ubuntu18.04

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 43.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    J
    JesusCruzAcr
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      2.2.17 is a fairly old version that we do not support any more. It's recommended to upgrade to 3.1.

      1 Reply Last reply
      0
      • J
        J
        JesusCruzAcr
        wrote on last edited by
        #3

        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!

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • 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