netinfo.cpp:326: error: invalid conversion from

Started by amyslee, January 06, 2010, 09:19:22 AM

Previous topic - Next topic

amyslee

hi,
I have a make error on Fedora 12. my version is netxms-0.2.31.

# ./configure --with-server --with-mysql --with-agent
#make
...
netinfo.cpp: In function 'ARP_CACHE* SysGetLocalArpCache()':
netinfo.cpp:214: error: invalid conversion from 'const char*' to 'char*'
netinfo.cpp: In function 'INTERFACE_LIST* SysGetLocalIfList()':
netinfo.cpp:326: error: invalid conversion from 'const char*' to 'char*'
netinfo.cpp:335: error: invalid conversion from 'const char*' to 'char*'
netinfo.cpp:342: error: invalid conversion from 'const char*' to 'char*'
netinfo.cpp:359: error: invalid conversion from 'const char*' to 'char*'
netinfo.cpp:368: error: invalid conversion from 'const char*' to 'char*'
make[4]: *** [netinfo.lo] Error 1
make[4]: Leaving directory `/root/netxms-0.2.31/src/server/core'
make[3]: *** [all-recursive] Error 1
...

How can I fix this?

Thanks,



amyslee

#1
attached is my config.log file

p.s.
I am using gcc (GCC) 4.4.2 20091222 (Red Hat 4.4.2-20)

Victor Kirhenshtein

Try to replace netinfo.cpp with attached one.

Best regards,
Victor

amyslee