Closed icinga-migration closed 12 years ago
Updated by Anonymous on 2012-09-16 10:04:16 +00:00
Removing the requirement for threadpool.cpp renders the following output:
1>------ Rebuild All started: Project: cJSON, Configuration: Debug Win32 ------
2>------ Rebuild All started: Project: mmatch, Configuration: Debug Win32 ------
1> cJSON.c
2> mmatch.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> 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> component.cpp
3> dynamicobject.cpp
3> dictionary.cpp
3> event.cpp
3> exception.cpp
3> fifo.cpp
3> logger.cpp
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\base\application.cpp(110): warning C4244: 'argument' : conversion from 'double' to 'int64_t', possible loss of data
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\base\dynamicobject.cpp(112): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
3> netstring.cpp
3> object.cpp
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\base\dynamicobject.cpp(431): warning C4244: 'argument' : conversion from 'std::streamsize' to 'size_t', possible loss of data
3> process.cpp
3> qstring.cpp
3> ringbuffer.cpp
3> scriptfunction.cpp
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\base\process.cpp(222): 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> scripttask.cpp
3> socket.cpp
3> streamlogger.cpp
3> sysloglogger.cpp
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\base\streamlogger.cpp(59): warning C4244: 'initializing' : conversion from 'const double' to 'time_t', possible loss of data
3> tcpclient.cpp
3> tcpserver.cpp
3> tcpsocket.cpp
3> timer.cpp
3> tlsclient.cpp
3> unix.cpp
3> utility.cpp
3>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\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\lib\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: config, Configuration: Debug Win32 ------
4> i2-config.cpp
4> configcompiler.cpp
4> configitem.cpp
4> configitembuilder.cpp
4> expression.cpp
4> expressionlist.cpp
4> config_lexer.cc
4> config_parser.cc
4>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(57): warning C4005: 'INT8_MIN' : macro redefinition (config_lexer.cc)
4> c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\config\config_lexer.cc(59) : see previous definition of 'INT8_MIN'
4>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(58): warning C4005: 'INT16_MIN' : macro redefinition (config_lexer.cc)
4> c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\config\config_lexer.cc(62) : see previous definition of 'INT16_MIN'
4>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(59): warning C4005: 'INT32_MIN' : macro redefinition (config_lexer.cc)
4> c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\config\config_lexer.cc(65) : see previous definition of 'INT32_MIN'
4>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(61): warning C4005: 'INT8_MAX' : macro redefinition (config_lexer.cc)
4> c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\config\config_lexer.cc(68) : see previous definition of 'INT8_MAX'
4>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(62): warning C4005: 'INT16_MAX' : macro redefinition (config_lexer.cc)
4> c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\config\config_lexer.cc(71) : see previous definition of 'INT16_MAX'
4>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(63): warning C4005: 'INT32_MAX' : macro redefinition (config_lexer.cc)
4> c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\config\config_lexer.cc(74) : see previous definition of 'INT32_MAX'
4>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(65): warning C4005: 'UINT8_MAX' : macro redefinition (config_lexer.cc)
4> c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\config\config_lexer.cc(77) : see previous definition of 'UINT8_MAX'
4>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(66): warning C4005: 'UINT16_MAX' : macro redefinition (config_lexer.cc)
4> c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\config\config_lexer.cc(80) : see previous definition of 'UINT16_MAX'
4>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdint.h(67): warning C4005: 'UINT32_MAX' : macro redefinition (config_lexer.cc)
4> c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\config\config_lexer.cc(83) : see previous definition of 'UINT32_MAX'
4>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\config\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. (config_lexer.cc)
4> c:\program files (x86)\microsoft visual studio 11.0\vc\include\string.h(241) : see declaration of 'strdup'
4>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\config\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. (config_lexer.cc)
4> c:\program files (x86)\microsoft visual studio 11.0\vc\include\string.h(241) : see declaration of 'strdup'
4>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\config\config_parser.cc(1229): warning C4065: switch statement contains 'default' but no 'case' labels
4> Creating library C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\config.lib and object C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\config.exp
4> config.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\config.dll
5>------ Rebuild All started: Project: remoting, Configuration: Debug Win32 ------
5> i2-remoting.cpp
5> endpoint.cpp
5> endpointmanager.cpp
5> jsonrpcclient.cpp
5> requestmessage.cpp
5> responsemessage.cpp
5> jsonrpcserver.cpp
5> messagepart.cpp
5> Creating library C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\remoting.lib and object C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\remoting.exp
5> remoting.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\remoting.dll
6>------ Rebuild All started: Project: icinga, Configuration: Debug Win32 ------
6> i2-icinga.cpp
6> cib.cpp
6> host.cpp
6> hostgroup.cpp
6> icingaapplication.cpp
6> macroprocessor.cpp
6> nagioschecktask.cpp
6> nullchecktask.cpp
6> service.cpp
6>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\icinga\service.cpp(111): warning C4244: 'return' : conversion from 'double' to 'long', possible loss of data
6>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\icinga\service.cpp(124): warning C4244: 'return' : conversion from 'double' to 'long', possible loss of data
6>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\icinga\service.cpp(134): warning C4244: 'return' : conversion from 'double' to 'long', possible loss of data
6> servicegroup.cpp
6>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\icinga\service.cpp(215): warning C4244: 'argument' : conversion from 'double' to 'long', possible loss of data
6>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\icinga\service.cpp(218): warning C4244: 'return' : conversion from 'double' to 'long', possible loss of data
6>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\icinga\service.cpp(278): warning C4244: 'return' : conversion from 'double' to 'long', possible loss of data
6>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\icinga\service.cpp(377): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
6> servicestatechangemessage.cpp
6>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' (nagioschecktask.cpp)
6> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2157) : see declaration of 'std::_Copy_impl'
6> 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
6> with
6> [
6> _OutIt=char *,
6> _InIt=const char *
6> ]
6> 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
6> with
6> [
6> CharT=char,
6> IteratorT=const char_type *,
6> RangeT=boost::iterator_range
6> ]
6> 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
6> with
6> [
6> CharT=char,
6> IteratorT=const char_type *,
6> RangeT=boost::iterator_range
6> ]
6> c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\lib\icinga\nagioschecktask.cpp(104) : see reference to function template instantiation 'boost::algorithm::detail::is_any_ofF boost::algorithm::is_any_of(RangeT (&))' being compiled
6> with
6> [
6> CharT=char,
6> RangeT=const char [3]
6> ]
6> Creating library C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\icinga.lib and object C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\icinga.exp
6> icinga.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\icinga.dll
7>------ Rebuild All started: Project: demo, Configuration: Debug Win32 ------
8>------ Rebuild All started: Project: checker, Configuration: Debug Win32 ------
9>------ Rebuild All started: Project: delegation, Configuration: Debug Win32 ------
10>------ Rebuild All started: Project: replication, Configuration: Debug Win32 ------
11>------ Rebuild All started: Project: compat, Configuration: Debug Win32 ------
12>------ Rebuild All started: Project: convenience, Configuration: Debug Win32 ------
8> checkercomponent.cpp
10> replicationcomponent.cpp
7> democomponent.cpp
11> compatcomponent.cpp
12> conveniencecomponent.cpp
9> delegationcomponent.cpp
8>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
10>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\components\replication\replicationcomponent.cpp(75): warning C4244: 'argument' : conversion from 'time_t' to 'long', possible loss of data
7> Creating library C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\demo.lib and object C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\demo.exp
7> demo.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\demo.dll
9> Creating library C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\delegation.lib and object C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\delegation.exp
9> delegation.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\delegation.dll
8> Creating library C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\checker.lib and object C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\checker.exp
8> checker.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\checker.dll
10> Creating library C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\replication.lib and object C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\replication.exp
11> Creating library C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\compat.lib and object C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\compat.exp
10> replication.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\replication.dll
11> compat.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\compat.dll
12> Creating library C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\convenience.lib and object C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\convenience.exp
12> convenience.vcxproj -> C:\Users\TheFlyingCorpse\Documents\Visual Studio 2012\Projects\icinga\Debug\convenience.dll
13>------ Rebuild All started: Project: icinga-app, Configuration: Debug Win32 ------
13> icinga.cpp
13>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\icinga-app\icinga.cpp(54): error C2146: syntax error : missing ')' before identifier 'VERSION'
13>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\icinga-app\icinga.cpp(54): error C2059: syntax error : ')'
========== Rebuild All: 12 succeeded, 1 failed, 0 skipped ==========
A simple test replacing the following:
Logger::Write(LogInformation, "icinga", "Icinga application loader (version: " ICINGA_VERSION ")");
with
Logger::Write(LogInformation, "icinga", "Icinga application loader (version: " + ICINGA_VERSION + ")");
Renders the following output instead:
1>------ Build started: Project: icinga-app, Configuration: Debug Win32 ------
1> icinga.cpp
1>c:\users\theflyingcorpse\documents\visual studio 2012\projects\icinga\icinga-app\icinga.cpp(54): error C2065: 'VERSION' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
But rather, doing this to the same line:
Logger::Write(LogInformation, "icinga", "Icinga application loader (version: 5 )");
And it compiles. So sth's up here I don't quite understand (probably define itself is evul)
Updated by Anonymous on 2012-09-16 10:09:35 +00:00
Just figured (as shroud said) that it works with removing the link to the file / dependency... Should still be corrected ;-)
Updated by gbeutner on 2012-09-17 09:14:26 +00:00
Fixed in commit 86c0aff7195c1603fd5fe48c7acdc2ccb46d8cc1.
Updated by mfriedrich on 2013-09-23 15:23:41 +00:00
This issue has been migrated from Redmine: https://dev.icinga.com/issues/3119
Created by Anonymous on 2012-09-16 09:46:49 +00:00
Assignee: (none) Status: Resolved (closed on 2012-09-17 09:14:26 +00:00) Target Version: Pre Milestone Last Update: 2013-09-23 15:23:41 +00:00 (in Redmine)
Trying to compile a6828f57d39552032a8fd60876095e52dd4f27f3 leads to failure of compile under VS2012 due to a missing threadpool.cpp file.