Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2.01k stars 576 forks source link

[dev.icinga.com #3053] icinga - missing source file(s) - jsonrpcendpoint.cpp and virtualendpoint.cpp #264

Closed icinga-migration closed 12 years ago

icinga-migration commented 12 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/3053

Created by Anonymous on 2012-09-03 18:02:48 +00:00

Assignee: (none) Status: Resolved (closed on 2012-09-07 09:47:05 +00:00) Target Version: (none) Last Update: 2013-09-23 15:23:38 +00:00 (in Redmine)


Git revision "eba470db3e3dceeadb5fd9f8bd9ccabf7a5fe96d" (latest atm) does not compile in Visual Studio 2012. See point 6 in the list for a complete error message.

Error:

6>c1xx : fatal error C1083: Cannot open source file: 'jsonrpcendpoint.cpp': No such file or directory

This was when running a complete code analysis, I also suspect that the file named 'virtualendpoint.cpp' is also missing as the same revision gave that error earlier on a clean build.

1>------ Rebuild All started: Project: cJSON, Configuration: Debug Win32 ------
1>  cJSON.c
1>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\third-party\cjson\cjson.c(126): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdio.h(357) : see declaration of 'sprintf'
1>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\third-party\cjson\cjson.c(133): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdio.h(357) : see declaration of 'sprintf'
1>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\third-party\cjson\cjson.c(134): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdio.h(357) : see declaration of 'sprintf'
1>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\third-party\cjson\cjson.c(167): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdio.h(311) : see declaration of 'sscanf'
1>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\third-party\cjson\cjson.c(174): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdio.h(311) : see declaration of 'sscanf'
1>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\third-party\cjson\cjson.c(229): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdio.h(357) : see declaration of 'sprintf'
1>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\third-party\cjson\cjson.c(368): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\string.h(110) : see declaration of 'strcpy'
1>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\third-party\cjson\cjson.c(457): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\string.h(110) : see declaration of 'strcpy'
1>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\third-party\cjson\cjson.c(459): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\string.h(110) : see declaration of 'strcpy'
1>  cJSON.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\cJSON.lib
2>------ Rebuild All started: Project: mmatch, Configuration: Debug Win32 ------
2>  mmatch.c
2>  mmatch.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\mmatch.lib
3>------ Rebuild All started: Project: base, Configuration: Debug Win32 ------
3>  i2-base.cpp
3>  application.cpp
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\base\application.cpp(110): warning C4244: 'argument' : conversion from 'double' to 'int64_t', possible loss of data
3>  component.cpp
3>  dynamicobject.cpp
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\base\dynamicobject.cpp(112): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\base\dynamicobject.cpp(431): warning C4244: 'argument' : conversion from 'std::streamsize' to 'size_t', possible loss of data
3>  dictionary.cpp
3>  event.cpp
3>  exception.cpp
3>  fifo.cpp
3>  logger.cpp
3>  netstring.cpp
3>  object.cpp
3>  process.cpp
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\base\process.cpp(217): warning C4996: 'fileno': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _fileno. See online help for details.
3>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdio.h(711) : see declaration of 'fileno'
3>  qstring.cpp
3>  ringbuffer.cpp
3>  scriptfunction.cpp
3>  scripttask.cpp
3>  socket.cpp
3>  streamlogger.cpp
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\base\streamlogger.cpp(59): warning C4244: 'initializing' : conversion from 'const double' to 'time_t', possible loss of data
3>  sysloglogger.cpp
3>  tcpclient.cpp
3>  tcpserver.cpp
3>  tcpsocket.cpp
3>  threadpool.cpp
3>  timer.cpp
3>  tlsclient.cpp
3>  unix.cpp
3>  utility.cpp
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\base\utility.cpp(202): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\string.h(241) : see declaration of 'strdup'
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\base\utility.cpp(232): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\string.h(241) : see declaration of 'strdup'
3>  value.cpp
3>  win32.cpp
3>     Creating library C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\base.lib and object C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\base.exp
3>  base.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\base.dll
4>------ Rebuild All started: Project: jsonrpc, Configuration: Debug Win32 ------
4>  i2-jsonrpc.cpp
4>  jsonrpcclient.cpp
4>  requestmessage.cpp
4>  responsemessage.cpp
4>  jsonrpcserver.cpp
4>  messagepart.cpp
4>     Creating library C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\jsonrpc.lib and object C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\jsonrpc.exp
4>  jsonrpc.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\jsonrpc.dll
5>------ Rebuild All started: Project: dyn, Configuration: Debug Win32 ------
5>  i2-dyn.cpp
5>  configcompiler.cpp
5>  configitem.cpp
5>  configitembuilder.cpp
5>  config_lexer.cc
5>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(57): warning C4005: 'INT8_MIN' : macro redefinition
5>          c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\dyn\config_lexer.cc(59) : see previous definition of 'INT8_MIN'
5>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(58): warning C4005: 'INT16_MIN' : macro redefinition
5>          c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\dyn\config_lexer.cc(62) : see previous definition of 'INT16_MIN'
5>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(59): warning C4005: 'INT32_MIN' : macro redefinition
5>          c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\dyn\config_lexer.cc(65) : see previous definition of 'INT32_MIN'
5>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(61): warning C4005: 'INT8_MAX' : macro redefinition
5>          c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\dyn\config_lexer.cc(68) : see previous definition of 'INT8_MAX'
5>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(62): warning C4005: 'INT16_MAX' : macro redefinition
5>          c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\dyn\config_lexer.cc(71) : see previous definition of 'INT16_MAX'
5>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(63): warning C4005: 'INT32_MAX' : macro redefinition
5>          c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\dyn\config_lexer.cc(74) : see previous definition of 'INT32_MAX'
5>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(65): warning C4005: 'UINT8_MAX' : macro redefinition
5>          c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\dyn\config_lexer.cc(77) : see previous definition of 'UINT8_MAX'
5>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(66): warning C4005: 'UINT16_MAX' : macro redefinition
5>          c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\dyn\config_lexer.cc(80) : see previous definition of 'UINT16_MAX'
5>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(67): warning C4005: 'UINT32_MAX' : macro redefinition
5>          c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\dyn\config_lexer.cc(83) : see previous definition of 'UINT32_MAX'
5>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\dyn\config_lexer.ll(56): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
5>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\string.h(241) : see declaration of 'strdup'
5>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\dyn\config_lexer.ll(57): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
5>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\string.h(241) : see declaration of 'strdup'
5>  config_parser.cc
5>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\dyn\config_parser.cc(1229): warning C4065: switch statement contains 'default' but no 'case' labels
5>  expression.cpp
5>  expressionlist.cpp
5>     Creating library C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\dyn.lib and object C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\dyn.exp
5>  dyn.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\dyn.dll
6>------ Rebuild All started: Project: icinga, Configuration: Debug Win32 ------
6>  i2-icinga.cpp
6>  endpoint.cpp
6>  endpointmanager.cpp
6>  icingaapplication.cpp
6>  jsonrpcendpoint.cpp
6>c1xx : fatal error C1083: Cannot open source file: 'jsonrpcendpoint.cpp': No such file or directory
7>------ Rebuild All started: Project: cib, Configuration: Debug Win32 ------
7>  i2-cib.cpp
7>  cib.cpp
7>  host.cpp
7>  hostgroup.cpp
7>  macroprocessor.cpp
7>  nagioschecktask.cpp
7>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2176): warning C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
7>          c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2157) : see declaration of 'std::_Copy_impl'
7>          c:\users\theflyingcorpse\documents\boot\boost\algorithm\string\detail\classification.hpp(102) : see reference to function template instantiation '_OutIt std::copy(_InIt,_InIt,_OutIt)' being compiled
7>          with
7>          [
7>              _OutIt=char *,
7>              _InIt=const char *
7>          ]
7>          c:\users\theflyingcorpse\documents\boot\boost\algorithm\string\classification.hpp(206) : see reference to function template instantiation 'boost::algorithm::detail::is_any_ofF::is_any_ofF>(const RangeT &)' being compiled
7>          with
7>          [
7>              CharT=char,
7>              IteratorT=const char_type *,
7>              RangeT=boost::iterator_range
7>          ]
7>          c:\users\theflyingcorpse\documents\boot\boost\algorithm\string\classification.hpp(206) : see reference to function template instantiation 'boost::algorithm::detail::is_any_ofF::is_any_ofF>(const RangeT &)' being compiled
7>          with
7>          [
7>              CharT=char,
7>              IteratorT=const char_type *,
7>              RangeT=boost::iterator_range
7>          ]
7>          c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\cib\nagioschecktask.cpp(104) : see reference to function template instantiation 'boost::algorithm::detail::is_any_ofF boost::algorithm::is_any_of(RangeT (&))' being compiled
7>          with
7>          [
7>              CharT=char,
7>              RangeT=const char [3]
7>          ]
7>  nullchecktask.cpp
7>  service.cpp
7>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\cib\service.cpp(109): error C2065: 'DefaultMaxCheckAttempts' : undeclared identifier
7>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\cib\service.cpp(111): warning C4244: 'return' : conversion from 'double' to 'long', possible loss of data
7>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\cib\service.cpp(124): warning C4244: 'return' : conversion from 'double' to 'long', possible loss of data
7>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\cib\service.cpp(134): warning C4244: 'return' : conversion from 'double' to 'long', possible loss of data
7>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\cib\service.cpp(215): warning C4244: 'argument' : conversion from 'double' to 'long', possible loss of data
7>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\cib\service.cpp(218): warning C4244: 'return' : conversion from 'double' to 'long', possible loss of data
7>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\cib\service.cpp(278): warning C4244: 'return' : conversion from 'double' to 'long', possible loss of data
7>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\cib\service.cpp(377): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
8>------ Rebuild All started: Project: demo, Configuration: Debug Win32 ------
8>  democomponent.cpp
8>LINK : fatal error LNK1104: cannot open file 'icinga.lib'
9>------ Rebuild All started: Project: checker, Configuration: Debug Win32 ------
9>  checkercomponent.cpp
9>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\components\checker\checkercomponent.cpp(79): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
9>LINK : fatal error LNK1104: cannot open file 'icinga.lib'
10>------ Rebuild All started: Project: delegation, Configuration: Debug Win32 ------
10>  delegationcomponent.cpp
10>LINK : fatal error LNK1104: cannot open file 'icinga.lib'
11>------ Rebuild All started: Project: cibsync, Configuration: Debug Win32 ------
11>  cibsynccomponent.cpp
11>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\components\cibsync\cibsynccomponent.cpp(75): warning C4244: 'argument' : conversion from 'time_t' to 'long', possible loss of data
11>LINK : fatal error LNK1104: cannot open file 'icinga.lib'
12>------ Rebuild All started: Project: compat, Configuration: Debug Win32 ------
12>  compatcomponent.cpp
12>LINK : fatal error LNK1104: cannot open file 'icinga.lib'
13>------ Rebuild All started: Project: convenience, Configuration: Debug Win32 ------
13>  conveniencecomponent.cpp
13>LINK : fatal error LNK1104: cannot open file 'icinga.lib'
14>------ Rebuild All started: Project: icinga-app, Configuration: Debug Win32 ------
14>  icinga.cpp
14>LINK : fatal error LNK1104: cannot open file 'icinga.lib'
========== Rebuild All: 5 succeeded, 9 failed, 0 skipped ==========
icinga-migration commented 12 years ago

Updated by mfriedrich on 2012-09-07 09:36:36 +00:00

try updating the sln deps in a bit - there were more global renamings and refactoring of classes and libs.

icinga-migration commented 12 years ago

Updated by gbeutner on 2012-09-07 09:47:05 +00:00

icinga-migration commented 11 years ago

Updated by mfriedrich on 2013-09-23 15:23:38 +00:00