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. 0.2.15 - cannot run

0.2.15 - cannot run

Scheduled Pinned Locked Moved Support
5 Posts 3 Posters 33.7k 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.
  • F
    F
    franc
    wrote on last edited by
    #1

    Hello, I try to compile 0.2.15

    ./configure --with-server --with-pgsql --prefix=/usr/local
    make
    make install

    system: CentOS 4.4  2.6.9-42.0.3.ELsmp

    Configuration of source code and compilation is ok, but when I try to run nxdbmgr check i get initialization error from libnxddr_pgsql.so and in log I get: unknown symbol PQExec.
    When I run nxdbmgr from directory where source code is compiled - it run properly (I get message about difference of database version)
    Sounds like is a problem with linking libraries?

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

      Hello.

      Can you show  me the output of "ldd /usr/local/lib/libnxddr_pgsql.so"?

      1 Reply Last reply
      0
      • F
        F
        franc
        wrote on last edited by
        #3

        Sure 🙂
        BTW At home I have latests Debian Sarge. I try to compile 0.2.15 on it - but result is the same:

        ./configure --prefix=/opt/netxms --with-server --with-pgsql
        make
        make install

        (of course I add /opt/netxms/lib to /etc/ld.so.conf)

        neotek:/opt/netxms/bin# ldd /opt/netxms/lib/libnxddr_pgsql.so
                libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40010000)
                libnetxms.so.0 => /opt/netxms/lib/libnetxms.so.0 (0x40020000)
                libz.so.1 => /usr/lib/libz.so.1 (0x40032000)
                libdl.so.2 => /lib/tls/libdl.so.2 (0x40044000)
                libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7 (0x40047000)
                libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40146000)
                libm.so.6 => /lib/tls/libm.so.6 (0x40200000)
                libc.so.6 => /lib/tls/libc.so.6 (0x40223000)
                libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40358000)
                /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

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

          Hello!

          It's an error in configure script (reference to libpq missing in libnxddr_pgsql.so because of incorrect link options), I'll fix it in the next release. For now you can use the following workaround:

          In the file src/server/dbdrv/pgsql/Makefile find line starting with LDFLAGS = and append -lpq to it. You should get something like this:

          LDFLAGS =  -L/usr/local/lib -lpthread -lpq

          Then run make clean ; make ; make install in src/server/dbdrv/pgsql directory. This should create correct libnxddr_pgsql.so.

          Hope this helps!

          Best regards,
          Victor

          1 Reply Last reply
          0
          • F
            F
            franc
            wrote on last edited by
            #5

            works 🙂

            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