Trying to build from source fails with the following
OS: Debian Buster
here is my config ./configure --with-server --with-client --with-snmp --with-pgsql --with-agent --with-client-proxy --with-vmgr
Making all in nxcproxy
make[3]: Entering directory '/home/gmonk/netxms-4.1.333/src/nxcproxy'
/usr/bin/perl ../../tools/mc.pl messages.mc
CXX nxcproxy-listener.o
CXX nxcproxy-nxcproxy.o
nxcproxy.cpp: In function 'int main(int, char**)':
nxcproxy.cpp:372:25: error: 'CP_ACP' was not declared in this scope
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, optarg, -1, g_configFile, MAX_PATH);
^~~~~~
nxcproxy.cpp:372:25: note: suggested alternative: 'P_ALL'
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, optarg, -1, g_configFile, MAX_PATH);
^~~~~~
P_ALL
nxcproxy.cpp:372:33: error: 'MB_PRECOMPOSED' was not declared in this scope
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, optarg, -1, g_configFile, MAX_PATH);
^~~~~~~~~~~~~~
nxcproxy.cpp:372:33: note: suggested alternative: 'MSGRECV_CLOSED'
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, optarg, -1, g_configFile, MAX_PATH);
^~~~~~~~~~~~~~
MSGRECV_CLOSED
nxcproxy.cpp:372:5: error: 'MultiByteToWideChar' was not declared in this scope
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, optarg, -1, g_configFile, MAX_PATH);
^~~~~~~~~~~~~~~~~~~
nxcproxy.cpp:372:5: note: suggested alternative: 'MultiByteToWideCharSysLocale'
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, optarg, -1, g_configFile, MAX_PATH);
^~~~~~~~~~~~~~~~~~~
MultiByteToWideCharSysLocale
make[3]: *** [Makefile:627: nxcproxy-nxcproxy.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/gmonk/netxms-4.1.333/src/nxcproxy'
make[2]: *** [Makefile:467: all-recursive] Error 1
make[2]: Leaving directory '/home/gmonk/netxms-4.1.333/src'
make[1]: *** [Makefile:520: all-recursive] Error 1
make[1]: Leaving directory '/home/gmonk/netxms-4.1.333'
make: *** [Makefile:452: all] Error 2
OS: Debian Buster
here is my config ./configure --with-server --with-client --with-snmp --with-pgsql --with-agent --with-client-proxy --with-vmgr
Making all in nxcproxy
make[3]: Entering directory '/home/gmonk/netxms-4.1.333/src/nxcproxy'
/usr/bin/perl ../../tools/mc.pl messages.mc
CXX nxcproxy-listener.o
CXX nxcproxy-nxcproxy.o
nxcproxy.cpp: In function 'int main(int, char**)':
nxcproxy.cpp:372:25: error: 'CP_ACP' was not declared in this scope
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, optarg, -1, g_configFile, MAX_PATH);
^~~~~~
nxcproxy.cpp:372:25: note: suggested alternative: 'P_ALL'
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, optarg, -1, g_configFile, MAX_PATH);
^~~~~~
P_ALL
nxcproxy.cpp:372:33: error: 'MB_PRECOMPOSED' was not declared in this scope
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, optarg, -1, g_configFile, MAX_PATH);
^~~~~~~~~~~~~~
nxcproxy.cpp:372:33: note: suggested alternative: 'MSGRECV_CLOSED'
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, optarg, -1, g_configFile, MAX_PATH);
^~~~~~~~~~~~~~
MSGRECV_CLOSED
nxcproxy.cpp:372:5: error: 'MultiByteToWideChar' was not declared in this scope
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, optarg, -1, g_configFile, MAX_PATH);
^~~~~~~~~~~~~~~~~~~
nxcproxy.cpp:372:5: note: suggested alternative: 'MultiByteToWideCharSysLocale'
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, optarg, -1, g_configFile, MAX_PATH);
^~~~~~~~~~~~~~~~~~~
MultiByteToWideCharSysLocale
make[3]: *** [Makefile:627: nxcproxy-nxcproxy.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/gmonk/netxms-4.1.333/src/nxcproxy'
make[2]: *** [Makefile:467: all-recursive] Error 1
make[2]: Leaving directory '/home/gmonk/netxms-4.1.333/src'
make[1]: *** [Makefile:520: all-recursive] Error 1
make[1]: Leaving directory '/home/gmonk/netxms-4.1.333'
make: *** [Makefile:452: all] Error 2