4.1.333 Build from source fails
-
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-vmgrMaking 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 -
Hi,
looks like nobody checked that client proxy actually compiles. Do you really use it? If not, just remove --with-client-proxy from configure (we will fix compilation anyway though).
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login