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. FreeBSD agent build ends in error

FreeBSD agent build ends in error

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 12.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.
  • ?
    ?
    possamai
    wrote on last edited by
    #1

    Hi,

    I'm trying to build netxms on freebsd but it ends in an error on a subagent...
    I'm hoping someone can give me a hint about how to get this running..
    it ends with "system.cpp:227: error: 'swap' was not declared in this scope

    I do have swap space though 🙂
    Is there a way I can tell what actually goes wrong? Can I help fix stuff?

    I'm running FreeBSD 7.2
    this is the end of the compile

    /bin/sh ../../../../libtool --tag=CXX    --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../include   -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -I/usr/local/include -D_THREAD_SAFE -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\"  -Wno-deprecated -MT freebsd.lo -MD -MP -MF .deps/freebsd.Tpo -c -o freebsd.lo freebsd.cpp
    libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -I/usr/local/include -D_THREAD_SAFE -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\" -Wno-deprecated -MT freebsd.lo -MD -MP -MF .deps/freebsd.Tpo -c freebsd.cpp  -fPIC -DPIC -o .libs/freebsd.o
    mv -f .deps/freebsd.Tpo .deps/freebsd.Plo
    /bin/sh ../../../../libtool --tag=CXX    --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../include   -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -I/usr/local/include -D_THREAD_SAFE -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\"  -Wno-deprecated -MT system.lo -MD -MP -MF .deps/system.Tpo -c -o system.lo system.cpp
    libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -I/usr/local/include -D_THREAD_SAFE -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\" -Wno-deprecated -MT system.lo -MD -MP -MF .deps/system.Tpo -c system.cpp  -fPIC -DPIC -o .libs/system.o
    system.cpp: In function 'LONG H_MemoryInfo(const char*, const char*, char*)':
    system.cpp:227: error: 'swap' was not declared in this scope
    *** Error code 1

    Stop in /usr/home/tnt/netxms/netxms-0.2.26/src/agent/subagents/freebsd.
    *** Error code 1

    Stop in /usr/home/tnt/netxms/netxms-0.2.26/src/agent/subagents.
    *** Error code 1

    Stop in /usr/home/tnt/netxms/netxms-0.2.26/src/agent.
    *** Error code 1

    Stop in /usr/home/tnt/netxms/netxms-0.2.26/src.
    *** Error code 1

    Stop in /usr/home/tnt/netxms/netxms-0.2.26.
    *** Error code 1

    Stop in /usr/home/tnt/netxms/netxms-0.2.26.

    1 Reply Last reply
    0
    • ?
      ?
      possamai
      wrote on last edited by
      #2

      little note..

      it only happens with --with-server and with --with-agent
      Apparently --with-server also builds the agent...
      All other stuff doesn't matter.

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

        Thanks for report, patch attached to this message.

        To apply:

        cd netxms-0.2.26/src/agent/subagents/freebsd
        patch -p0 < /some/where/system.diff
        
        1 Reply Last reply
        0
        • ?
          ?
          possamai
          wrote on last edited by
          #4

          hey it looks like it works 🙂
          If you could help me (and my lazy ass) with another thing...
          compared to version 0.2.24, did any files get added or deleted?

          The FreeBSD port is at version 0.2.24 now, and if the amount and names of files are still the same I'm going to commit the update to 0.2.26

          if not, I have to make a list of files and directories 🙂
          (So I'm hoping for no changes :P)

          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