Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. error when install netxms-3.8.314 from source on FreeBSD-13

error when install netxms-3.8.314 from source on FreeBSD-13

Scheduled Pinned Locked Moved Support
14 Posts 2 Posters 15.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    K
    kaan
    wrote on last edited by
    #1

    1.Download archive
    2.Unpack the archive:

    tar zxvf netxms-VERSION.tar.gz
    

    3.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
    
    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Just fixed it, commit 368c35ad0d in branch stable-3.8.

      Best regards,
      Victor

      P.S. Download link to new source package for convenience: https://cloud.radensolutions.com/s/JCLQKsm3c8YSYSJ

      1 Reply Last reply
      0
      • K
        K
        kaan
        wrote on last edited by
        #3

        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-mqtt
        

        but

        ./configure: Command not found.
        
        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • K
            K
            kaan
            wrote on last edited by
            #5

            Thank you Viktor, everything works!

            1 Reply Last reply
            0
            • K
              K
              kaan
              wrote on last edited by
              #6

              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.


              netxms-1.jpg

              netxms-2.jpg

              1 Reply Last reply
              0
              • V
                V
                Victor Kirhenshtein
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                • K
                  K
                  kaan
                  wrote on last edited by
                  #8

                  yes, there is traffic on the interface, here are the statistics from the iftop utility:


                  netxms-3.jpg

                  1 Reply Last reply
                  0
                  • V
                    V
                    Victor Kirhenshtein
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    • K
                      K
                      kaan
                      wrote on last edited by
                      #10

                      I do not have a nxget utility in the system.
                      That's all I have:

                      >nx [tab]
                      nxaevent     nxapush      nxencpasswd  nxhwid       nxsnmpget
                      nxagentd     nxcsum       nxethernetip nxlptest     nxsnmpset
                      nxappget     nxdevcfg     nxgenguid    nxmibc       nxsnmpwalk
                      
                      1 Reply Last reply
                      0
                      • V
                        V
                        Victor Kirhenshtein
                        wrote on last edited by
                        #11

                        It should be on NetXMS server.

                        Best regards,
                        Victor

                        1 Reply Last reply
                        0
                        • K
                          K
                          kaan
                          wrote on last edited by
                          #12

                          ок, 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
                          
                          1 Reply Last reply
                          0
                          • V
                            V
                            Victor Kirhenshtein
                            wrote on last edited by
                            #13

                            Hi,

                            I just fixed it. Fix will be included into next release.

                            Best regards,
                            Victor

                            1 Reply Last reply
                            0
                            • K
                              K
                              kaan
                              wrote on last edited by
                              #14

                              All good, thank you!

                              1 Reply Last reply
                              0

                              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
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              Powered by NodeBB Contributors
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups