Не собирается под Ubuntu server
-
Не собирается на ubuntu-server
root@ubuntu-server:~/netxms-0.2.31# uname -a Linux ubuntu-server 2.6.31-14-generic-pae #48-Ubuntu SMP Fri Oct 16 15:22:42 UTC 2009 i686 GNU/Linux ./configure --with-server --with-mysql --with-agent --with-nxhttpd make .... Making all in core make[4]: Entering directory `/root/netxms-0.2.31/src/server/core' /bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../src/server/include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -D_GNU_SOURCE -I/usr/local/include -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\" -g -O2 -fno-rtti -fno-exceptions -Wno-deprecated -MT netinfo.lo -MD -MP -MF .deps/netinfo.Tpo -c -o netinfo.lo netinfo.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../src/server/include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -D_GNU_SOURCE -I/usr/local/include -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\" -g -O2 -fno-rtti -fno-exceptions -Wno-deprecated -MT netinfo.lo -MD -MP -MF .deps/netinfo.Tpo -c netinfo.cpp -fPIC -DPIC -o .libs/netinfo.o In file included from ../../../src/server/include/nxsrvapi.h:42, from ../../../src/server/include/nms_core.h:71, from nxcore.h:27, from netinfo.cpp:23: ../../../include/nms_agent.h: In function 'void ret_int(char*, LONG)': ../../../include/nms_agent.h:360: warning: format '%d' expects type 'int', but argument 4 has type 'LONG' ../../../include/nms_agent.h:360: warning: format '%d' expects type 'int', but argument 4 has type 'LONG' ../../../include/nms_agent.h: In function 'void ret_uint(char*, DWORD)': ../../../include/nms_agent.h:365: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'DWORD' ../../../include/nms_agent.h:365: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'DWORD' netinfo.cpp: In function 'void StrToMac(char*, BYTE*)': netinfo.cpp:122: warning: format '%x' expects type 'unsigned int*', but argument 3 has type 'DWORD*' netinfo.cpp:122: warning: format '%x' expects type 'unsigned int*', but argument 4 has type 'DWORD*' netinfo.cpp:122: warning: format '%x' expects type 'unsigned int*', but argument 5 has type 'DWORD*' netinfo.cpp:122: warning: format '%x' expects type 'unsigned int*', but argument 6 has type 'DWORD*' netinfo.cpp:122: warning: format '%x' expects type 'unsigned int*', but argument 7 has type 'DWORD*' netinfo.cpp:122: warning: format '%x' expects type 'unsigned int*', but argument 8 has type 'DWORD*' 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 make[3]: Leaving directory `/root/netxms-0.2.31/src/server' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/netxms-0.2.31/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/netxms-0.2.31' make: *** [all] Error 2 -
-
не помогло

make[4]: Entering directory `/root/netxms-0.2.27/src/server/core' /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../src/server/include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -D_GNU_SOURCE -I/usr/local/include -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\" -g -O2 -fno-rtti -fno-exceptions -fno-const-strings -Wno-deprecated -MT netinfo.lo -MD -MP -MF .deps/netinfo.Tpo -c -o netinfo.lo netinfo.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../src/server/include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -D_GNU_SOURCE -I/usr/local/include -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\" -g -O2 -fno-rtti -fno-exceptions -fno-const-strings -Wno-deprecated -MT netinfo.lo -MD -MP -MF .deps/netinfo.Tpo -c netinfo.cpp -fPIC -DPIC -o .libs/netinfo.o netinfo.cpp:49: error: 'StringList' was not declared in this scope netinfo.cpp:49: error: expected primary-expression before ')' token netinfo.cpp:49: error: expected ',' or ';' before '=' token netinfo.cpp:50: error: 'StringList' was not declared in this scope netinfo.cpp:50: error: expected primary-expression before ')' token netinfo.cpp:50: error: expected ',' or ';' before '=' token netinfo.cpp: In function 'void InitLocalNetInfo()': netinfo.cpp:86: error: expected primary-expression before '(' token netinfo.cpp:86: error: expected primary-expression before ')' token netinfo.cpp:86: error: 'StringList' was not declared in this scope netinfo.cpp:86: error: expected primary-expression before ')' token netinfo.cpp:86: error: expected `;' before 'DLGetSymbolAddr' netinfo.cpp:87: error: expected primary-expression before '(' token netinfo.cpp:87: error: expected primary-expression before ')' token netinfo.cpp:87: error: expected primary-expression before ')' token netinfo.cpp:87: error: expected `;' before 'DLGetSymbolAddr' netinfo.cpp: In function 'ARP_CACHE* SysGetLocalArpCache()': netinfo.cpp:180: error: 'StringList' was not declared in this scope netinfo.cpp:180: error: expected `;' before 'list' netinfo.cpp:182: error: 'list' was not declared in this scope netinfo.cpp:182: error: 'imp_NxSubAgentGetArpCache' cannot be used as a function netinfo.cpp: In function 'INTERFACE_LIST* SysGetLocalIfList()': netinfo.cpp:317: error: 'StringList' was not declared in this scope netinfo.cpp:317: error: expected `;' before 'list' netinfo.cpp:318: error: 'list' was not declared in this scope netinfo.cpp:318: error: 'imp_NxSubAgentGetIfList' cannot be used as a function make[4]: *** [netinfo.lo] Error 1 make[4]: Leaving directory `/root/netxms-0.2.27/src/server/core' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/root/netxms-0.2.27/src/server' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/netxms-0.2.27/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/netxms-0.2.27' make: *** [all] Error 2на всякий случай, прикладываю вывод ./configure и make
-
A pochemu v pervom sluchae bil katalog netxms-0.2.31, a vo vtorom - netxms-0.2.27? Ja patch delal dlja versii 0.2.31.
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