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. Unix static agent build fails

Unix static agent build fails

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 20.3k 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.
  • X
    X
    xatteg
    wrote on last edited by
    #1

    Hello Victor,

    I'm configuring netxms on CentOS 6.2 with following ./configure --with-agent-static. Configure script executes normally. But make produces error:

    ../../../tools/create_ssa_list.sh "linux ecs logwatch ping portcheck ups" > static_subagents.cpp
      CXX    static_subagents.o
      CXX    subagent.o
      CXX    sysinfo.o
      CXX    tools.o
      CXX    trap.o
      CXX    upgrade.o
      CXX    watchdog.o
    make[4]: *** No rule to make target `../../../src/db/libnxdb/libnxdb.la', needed by `nxagentd'.  Stop.
    make[4]: Leaving directory `/distr/netxms-1.2.1/src/agent/core'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/distr/netxms-1.2.1/src/agent'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/distr/netxms-1.2.1/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/distr/netxms-1.2.1'
    make: *** [all] Error 2
    [root@netxms netxms-1.2.1]#

    Can that be fixed?

    1 Reply Last reply
    0
    • X
      X
      xatteg
      wrote on last edited by
      #2

      There was the same error for 1.2.0 version according to forum. It persists in 1.2.1.  😞

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

        Hi!
        I finally managed to build a static 1.2.1 agent, I did something like this:

        $ ./configure --with-static-agent --with-all-static --with-static-subagents="" --with-internal-libexpat --with-internal-libtre --with-internal-zlib --prefix=/some/targetdir
        $ make

        Will complain, No target to build libnxdb exactly as you describe.
        Build this by hand:

        $ cd src/db/libnxdb/
        $ make

        Then try a build from source root again.
        I then run into trouble when making nxpush, but that may be distribution specific (old debian).
        Anyway, I disabled nxpush (don't need it)

        $ <your favorite editor> src/agent/tools/Makefile

        change
        SUBDIRS = nxapush

        to
        SUBDIRS =

        Then a make from source root dir should work.

        Good luck!

        1 Reply Last reply
        0
        • X
          X
          xatteg
          wrote on last edited by
          #4

          KjellO, this also worked for me!
          The trick is that all subsequent "makes" are successful, even if I make global "make clean" before configuring with different parameters.
          Thanks a lot!

          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