I suppose you are building from source. Try to do make install again, but before remove directory /usr/local/lib/netxms (and preferably everything from /use/local/lib as well). Then start server under debugger as per this instruction: https://wiki.netxms.org/wiki/Running_NetXMS_under_debugger and post output here.
Best regards,
Victor
Best regards,
Victor