<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error when I tried to do make / NetXms 3.1.241 / Ubuntu18.04]]></title><description><![CDATA[<p dir="auto">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:</p>
<p dir="auto">make[3]: se entra en el directorio '/home/acragt/Descargas/netxms-3.1.241/src/libnetxms'<br />
  CXX      libnetxms_la-array.lo<br />
In file included from ../../include/nms_threads.h:990:0,<br />
                 from ../../include/nms_util.h:35,<br />
                 from libnetxms.h:28,<br />
                 from array.cpp:24:<br />
../../include/rwlock.h: In function ‘pthread_rwlock_t* RWLockCreate()’:<br />
../../include/rwlock.h:35:20: error: ‘MemAlloc’ was not declared in this scope<br />
    hLock = (RWLOCK)MemAlloc(sizeof(pthread_rwlock_t));<br />
                    ^~~~~~~~<br />
../../include/rwlock.h:35:20: note: suggested alternative: ‘realloc’<br />
    hLock = (RWLOCK)MemAlloc(sizeof(pthread_rwlock_t));<br />
                    ^~~~~~~~<br />
                    realloc<br />
../../include/rwlock.h:38:7: error: ‘MemFree’ was not declared in this scope<br />
       MemFree(hLock);<br />
       ^~~~~~~<br />
../../include/rwlock.h: In function ‘void RWLockDestroy(RWLOCK)’:<br />
../../include/rwlock.h:49:7: error: ‘MemFree’ was not declared in this scope<br />
       MemFree(hLock);<br />
       ^~~~~~~<br />
array.cpp: In function ‘void DefaultObjectDestructor(void*, Array*)’:<br />
array.cpp:33:4: error: ‘MemFree’ was not declared in this scope<br />
    MemFree(element);<br />
    ^~~~~~~<br />
array.cpp: At global scope:<br />
array.cpp:44:1: error: prototype for ‘Array::Array(int, int, bool, void (*)(void*, Array*))’ does not match any in class ‘Array’<br />
 Array::Array(int initial, int grow, bool owner, void (*objectDestructor)(void *, Array *))<br />
 ^~~~~<br />
In file included from libnetxms.h:28:0,<br />
                 from array.cpp:24:<br />
../../include/nms_util.h:842:2: error: candidates are: Array::Array(int, int, bool)<br />
  Array(int initial = 0, int grow = 16, bool owner = false);<br />
  ^~~~~<br />
../../include/nms_util.h:837:4: error:                 Array::Array(const Array*)<br />
    Array(const Array *src);<br />
    ^~~~~<br />
../../include/nms_util.h:836:4: error:                 Array::Array(void*, int, int, size_t)<br />
    Array(void *data, int initial, int grow, size_t elementSize);<br />
    ^~~~~<br />
In file included from libnetxms.h:27:0,<br />
                 from array.cpp:24:<br />
../../include/nms_util.h:819:22: error:                 Array::Array(const Array&amp;)<br />
    DISABLE_COPY_CTOR(Array)<br />
                      ^<br />
../../include/nms_common.h:1235:30: note: in definition of macro ‘DISABLE_COPY_CTOR’<br />
 #define DISABLE_COPY_CTOR(c) c (const c &amp;s) = delete;<br />
                              ^<br />
array.cpp: In constructor ‘Array::Array(void*, int, int, size_t)’:<br />
array.cpp:68:25: error: ‘MemAlloc’ was not declared in this scope<br />
       m_data = (void **)MemAlloc(m_elementSize * m_allocated);<br />
                         ^~~~~~~~<br />
array.cpp:68:25: note: suggested alternative: ‘realloc’<br />
       m_data = (void **)MemAlloc(m_elementSize * m_allocated);<br />
                         ^~~~~~~~<br />
                         realloc<br />
array.cpp:79:25: error: invalid conversion from ‘void (*)(void*, Array*)’ to ‘void (*)(void*)’ [-fpermissive]<br />
    m_objectDestructor = DefaultObjectDestructor;<br />
                         ^~~~~~~~~~~~~~~~~~~~~~~<br />
array.cpp:81:4: error: ‘m_context’ was not declared in this scope<br />
    m_context = NULL;<br />
    ^~~~~~~~~<br />
array.cpp:81:4: note: suggested alternative: ‘connect’<br />
    m_context = NULL;<br />
    ^~~~~~~~~<br />
    connect<br />
array.cpp: In constructor ‘Array::Array(const Array*)’:<br />
array.cpp:93:46: error: ‘MemCopyBlock’ was not declared in this scope<br />
    m_data = (src-&gt;m_data != NULL) ? (void **)MemCopyBlock(src-&gt;m_data, m_elementSize * m_allocated) : NULL;<br />
                                              ^~~~~~~~~~~~<br />
array.cpp:97:4: error: ‘m_context’ was not declared in this scope<br />
    m_context = src-&gt;m_context;<br />
    ^~~~~~~~~<br />
array.cpp:97:4: note: suggested alternative: ‘connect’<br />
    m_context = src-&gt;m_context;<br />
    ^~~~~~~~~<br />
    connect<br />
array.cpp:97:21: error: ‘const class Array’ has no member named ‘m_context’<br />
    m_context = src-&gt;m_context;<br />
                     ^~~~~~~~~<br />
array.cpp: In destructor ‘virtual Array::~Array()’:<br />
array.cpp:118:2: error: ‘MemFree’ was not declared in this scope<br />
  MemFree(m_data);<br />
  ^~~~~~~<br />
array.cpp: In member function ‘int Array::add(void*)’:<br />
array.cpp:129:12: error: ‘MemRealloc’ was not declared in this scope<br />
   m_data = MemRealloc(m_data, m_elementSize * m_allocated);<br />
            ^~~~~~~~~~<br />
array.cpp:129:12: note: suggested alternative: ‘realloc’<br />
   m_data = MemRealloc(m_data, m_elementSize * m_allocated);<br />
            ^~~~~~~~~~<br />
            realloc<br />
array.cpp: At global scope:<br />
array.cpp:146:29: error: no ‘void* Array::addPlaceholder()’ member function declared in class ‘Array’<br />
 void *Array::addPlaceholder()<br />
                             ^<br />
array.cpp: In member function ‘void Array::set(int, void*)’:<br />
array.cpp:188:13: error: ‘MemRealloc’ was not declared in this scope<br />
    m_data = MemRealloc(m_data, m_elementSize * m_allocated);<br />
             ^~~~~~~~~~<br />
array.cpp:188:13: note: suggested alternative: ‘realloc’<br />
    m_data = MemRealloc(m_data, m_elementSize * m_allocated);<br />
             ^~~~~~~~~~<br />
             realloc<br />
array.cpp: At global scope:<br />
array.cpp:222:46: error: no ‘void* Array::replaceWithPlaceholder(int)’ member function declared in class ‘Array’<br />
 void *Array::replaceWithPlaceholder(int index)<br />
                                              ^<br />
array.cpp: In member function ‘void Array::insert(int, void*)’:<br />
array.cpp:247:19: error: ‘MemRealloc’ was not declared in this scope<br />
          m_data = MemRealloc(m_data, m_elementSize * m_allocated);<br />
                   ^~~~~~~~~~<br />
array.cpp:247:19: note: suggested alternative: ‘realloc’<br />
          m_data = MemRealloc(m_data, m_elementSize * m_allocated);<br />
                   ^~~~~~~~~~<br />
                   realloc<br />
array.cpp:258:19: error: ‘MemRealloc’ was not declared in this scope<br />
          m_data = MemRealloc(m_data, m_elementSize * m_allocated);<br />
                   ^~~~~~~~~~<br />
array.cpp:258:19: note: suggested alternative: ‘realloc’<br />
          m_data = MemRealloc(m_data, m_elementSize * m_allocated);<br />
                   ^~~~~~~~~~<br />
                   realloc<br />
array.cpp: In member function ‘void Array::clear()’:<br />
array.cpp:298:12: error: ‘MemRealloc’ was not declared in this scope<br />
   m_data = MemRealloc(m_data, m_elementSize * m_grow);<br />
            ^~~~~~~~~~<br />
array.cpp:298:12: note: suggested alternative: ‘realloc’<br />
   m_data = MemRealloc(m_data, m_elementSize * m_grow);<br />
            ^~~~~~~~~~<br />
            realloc<br />
array.cpp: At global scope:<br />
array.cpp:306:30: error: no ‘void Array::shrinkTo(int)’ member function declared in class ‘Array’<br />
 void Array::shrinkTo(int size)<br />
                              ^<br />
array.cpp:355:6: error: prototype for ‘void Array::sort(int (*)(void*, const void*, const void*), void*)’ does not match any in class ‘Array’<br />
 void Array::sort(int (*cb)(void *, const void *, const void *), void *context)<br />
      ^~~~~<br />
array.cpp:347:6: error: candidate is: void Array::sort(int (*)(const void*, const void*))<br />
 void Array::sort(int (*cb)(const void *, const void *))<br />
      ^~~~~<br />
array.cpp:412:28: error: no ‘void ArrayIterator::unlink()’ member function declared in class ‘ArrayIterator’<br />
 void ArrayIterator::unlink()<br />
                            ^<br />
Makefile:947: recipe for target 'libnetxms_la-array.lo' failed<br />
make[3]: *** [libnetxms_la-array.lo] Error 1<br />
make[3]: se sale del directorio '/home/acragt/Descargas/netxms-3.1.241/src/libnetxms'<br />
Makefile:450: recipe for target 'all-recursive' failed<br />
make[2]: *** [all-recursive] Error 1<br />
make[2]: se sale del directorio '/home/acragt/Descargas/netxms-3.1.241/src'<br />
Makefile:504: recipe for target 'all-recursive' failed<br />
make[1]: *** [all-recursive] Error 1<br />
make[1]: se sale del directorio '/home/acragt/Descargas/netxms-3.1.241'<br />
Makefile:436: recipe for target 'all' failed<br />
make: *** [all] Error 2<br />
root@acragt-VirtualBox:/home/acragt/Descargas/netxms-3.1.241#</p>
<p dir="auto">Also I attach the log file.</p>
<p dir="auto">Thank you and have a nice day!</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000005037-config.log">config.log</a></p>
]]></description><link>https://forum.netxms.org/topic/6414/error-when-i-tried-to-do-make-netxms-3.1.241-ubuntu18.04</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 15:13:21 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6414.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Feb 2020 22:10:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error when I tried to do make / NetXms 3.1.241 / Ubuntu18.04 on Fri, 28 Feb 2020 17:20:23 GMT]]></title><description><![CDATA[<p dir="auto">Hello Victor,</p>
<p dir="auto">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.</p>
<p dir="auto">Thanks and have a nice day!</p>
]]></description><link>https://forum.netxms.org/post/27479</link><guid isPermaLink="true">https://forum.netxms.org/post/27479</guid><dc:creator><![CDATA[JesusCruzAcr]]></dc:creator><pubDate>Fri, 28 Feb 2020 17:20:23 GMT</pubDate></item><item><title><![CDATA[Reply to Error when I tried to do make / NetXms 3.1.241 / Ubuntu18.04 on Thu, 27 Feb 2020 15:59:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I just tried to build 3.1.241 on Ubuntu 18.04 with your configure options and build went fine. Make sure your source package is not broken, maybe try 3.2.350 instead. Also you can use generic Linux agent binaries - they should work on most modern distros.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/27462</link><guid isPermaLink="true">https://forum.netxms.org/post/27462</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 27 Feb 2020 15:59:37 GMT</pubDate></item><item><title><![CDATA[Reply to Error when I tried to do make / NetXms 3.1.241 / Ubuntu18.04 on Wed, 26 Feb 2020 15:48:44 GMT]]></title><description><![CDATA[<p dir="auto">Hello Filipp,</p>
<p dir="auto">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.</p>
<p dir="auto">thanks and have a nice day!</p>
]]></description><link>https://forum.netxms.org/post/27450</link><guid isPermaLink="true">https://forum.netxms.org/post/27450</guid><dc:creator><![CDATA[JesusCruzAcr]]></dc:creator><pubDate>Wed, 26 Feb 2020 15:48:44 GMT</pubDate></item><item><title><![CDATA[Reply to Error when I tried to do make / NetXms 3.1.241 / Ubuntu18.04 on Wed, 26 Feb 2020 09:09:18 GMT]]></title><description><![CDATA[<p dir="auto">Do you have particular reasons to compile the agent? There are packages for Ubuntu: <a href="https://www.netxms.org/documentation/adminguide/installation.html#installing-on-debian-or-ubuntu" rel="nofollow ugc">https://www.netxms.org/documentation/adminguide/installation.html#installing-on-debian-or-ubuntu</a></p>
]]></description><link>https://forum.netxms.org/post/27440</link><guid isPermaLink="true">https://forum.netxms.org/post/27440</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Wed, 26 Feb 2020 09:09:18 GMT</pubDate></item></channel></rss>