net.cpp: 69 error conversion 'char*', 'RTF_WASCLONED', 'LONG H_NetRoutingTable'

Started by u-men, January 13, 2010, 11:19:27 AM

Previous topic - Next topic

u-men

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 1

Stop in /tmp/netxms-0.2.31/src/agent/subagents/freebsd.
*** Error code 1

Stop in /tmp/netxms-0.2.31/src/agent/subagents.
*** Error code 1

Stop in /tmp/netxms-0.2.31/src/agent.
*** Error code 1

Stop in /tmp/netxms-0.2.31/src.
*** Error code 1

Stop in /tmp/netxms-0.2.31.
*** Error code 1

Stop in /tmp/netxms-0.2.31.


Victor Kirhenshtein

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