error when install netxms-3.8.314 from source on FreeBSD-13
-
1.Download archive
2.Unpack the archive:tar zxvf netxms-VERSION.tar.gz3.Change directory to netxms-VERSION and run configure script:
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
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 -
Just fixed it, commit 368c35ad0d in branch stable-3.8.
Best regards,
VictorP.S. Download link to new source package for convenience: https://cloud.radensolutions.com/s/JCLQKsm3c8YSYSJ
-
Thank you Viktor!
How to build netxms from stable branch?
I download https://github.com/netxms/netxms/archive/refs/heads/stable-3.8.zip
unzip it, try to configure./configure --with-agent --disable-mqttbut
./configure: Command not found. -
You have to create it by running reconf script if you clone GIT repository. Or just use source package that I've provided in the post.
Best regards,
Victor -
-
In this version (https://github.com/netxms/netxms/archive/refs/heads/stable-3.8.zip) I can not get statistics from network interfaces.
In raw value column values are present but in the value column they are always equal to zero.


-
It is delta value (average per second). As raw value does not change delta is always 0 - perhaps there is no traffic on interface?
Best regards,
Victor -
-
Then it's likely bug in agent. Try to read multiple values directly from agent with nxget:
nxget -i 1 node_ip 'Net.Interface.BytesIn64(1)'
nxget -i 1 node_ip 'Net.Interface.BytesIn(1)'and check if output looks valid or not (replace node_ip with actual IP address).
Best regards,
Victor -
-
It should be on NetXMS server.
Best regards,
Victor -
ок, this is the output from the netxms server:
netxms@????????:~$ sudo nxget -i 1 192.168.96.254 'Net.Interface.BytesIn64(1)' [sudo] password for netxms: 9221120237041090560 9221120237041090560 9221120237041090560 9221120237041090560 9221120237041090560 9221120237041090560 9221120237041090560 9221120237041090560 9221120237041090560 9221120237041090560 netxms@???????:~$ sudo nxget -i 1 192.168.96.254 'Net.Interface.BytesIn(1)' 0 0 0 0 0 0 0 0 0 -
Hi,
I just fixed it. Fix will be included into next release.
Best regards,
Victor -
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