Centos 7 undefined reference to `SNMP_Variable::getValueAsMACAddr() const'
-
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-agentI have no problems in version 2.2.4.
thanks for your help.
-
Hi,
try to remove old NetXMS libraries from /usr/local/lib or run make install instead of make.
Best regards,
Victor -
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.0But 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.oriThe library has changed and no longer contains the variable SNMP_Variable::getValueAsMACAddr.
I think it's a bug. -
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 -
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