1.Download archive
2.Unpack the archive:
3.Change directory to netxms-VERSION and run configure script:
4.Run build binaries and install them into /usr/local
2.Unpack the archive:
Code Select
tar zxvf netxms-VERSION.tar.gz
3.Change directory to netxms-VERSION and run configure script:
Code Select
cd netxms-VERSION
./configure --with-agent --disable-mqtt
---------------------------------------------------------------------
Configure results
---------------------------------------------------------------------
Version : 3.8.314
Prefix : /usr/local
Platform : FreeBSD
Shared library suffix : .so
Shared library version : 38
IPv6 support : YES
MQTT support : NO
Build Server : NO
Python support : NO
Encryption enabled : YES
SSH support enabled : YES
Build DB-Drivers : sqlite
Build Clients : NO
Build Agent : YES
Agent libs :
Agent extra components :
Subagents list :freebsd netsvc ssh
Systemd support : YES
SD-Bus support : NO
Build Static Agent : NO
UNICODE build : YES
Use internal libexpat : NO
Use internal libjansson : YES
Use internal sqlite : NO
Use internal zlib : NO
Force 32bit build : NO
C compiler : cc
C++ compiler : c++
C++ compiler info : FreeBSD clang version 11.0.1 ([email protected]:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
CPPFLAGS : -D_THREAD_SAFE -Wformat -Wno-unused-result -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\" -DSYSCONFDIR=L\"${sysconfdir}\" -DNETXMS_PACKAGE_VERSION=L\"3.8.314\" -DNDEBUG
CXXFLAGS : -g -O2 -std=c++11 -fno-rtti -fno-exceptions -fvisibility-inlines-hidden
CFLAGS : -g -O2
LDFLAGS : -L/usr/local/lib -Wc,-Qunused-arguments
LIBS : -lkvm -lexpat -lz -ldl -lxnet -pthread -lssl -lcrypto -lcurl -liconv -lpcre -lpcre32
Executable LDFLAGS :
Executable LIBS :
4.Run build binaries and install them into /usr/local
Code Select
netxms-3.8.314 # make
make all-recursive
Making all in .
Making all in m4
Making all in build
./updatetag.pl
Cannot read git tag
make all-am
./updatetag.pl
Cannot read git tag
Making all in src
Making all in jansson
CC libnxjansson_la-dump.lo
CC libnxjansson_la-error.lo
CC libnxjansson_la-hashtable.lo
CC libnxjansson_la-hashtable_seed.lo
CC libnxjansson_la-load.lo
CC libnxjansson_la-memory.lo
CC libnxjansson_la-pack_unpack.lo
CC libnxjansson_la-strbuffer.lo
CC libnxjansson_la-strconv.lo
CC libnxjansson_la-utf.lo
CC libnxjansson_la-value.lo
CCLD libnxjansson.la
Making all in libnetxms
CXX libnetxms_la-array.lo
In file included from array.cpp:24:
In file included from ./libnetxms.h:28:
../../include/nms_util.h:3859:27: error: functions that differ only in their return type cannot be overloaded
void LIBNETXMS_EXPORTABLE qsort_s(void *base, size_t nmemb, size_t size, int (*compare)(void *, const void *, const void *), void *context);
~~~~ ^
/usr/include/stdlib.h:359:10: note: previous declaration is here
errno_t qsort_s(void *, rsize_t, rsize_t,
~~~~~~~ ^
array.cpp:374:4: error: no matching function for call to 'qsort_s'
qsort_s(m_data, m_size, m_elementSize, cb, context);
^~~~~~~
/usr/include/stdlib.h:359:10: note: candidate function not viable: no known conversion from 'int (*)(void *, const void *, const void *)' to 'int (*)(const void *, const void *, void *)' for 4th argument
errno_t qsort_s(void *, rsize_t, rsize_t,
^
2 errors generated.
*** Error code 1
Stop.
make[3]: stopped in /usr/home/kaan/netxms-3.8.314/src/libnetxms
*** Error code 1
Stop.
make[2]: stopped in /usr/home/kaan/netxms-3.8.314/src
*** Error code 1