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 during install agent

error during install agent

Scheduled Pinned Locked Moved Support
6 Posts 3 Posters 47.9k 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.
  • T
    T
    tianhao
    wrote on last edited by
    #1

    hi,
    i met an error while running make. here is what i got

    Making all in core
    make[4]: Entering directory `/tmp/netxms-1.2.9/src/agent/core'
    ../../../tools/create_ssa_list.sh "" > static_subagents.cpp
      CXX    static_subagents.o
      CXXLD  nxagentd
    session.o: In function `InterlockedDecrement':
    /tmp/netxms-1.2.9/src/agent/core/../../../include/nms_threads.h:1032: undefined reference to `__sync_sub_and_fetch_4'
    /tmp/netxms-1.2.9/src/agent/core/../../../include/nms_threads.h:1032: undefined reference to `__sync_sub_and_fetch_4'
    /tmp/netxms-1.2.9/src/agent/core/../../../include/nms_threads.h:1032: undefined reference to `__sync_sub_and_fetch_4'
    collect2: ld returned 1 exit status
    make[4]: *** [nxagentd] Error 1
    make[4]: Leaving directory `/tmp/netxms-1.2.9/src/agent/core'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/tmp/netxms-1.2.9/src/agent'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/tmp/netxms-1.2.9/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/tmp/netxms-1.2.9'
    make: *** [all] Error 2

    BTW, i've update g++ to latest version. Thanks!

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2

      What OS do you use?

      1 Reply Last reply
      0
      • T
        T
        tianhao
        wrote on last edited by
        #3

        it's xenserver release 6.0.2-53456p

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

          Seems that atomic functions are missing on XEN server for some reason. What is output of your gcc -v?

          Also, you can try to run pre-compiled static agent: https://www.netxms.org/download/agent_packages/nxagent-1.2.9-linux-x86-static.tar.gz - there are good chances that it will work.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • T
            T
            tianhao
            wrote on last edited by
            #5

            hi, victor

            the output of gcc -v is

            Using built-in specs.
            Target: i386-redhat-linux
            Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
            Thread model: posix
            gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)

            I tried the pre-compiled agent, seems that libssl.so.0.9.8 is missing.
            ./nxagentd: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory

            Since i'm a rookie, any help would be appreciated, thanks!

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

              Hi!

              Looks like gcc on your system configured to use i386 instruction set by default (see line "Target: i386-redhat-linux" in gcc version output). Atomic functions required at least i486. Try to use compilation flag -march=i486 when building agent, like this:

              CPPFLAGS="-march=i486" ./configure other configure options as usual

              Best regards,
              Victor

              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