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. Centos 7 undefined reference to `SNMP_Variable::getValueAsMACAddr() const'

Centos 7 undefined reference to `SNMP_Variable::getValueAsMACAddr() const'

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 20.2k 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.
  • B
    B
    BigBlue
    wrote on last edited by
    #1

    Hi,

    I have an during make process in a centos 7:
    "
    make[5] : on quitte le répertoire « /root/NetXMS/netxms-2.2.5/src/server/tools/nxdbmgr »
    Making all in nxminfo
    make[5] : on entre dans le répertoire « /root/NetXMS/netxms-2.2.5/src/server/tools/nxminfo »
      CXX      nxminfo-nxminfo.o
      CXXLD    nxminfo
    ../../libnxsrv/.libs/libnxsrv.so: undefined reference to `SNMP_Variable::getValueAsMACAddr() const'
    collect2: error: ld returned 1 exit status
    make[5]: *** [nxminfo] Erreur 1
    make[5] : on quitte le répertoire « /root/NetXMS/netxms-2.2.5/src/server/tools/nxminfo »
    make[4]: *** [all-recursive] Erreur 1
    make[4] : on quitte le répertoire « /root/NetXMS/netxms-2.2.5/src/server/tools »
    make[3]: *** [all-recursive] Erreur 1
    make[3] : on quitte le répertoire « /root/NetXMS/netxms-2.2.5/src/server »
    make[2]: *** [all-recursive] Erreur 1
    make[2] : on quitte le répertoire « /root/NetXMS/netxms-2.2.5/src »
    make[1]: *** [all-recursive] Erreur 1
    make[1] : on quitte le répertoire « /root/NetXMS/netxms-2.2.5 »
    make: *** [all] Erreur 2
    "

    with the following configuration options:
    ./configure --with-server --with-mysql --with-agent

    I have no problems in version 2.2.4.

    thanks for your help.

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

      Hi,

      try to remove old NetXMS libraries from /usr/local/lib or run make install instead of make.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • B
        B
        BigBlue
        wrote on last edited by
        #3

        By copying the 2.2.4 library into 2.2.5, the "make" works.
         cp /usr/local/lib/libnxsrv.so.2.0.0 ./netxms-2.2.5/src/server/libnxsrv/.libs/libnxsrv.so.2.0.0

        But it's probably not a good idea, because this library with the same version number, is bigger:
        rwxr-xr-x 1 root root 728664 May 16 11:02 /root/NetXMS/netxms-2.2.5/src/server/libnxsrv/.libs/libnxsrv.so.2.0.0
        rwxr-xr-x 1 root root 766072 May 16 10:54 /root/NetXMS/netxms-2.2.5/src/server/libnxsrv/.libs/libnxsrv.so.2.0.0.ori

        The library has changed and no longer contains the variable SNMP_Variable::getValueAsMACAddr.
        I think it's a bug.

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

          You should not copy old libraries into source tree - that way you will get new binaries mixed with old binaries. Just remove old libraries from /usr/local/lib and re-run make (I would suggest to do make clean first to cleanup source tree).

          Best regards,
          Victor

          1 Reply Last reply
          0
          • B
            B
            BigBlue
            wrote on last edited by
            #5

            Ok, it works.... But it doesn't seem very normal to me.

            When will a centos repository !?

            Anyway, thanks for the help !

            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