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. Development
  3. Troubles Compiling 2.1RC1 on CentOS7

Troubles Compiling 2.1RC1 on CentOS7

Scheduled Pinned Locked Moved Development
3 Posts 2 Posters 14.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.
  • R
    R
    rgimbel
    wrote on last edited by
    #1

    Hello all-

    I was able to compile netxms-2.0.8 on centos7 without difficulty after installing the proper libraries.  I decided that I would take a look at the 2.1RC1 candidate and following the same build process during the make process it through the following error

    Making all in nxminfo
    make[5]: Entering directory `/root/src/netxms-2.1-RC1/src/server/tools/nxminfo'
      CXXLD    nxminfo
    ../../libnxsrv/.libs/libnxsrv.so: undefined reference to `SNMP_Variable::getValueAsString(wchar_t*, unsigned long) const'
    ../../libnxsrv/.libs/libnxsrv.so: undefined reference to `SNMP_Variable::getRawValue(unsigned char*, unsigned long) const'
    ../../libnxsrv/.libs/libnxsrv.so: undefined reference to `SNMP_Variable::getValueAsObjectId() const'
    ../../libnxsrv/.libs/libnxsrv.so: undefined reference to `SnmpWalk(SNMP_Transport*, wchar_t const*, unsigned int (*)(SNMP_Variable*, SNMP_Transport*, void*), void*, bool)'
    ../../libnxsrv/.libs/libnxsrv.so: undefined reference to `SNMP_Variable::getValueAsInt() const'
    ../../libnxsrv/.libs/libnxsrv.so: undefined reference to `SNMP_Variable::getValueAsUInt() const'
    ../../libnxsrv/.libs/libnxsrv.so: undefined reference to `SNMPConvertOIDToText(unsigned long, unsigned int const*, wchar_t*, unsigned long)'
    ../../libnxsrv/.libs/libnxsrv.so: undefined reference to `SnmpGetEx(SNMP_Transport*, wchar_t const*, unsigned int const*, unsigned long, void*, unsigned long, unsigned int, unsigned int*)'
    ../../libnxsrv/.libs/libnxsrv.so: undefined reference to `SnmpGet(int, SNMP_Transport*, wchar_t const*, unsigned int const*, unsigned long, void*, unsigned long, unsigned int)'
    ../../libnxsrv/.libs/libnxsrv.so: undefined reference to `SNMP_Variable::SNMP_Variable(unsigned int const*, unsigned long)'
    collect2: error: ld returned 1 exit status
    make[5]: *** [nxminfo] Error 1
    make[5]: Leaving directory `/root/src/netxms-2.1-RC1/src/server/tools/nxminfo'
    make[4]: *** [all-recursive] Error 1
    make[4]: Leaving directory `/root/src/netxms-2.1-RC1/src/server/tools'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/root/src/netxms-2.1-RC1/src/server'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/root/src/netxms-2.1-RC1/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/root/src/netxms-2.1-RC1'
    make: *** [all] Error 2
    

    I created my make file by ./configure --with-server --with-mysql --with-agent  and it completed without error.

    Looking for any solutions.. I am kinda thinking that I need to uninstall 2.0.8 thinking that it might somehow be pulling a library from the other build, but thought I would see if anyone else has run into this during their build.

    Thanks in advance.

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

      Hi,

      this could be caused by older version of libraries already installed. Try to remove old NetXMS libraries (probably under /usr/local/lib).

      Best regards,
      Victor

      1 Reply Last reply
      0
      • R
        R
        rgimbel
        wrote on last edited by
        #3

        Thank you Victor!

        I renamed that lib directory and it did in fact compile, it through a few errors compiling but was able to compile and install.

        The DB upgrade did not go so smooth, but looking into that one.

        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