make error, PXConfigLoader.cc
Brought to you by:
mbuna
Twisting my head around this, got some error earlier ,however fixed them with just adding #include <string.h>.
However this problem I can't seem to find an fix for.
g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -I../include -g -O2 -I/usr/local/include -I/usr/local/include/libxml2 -I../../libopas -I../../ipcache -c -o PXConfigLoader.o `test -f 'PXConfigLoader.cc' || echo './'`PXConfigLoader.cc
PXConfigLoader.cc: In static member function ‘static bool PXConfigLoader::StringToNetworkNetmask(const char*, in_addr&, in_addr&)’:
PXConfigLoader.cc:94: error: invalid conversion from ‘const char*’ to ‘char*’
make[3]: *** [PXConfigLoader.o] Error 1
To fix this you have to change from old code: if ((p = strchr(str, '/')) == NULL)
to new code: if ((p = (char*)strchr(str, '/')) == NULL)