Make Error NetXms 2.2.17/Ubuntu18.04

Started by JesusCruzAcr, February 20, 2020, 08:50:55 PM

Previous topic - Next topic

JesusCruzAcr

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!

Filipp Sudanov

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

JesusCruzAcr

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!