net.cpp: 69 error conversion 'char*', 'RTF_WASCLONED', 'LONG H_NetRoutingTable'
-
Hi, all
I have try to install NetXMS 0.2.31 (the same with 0.2.24(26)) on FreeBSD 8.0 and received error of compilation. How can I fix this?#./configure --with-server --with-nxhttpd --with-mysql (successfull)
#
#make (aborted)
#
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -I/usr/local/include -D_THREAD_SAFE -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\" -g -O2 -fno-rtti -fno-exceptions -Wno-deprecated -MT net.lo -MD -MP -MF .deps/net.Tpo -c net.cpp -fPIC -DPIC -o .libs/net.o
net.cpp:69: warning: deprecated conversion from string constant to 'char*'
net.cpp: In function 'LONG H_NetRoutingTable(const char*, const char*, StringList*)':
net.cpp:339: error: 'RTF_WASCLONED' was not declared in this scope
*** Error code 1Stop in /tmp/netxms-0.2.31/src/agent/subagents/freebsd.
*** Error code 1Stop in /tmp/netxms-0.2.31/src/agent/subagents.
*** Error code 1Stop in /tmp/netxms-0.2.31/src/agent.
*** Error code 1Stop in /tmp/netxms-0.2.31/src.
*** Error code 1Stop in /tmp/netxms-0.2.31.
*** Error code 1Stop in /tmp/netxms-0.2.31.
-
Hello!
I've fixed this problem in next release. For building 0.2.31, replace line 339 in file net.cpp (it should looks like
if (rti_info[RTAX_DST] != NULL && !(rtm->rtm_flags & RTF_WASCLONED))) with
if (rti_info[RTAX_DST] != NULL)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