Netxms Agent Debian Stretch Undefined Symbol

Started by Michal Hanajik, January 06, 2018, 10:24:17 PM

Previous topic - Next topic

Michal Hanajik

Hello,

I today was trying to install netxms-agent on Debian Strech, which was successful, but after installation - process of starting service failed on

nxagentd[7708]: /usr/bin/nxagentd: symbol lookup error: /usr/bin/nxagentd: undefined symbol: _ZN...nsportEv

which is happening after purging, readding netxms.

Any advice?

Thank you :)

Alex Kirhenshtein

Can you show output of "ldd /usr/bin/nxagend", please?

Michal Hanajik

yes,

sorry for late reply :(

sudo ldd /usr/bin/nxagentd
        linux-vdso.so.1 (0x00007ffff21d9000)
        libappagent.so.2 => /usr/local/lib/libappagent.so.2 (0x00007f218d4e4000)
        libnxagent.so.2 => /usr/local/lib/libnxagent.so.2 (0x00007f218d2dd000)
        libnxdb.so.2 => /usr/local/lib/libnxdb.so.2 (0x00007f218d0cd000)
        libnetxms.so.2 => /usr/local/lib/libnetxms.so.2 (0x00007f218ce44000)
        libnxsnmp.so.2 => /usr/local/lib/libnxsnmp.so.2 (0x00007f218cc2f000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f218ca03000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f218c7e9000)
        libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f218c5d2000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f218c3ce000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f218c1b1000)
        libssl.so.1.0.2 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 (0x00007f218bf48000)
        libcrypto.so.1.0.2 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 (0x00007f218bae2000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f218b760000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f218b45c000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f218b245000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f218aea6000)
        libnxexpat.so.2 => /usr/local/lib/libnxexpat.so.2 (0x00007f218ac82000)
        libnxtre.so.5 => /usr/local/lib/libnxtre.so.5 (0x00007f218aa70000)
        libnxjansson.so.4 => /usr/local/lib/libnxjansson.so.4 (0x00007f218a864000)
        /lib64/ld-linux-x86-64.so.2 (0x000055aabb747000)

Alex Kirhenshtein

You have leftover libraries in /usr/local/lib which clash with package libs in /usr/lib/x86_64-linux-gnu/

Cleanup /usr/local/lib and issue should be resolved .

Michal Hanajik

#4
Thank worked...

Just to be clear, I run command sudo find /usr/local/lib -name "*ne*" -exec rm rf {} \; && sudo find /usr/local/lib -name "*nx*" -exec rm rf {} \; ...

Don't do that without checking what you delete :)

Thanks for pointing out by Victor Kirhenshtein

Victor Kirhenshtein

Hi,

most of libraries have prefix nx (like libnxagent), so searching only for "ne" may not be enough. I suggest to check with ldd that agent didn't pickup any "nx" prefixed library from /usr/local/lib.

Best regards,
Victor