<?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[Make Keeps Failing on CentOS 7]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm a novice in Linux and I'm trying to install NetXMS.  I followed the instructions for <em>Installing from source</em>, but 'Make' keeps failing, after running for several minutes, at the same point with the following errors.  I would greatly appreciate any suggestions.</p>
<p dir="auto">make[5]: Entering directory `/home/ares/netxms-2.2.15.2/src/db/dbdrv/mysql'<br />
  CXX      mysql_la-mysql.lo<br />
mysql.cpp: In function ‘void* GetFieldInternal(MYSQL_RESULT*, int, int, void*, int, bool)’:<br />
mysql.cpp:703:3: error: ‘my_bool’ was not declared in this scope<br />
   my_bool isNull;<br />
   ^<br />
mysql.cpp:703:11: error: expected ‘;’ before ‘isNull’<br />
   my_bool isNull;<br />
           ^<br />
mysql.cpp:714:16: error: ‘isNull’ was not declared in this scope<br />
   b.is_null = &amp;isNull;<br />
                ^<br />
mysql.cpp: In function ‘void* GetFieldUnbufferedInternal(MYSQL_UNBUFFERED_RESULT*, int, void*, int, bool)’:<br />
mysql.cpp:1063:7: error: ‘my_bool’ was not declared in this scope<br />
       my_bool isNull;<br />
       ^<br />
mysql.cpp:1063:15: error: expected ‘;’ before ‘isNull’<br />
       my_bool isNull;<br />
               ^<br />
mysql.cpp:1074:20: error: ‘isNull’ was not declared in this scope<br />
       b.is_null = &amp;isNull;<br />
                    ^<br />
At global scope:<br />
cc1plus: warning: unrecognized command line option "-Wno-format-truncation" [enabled by default]<br />
make[5]: *** [mysql_la-mysql.lo] Error 1<br />
make[5]: Leaving directory `/home/ares/netxms-2.2.15.2/src/db/dbdrv/mysql'<br />
make[4]: *** [all-recursive] Error 1<br />
make[4]: Leaving directory `/home/ares/netxms-2.2.15.2/src/db/dbdrv'<br />
make[3]: *** [all-recursive] Error 1<br />
make[3]: Leaving directory `/home/ares/netxms-2.2.15.2/src/db'<br />
make[2]: *** [all-recursive] Error 1<br />
make[2]: Leaving directory `/home/ares/netxms-2.2.15.2/src'<br />
make[1]: *** [all-recursive] Error 1<br />
make[1]: Leaving directory `/home/ares/netxms-2.2.15.2'<br />
make: *** [all] Error 2</p>
<p dir="auto"><strong>CentOS Setup</strong><br />
I'm installing NetXMS in a CentOS 7.6.1810 in an ESXi 6.7 virtual machine with:<br />
    Minimal Install<br />
    No Security profile selected<br />
    Firewalld disabled and stopped</p>
<p dir="auto">I installed the following packages installed:<br />
    yum -y update<br />
    yum -y groups install 'Development Tools'<br />
    yum -y install libcurl-devel<br />
    yum -y install libssh-devel<br />
    yum -y install openssl-devel<br />
    yum -y install wget<br />
    yum -y install nano</p>
<p dir="auto">I only installed this package to get around an error message that appeared in the pre-build checks:<br />
    yum -y install epel-release<br />
    yum -y install mosquitto-devel</p>
<p dir="auto">I thought the issue involved a conflict with mariadb-libs-1:5.5.60-1.el7_5.x86_64 so I removed it before installing MySQL using the following commands:<br />
    rpm -ev --nodeps mariadb-libs-5.5.60-1.el7_5.x86_64<br />
    wget <a href="http://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm" rel="nofollow ugc">http://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm</a><br />
    rpm -ivh mysql80-community-release-el7-3.noarch.rpm<br />
    yum -y install mysql-server<br />
    yum install mysql-devel</p>
