Netxms Agent Debian Stretch Undefined Symbol
-
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…nsportEvwhich is happening after purging, readding netxms.
Any advice?
Thank you

-
Can you show output of "ldd /usr/bin/nxagend", please?
-
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) -
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 .
-
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
-
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
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