NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: netinfo.cpp:326: error: invalid conversion from  (Read 3260 times)

amyslee

  • Newbie
  • *
  • Posts: 3
    • View Profile
netinfo.cpp:326: error: invalid conversion from
« on: January 06, 2010, 09:19:22 am »

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,


Logged

amyslee

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: netinfo.cpp:326: error: invalid conversion from
« Reply #1 on: January 06, 2010, 10:52:13 am »

attached is my config.log file

p.s.
I am using gcc (GCC) 4.4.2 20091222 (Red Hat 4.4.2-20)
« Last Edit: January 06, 2010, 10:59:56 am by amyslee »
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6584
    • View Profile
Re: netinfo.cpp:326: error: invalid conversion from
« Reply #2 on: January 07, 2010, 01:20:33 pm »

Try to replace netinfo.cpp with attached one.

Best regards,
Victor
Logged

amyslee

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: netinfo.cpp:326: error: invalid conversion from
« Reply #3 on: January 08, 2010, 04:29:11 am »

COOL, IT WORKS NOW.
THANK YOU!! :D
Logged