<p dir="auto">UPDATE #1: I tried starting MySQL Server ( systemctl status mysqld.service) before using the Make command, but the build failed almost immediately.</p>
<p dir="auto">UPDATE #2: I tired installing MySQl using mysql80-community-release-el7-1.noarch.rpm, but had the same result.  I'm trying to figure out how to install MySql 5.7 and will post the results. </p>
<p dir="auto">UPDATE #3: I haven't figured out how to install MySQL 5.7 yet, but I did find a couple of other posts on the forum where the user shared the results of the ./configure script and the Server Libs statement was not empty, e.g. Server libs: -lldap -llber or Server libs:  -lssl -lrt.  Could that point to a solution to the problem?</p>
<p dir="auto"><strong>NetXMS Install</strong><br />
NetXMS source code package: wget <a href="https://www.netxms.org/download/releases/2.2/2.2.15/netxms-2.2.15.2.tar.gz" rel="nofollow ugc">https://www.netxms.org/download/releases/2.2/2.2.15/netxms-2.2.15.2.tar.gz</a><br />
Build script: sh ./configure --with-server --with-mysql --with-agent</p>
<p dir="auto">---------------------------------------------------------------------<br />
                        Configure results<br />
---------------------------------------------------------------------<br />
Prefix                  : /usr/local<br />
Platform                : Linux<br />
Shared library suffix   : .so<br />
IPv6 support            : YES<br />
MQTT support            : YES<br />
Build Server            : YES<br />
Server libs             :<br />
LDAP support            : NO<br />
XMPP support            : YES<br />
ZeroMQ support          : NO<br />
Encryption enabled      : YES<br />
SSH support enabled     : YES<br />
Build DB-Drivers        : mysql sqlite<br />
Build Clients           : NO<br />
Build Agent             : YES<br />
Agent libs              :<br />
Agent extra components  :<br />
Subagents list          : linux ds18x20 mysql netsvc ssh mqtt<br />
Systemd support         : NO<br />
Build Static Agent      : NO<br />
UNICODE build           : YES<br />
Use internal libexpat   : YES<br />
Use internal libtre     : YES<br />
Use internal libjansson : YES<br />
Use internal sqlite     : YES<br />
Use internal zlib       : NO<br />
Force 32bit build       : NO<br />
C compiler              : gcc<br />
C++ compiler            : g++<br />
C++ compiler info       : g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)<br />
CPPFLAGS                : -D_THREAD_SAFE -DTRE_WCHAR=1 -D_GNU_SOURCE -O2 -Wformat -Wno-unused-result -Wno-format-truncation -Werror=return-type -fvisibility=hidden -I/usr/local/include -DUNICODE -DPREFIX=L\"${prefix}\" -DDATADIR=L\"${pkgdatadir}\" -DBINDIR=L\"${bindir}\" -DLIBDIR=L\"${libdir}\" -DPKGLIBDIR=L\"${pkglibdir}\" -DSTATEDIR=L\"${localstatedir}/lib/netxms\" -DNDEBUG<br />
CXXFLAGS                : -g -O2 -std=c++11 -fno-rtti -fno-exceptions -fvisibility-inlines-hidden<br />
CFLAGS                  : -g -O2<br />
LDFLAGS                 : -L/usr/local/lib<br />
LIBS                    : -lz -lresolv -ldl  -lpthread -lssl -lcrypto<br />
Executable LDFLAGS      :<br />
Executable LIBS         :<br />
MySQL CPPFLAGS          : -I/usr/include/mysql<br />
MySQL LDFLAGS           : -L/usr/lib64/mysql<br />
MySQL LIBS              : -lmysqlclient</p>
]]></description><link>https://forum.netxms.org/topic/6024/make-keeps-failing-on-centos-7</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 18:15:00 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6024.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Jul 2019 04:18:50 GMT</pubDate><ttl>60</ttl></channel></rss>