Getting error when building the opencv.sln from cmake with msvc2012 - opencv

i am trying to install opencv with opencv_contrib
i downloaded opencv and opencv_contrib from GitHub of the same branch (3.4)
i built the opencv and opencv_contrib with cmake, and evrey thing worked fine. but when i try to build the Opencv.sln i am getting errors and not all the modules are built ( i need the opencv_tracking module)
here are the errors i am getting:
enter Error 437 error C2039: 'isfinite' : is not a member of 'std'
C:\opencv-3.4\opencv_contrib-3.4\opencv_contrib-3.4\modules\tracking\src\trackerCSRTUtils.cpp 150 1 opencv_tracking
Error 46 error C2054: expected '(' to follow 'inline' C:\opencv-3.4\3rdparty\quirc\src\decode.c 409 1 quirc
Error 50 error C2054: expected '(' to follow 'inline' C:\opencv-3.4\3rdparty\quirc\src\decode.c 615 1 quirc
Error 2 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 22 1 quirc
Error 4 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 39 1 quirc
Error 5 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 49 1 quirc
Error 6 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 59 1 quirc
Error 7 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 69 1 quirc
Error 8 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 79 1 quirc
Error 9 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 89 1 quirc
Error 10 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 99 1 quirc
Error 11 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 109 1 quirc
Error 12 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 119 1 quirc
Error 13 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 129 1 quirc
Error 14 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 139 1 quirc
Error 15 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 149 1 quirc
Error 16 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 159 1 quirc
Error 17 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 169 1 quirc
Error 18 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 179 1 quirc
Error 19 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 189 1 quirc
Error 20 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 199 1 quirc
Error 21 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 209 1 quirc
Error 22 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 219 1 quirc
Error 23 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 229 1 quirc
Error 24 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 239 1 quirc
Error 25 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 249 1 quirc
Error 26 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 259 1 quirc
Error 27 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 269 1 quirc
Error 28 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 279 1 quirc
Error 29 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 289 1 quirc
Error 30 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 299 1 quirc
Error 31 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 309 1 quirc
Error 32 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 319 1 quirc
Error 33 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 329 1 quirc
Error 34 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 339 1 quirc
Error 35 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 349 1 quirc
Error 36 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 359 1 quirc
Error 37 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 369 1 quirc
Error 38 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 379 1 quirc
Error 39 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 389 1 quirc
Error 40 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 399 1 quirc
Error 41 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 409 1 quirc
Error 42 error C2059: syntax error : ',' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 419 1 quirc
Error 1 error C2059: syntax error : '.' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 21 1 quirc
Error 44 error C2059: syntax error : '.' C:\opencv-3.4\3rdparty\quirc\src\decode.c 45 1 quirc
Error 45 error C2059: syntax error : '.' C:\opencv-3.4\3rdparty\quirc\src\decode.c 121 1 quirc
Error 67 error C2059: syntax error : '[' C:\opencv-3.4\3rdparty\quirc\src\quirc.c 124 1 quirc
Error 3 error C2059: syntax error : '}' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 29 1 quirc
Error 43 error C2059: syntax error : '}' C:\opencv-3.4\3rdparty\quirc\src\version_db.c 430 1 quirc
Error 407 error C2065: 'HUGE_VALF' : undeclared identifier C:\opencv-3.4\opencv_contrib-3.4\opencv_contrib-3.4\modules\aruco\src\apriltag_quad_thresh.cpp 390 1 opencv_aruco
Error 408 error C2065: 'HUGE_VALF' : undeclared identifier C:\opencv-3.4\opencv_contrib-3.4\opencv_contrib-3.4\modules\aruco\src\apriltag_quad_thresh.cpp 445 1 opencv_aruco
Error 405 error C2065: 'INFINITY' : undeclared identifier C:\opencv-3.4\opencv_contrib-3.4\opencv_contrib-3.4\modules\aruco\src\zmaxheap.cpp 177 1 opencv_aruco
Error 406 error C2065: 'INFINITY' : undeclared identifier C:\opencv-3.4\opencv_contrib-3.4\opencv_contrib-3.4\modules\aruco\src\zmaxheap.cpp 178 1 opencv_aruco
Error 62 error C2065: 'min' : undeclared identifier C:\opencv-3.4\3rdparty\quirc\src\quirc.c 75 1 quirc
Error 65 error C2065: 'min' : undeclared identifier C:\opencv-3.4\3rdparty\quirc\src\quirc.c 82 1 quirc
Error 59 error C2065: 'newdim' : undeclared identifier C:\opencv-3.4\3rdparty\quirc\src\quirc.c 74 1 quirc
Error 64 error C2065: 'newdim' : undeclared identifier C:\opencv-3.4\3rdparty\quirc\src\quirc.c 75 1 quirc
Error 66 error C2065: 'newdim' : undeclared identifier C:\opencv-3.4\3rdparty\quirc\src\quirc.c 86 1 quirc
Error 56 error C2065: 'olddim' : undeclared identifier C:\opencv-3.4\3rdparty\quirc\src\quirc.c 73 1 quirc
Error 63 error C2065: 'olddim' : undeclared identifier C:\opencv-3.4\3rdparty\quirc\src\quirc.c 75 1 quirc
Error 51 error C2085: 'bits_remaining' : not in formal parameter list C:\opencv-3.4\3rdparty\quirc\src\decode.c 616 1 quirc
Error 47 error C2085: 'grid_bit' : not in formal parameter list C:\opencv-3.4\3rdparty\quirc\src\decode.c 410 1 quirc
Error 48 error C2143: syntax error : missing ';' before '{' C:\opencv-3.4\3rdparty\quirc\src\decode.c 410 1 quirc
Error 52 error C2143: syntax error : missing ';' before '{' C:\opencv-3.4\3rdparty\quirc\src\decode.c 616 1 quirc
Error 61 error C2146: syntax error : missing ';' before identifier 'min' C:\opencv-3.4\3rdparty\quirc\src\quirc.c 75 1 quirc
Error 58 error C2146: syntax error : missing ';' before identifier 'newdim' C:\opencv-3.4\3rdparty\quirc\src\quirc.c 74 1 quirc
Error 55 error C2146: syntax error : missing ';' before identifier 'olddim' C:\opencv-3.4\3rdparty\quirc\src\quirc.c 73 1 quirc
Error 54 error C2275: 'size_t' : illegal use of this type as an expression C:\opencv-3.4\3rdparty\quirc\src\quirc.c 73 1 quirc
Error 57 error C2275: 'size_t' : illegal use of this type as an expression C:\opencv-3.4\3rdparty\quirc\src\quirc.c 74 1 quirc
Error 60 error C2275: 'size_t' : illegal use of this type as an expression C:\opencv-3.4\3rdparty\quirc\src\quirc.c 75 1 quirc
Error 200 error C2784: 'void cv::dnn::NMSFast_(const std::vector<_Tp> &,const std::vector<_Ty> &,const float,const float,const float,const int,std::vector<int> &,float (__cdecl *)(const BoxType &,const BoxType &))' : could not deduce template argument for 'const std::vector<_Tp> &' from 'const std::vector<_Ty>' C:\opencv-3.4\modules\dnn\src\nms.cpp 31 1 opencv_dnn
Error 202 error C2784: 'void cv::dnn::NMSFast_(const std::vector<_Tp> &,const std::vector<_Ty> &,const float,const float,const float,const int,std::vector<int> &,float (__cdecl *)(const BoxType &,const BoxType &))' : could not deduce template argument for 'const std::vector<_Tp> &' from 'const std::vector<_Ty>' C:\opencv-3.4\modules\dnn\src\nms.cpp 40 1 opencv_dnn
Error 199 error C2896: 'void cv::dnn::NMSFast_(const std::vector<_Tp> &,const std::vector<_Ty> &,const float,const float,const float,const int,std::vector<int> &,float (__cdecl *)(const BoxType &,const BoxType &))' : cannot use function template 'float cv::dnn::experimental_dnn_34_v9::rectOverlap(const T &,const T &)' as a function argument C:\opencv-3.4\modules\dnn\src\nms.cpp 31 1 opencv_dnn
Error 201 error C2896: 'void cv::dnn::NMSFast_(const std::vector<_Tp> &,const std::vector<_Ty> &,const float,const float,const float,const int,std::vector<int> &,float (__cdecl *)(const BoxType &,const BoxType &))' : cannot use function template 'float cv::dnn::experimental_dnn_34_v9::rectOverlap(const T &,const T &)' as a function argument C:\opencv-3.4\modules\dnn\src\nms.cpp 40 1 opencv_dnn
Error 439 error C3861: 'acosh': identifier not found C:\opencv-3.4\opencv_contrib-3.4\opencv_contrib-3.4\modules\tracking\src\trackerCSRTUtils.cpp 163 1 opencv_tracking
Error 440 error C3861: 'acosh': identifier not found C:\opencv-3.4\opencv_contrib-3.4\opencv_contrib-3.4\modules\tracking\src\trackerCSRTUtils.cpp 173 1 opencv_tracking
Error 438 error C3861: 'isfinite': identifier not found C:\opencv-3.4\opencv_contrib-3.4\opencv_contrib-3.4\modules\tracking\src\trackerCSRTUtils.cpp 150 1 opencv_tracking
Error 458 error LNK1104: cannot open file '..\..\..\..\lib\Debug\opencv_xobjdetect343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\xobjdetect\tools\waldboost_detector\LINK opencv_waldboost_detector
Error 370 error LNK1104: cannot open file '..\..\3rdparty\lib\Debug\quircd.lib' C:\opencv-3.4\opencv-3.4-build\modules\objdetect\LINK opencv_objdetect
Error 442 error LNK1104: cannot open file '..\..\lib\Debug\opencv_aruco343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\aruco\LINK opencv_test_aruco
Error 460 error LNK1104: cannot open file '..\..\lib\Debug\opencv_aruco343d.lib' C:\opencv-3.4\opencv-3.4-build\apps\interactive-calibration\LINK opencv_interactive-calibration
Error 223 error LNK1104: cannot open file '..\..\lib\Debug\opencv_dnn343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\dnn_objdetect\LINK opencv_dnn_objdetect
Error 244 error LNK1104: cannot open file '..\..\lib\Debug\opencv_dnn343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\text\LINK opencv_text
Error 396 error LNK1104: cannot open file '..\..\lib\Debug\opencv_dnn343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\dnn\LINK opencv_perf_dnn
Error 443 error LNK1104: cannot open file '..\..\lib\Debug\opencv_dnn343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\dnn\LINK opencv_test_dnn
Error 444 error LNK1104: cannot open file '..\..\lib\Debug\opencv_face343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\face\LINK opencv_test_face
Error 409 error LNK1104: cannot open file '..\..\lib\Debug\opencv_objdetect343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\face\LINK opencv_face
Error 431 error LNK1104: cannot open file '..\..\lib\Debug\opencv_objdetect343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\xobjdetect\LINK opencv_xobjdetect
Error 436 error LNK1104: cannot open file '..\..\lib\Debug\opencv_objdetect343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\objdetect\LINK opencv_perf_objdetect
Error 445 error LNK1104: cannot open file '..\..\lib\Debug\opencv_objdetect343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\objdetect\LINK opencv_test_objdetect
Error 448 error LNK1104: cannot open file '..\..\lib\Debug\opencv_objdetect343d.lib' C:\opencv-3.4\opencv-3.4-build\apps\traincascade\LINK opencv_traincascade
Error 453 error LNK1104: cannot open file '..\..\lib\Debug\opencv_objdetect343d.lib' C:\opencv-3.4\opencv-3.4-build\apps\createsamples\LINK opencv_createsamples
Error 459 error LNK1104: cannot open file '..\..\lib\Debug\opencv_objdetect343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\dpm\LINK opencv_dpm
Error 361 error LNK1104: cannot open file '..\..\lib\Debug\opencv_text343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\datasets\LINK opencv_datasets
Error 446 error LNK1104: cannot open file '..\..\lib\Debug\opencv_text343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\text\LINK opencv_test_text
Error 441 error LNK1104: cannot open file '..\..\lib\Debug\opencv_tracking343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\tracking\LINK opencv_perf_tracking
Error 447 error LNK1104: cannot open file '..\..\lib\Debug\opencv_tracking343d.lib' C:\opencv-3.4\opencv-3.4-build\modules\tracking\LINK opencv_test_tracking
Error 461 error MSB3073: The command "setlocal
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 134 5 INSTALL
thank you in advance.

i surpassed the errors by using a previous version (3.4.0)
to retain: never use the latest version.

Related

Fabric SDK Crash [ANSAnswersController logCrashEvent:]

Fatal Exception: NSInvalidArgumentException
*** +[NSJSONSerialization dataWithJSONObject:options:error:]: value parameter is nil
Foundation +[NSJSONSerialization dataWithJSONObject:options:error:] + 84
ProjectName -[ANSWriteEventOperation logLineWithTimestamp:eventName:payloadDictionary:] + 72
ProjectName -[ANSWriteEventOperation generateFormattedLogLineWithMetdata:timestamp:] + 142
ProjectName -[ANSWriteEventOperation initWithEvent:metadata:logFileUrl:] + 200
ProjectName
__38-[ANSAnswersController logCrashEvent:]_block_invoke + 600
Foundation NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 8
This has been fixed in 3.8.2 as per the Crashlytics developers. See this speicific developer comment https://twittercommunity.com/t/crash-io-answers-eventqueue-nsoperation-qos-background/74765/7

(Simulator iPhone 4s is not available.) during validation

I try to update my pod to Xcode 8 and Swift 3 syntax, I did run the following command of my project:
pod spec lint BSTableViewReorder.podspec
and it produces an error:
-> BSTableViewReorder (1.3)
- ERROR | [iOS] unknown: Encountered an unknown error (/Applications/Xcode.app/Contents/Developer/usr/bin/xcrun simctl list devices
2016-08-25 11:58:10.561 simctl[34169:531955] CoreSimulator is attempting to unload a stale CoreSimulatorService job. Detected Xcode.app relocation or CoreSimulatorService version change. Framework path (/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework) and version (209.19) does not match existing job path (/Users/kuna/Downloads/Xcode-beta.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService) and version (303.7).
2016-08-25 11:58:10.819 simctl[34169:531955] Failed to locate a valid instance of CoreSimulatorService in the bootstrap. Adding it now.
2016-08-25 11:58:10.839 simctl[34169:531955] *** Assertion failure in -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-209.19/CoreSimulator/SimServiceContext.m:536
2016-08-25 11:58:10.857 simctl[34169:531955] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The loaded com.apple.CoreSimulator.CoreSimulatorService job does not match our expectations: pathOfLoadedJob: /Users/kuna/Downloads/Xcode-beta.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService, our frameworkPath: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff87a934f2 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff93c8973c objc_exception_throw + 48
2 CoreFoundation 0x00007fff87a981ca +[NSException raise:format:arguments:] + 106
3 Foundation 0x00007fff8aaa8856 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
4 CoreSimulator 0x00000001099953e9 -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid] + 1313
5 CoreSimulator 0x0000000109995d01 -[SimServiceContext connect] + 41
6 CoreSimulator 0x00000001099947a6 -[SimServiceContext initWithDeveloperDir:connectionType:] + 1108
7 CoreSimulator 0x0000000109994071 __63+[SimServiceContext sharedServiceContextForDeveloperDir:error:]_block_invoke_2 + 127
8 libdispatch.dylib 0x00007fff923fb40b _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff923fc9f2 _dispatch_barrier_sync_f_invoke + 74
10 CoreSimulator 0x0000000109993ea6 +[SimServiceContext sharedServiceContextForDeveloperDir:error:] + 226
11 CoreSimulator 0x00000001099941ee +[SimServiceContext sharedServiceContext] + 51
12 simctl 0x0000000109982a71 simctl + 31345
13 libdyld.dylib 0x00007fff95ba65ad start + 1
14 ??? 0x0000000000000003 0x0 + 3
)
libc++abi.dylib: terminating with uncaught exception of type NSException
) during validation.
UPDATE:
After I chnaged the name of my Xcode from Xcode beta to Xcode, the following error arise:
Encountered an unknown error (Simulator iPhone 4s is not available.) during validation.
How to fix this?
Simply install iOS 9.3 Simulator:
update cocoapods to 1.1.0.beata.2 can fix it.
sudo gem install cocoapods --pre
hope can help you

What does Lejos NXJ error 76 mean?

We're getting an error 76 for code that worked outside the lejos runtime.
What does error 76 mean?

Error while zabbix installation

Below are the steps i folowed while zabbix installation:
tar -zxf zabbix-1.8.tar.gz
Create the Zabbix database in mysql
yum install iksemel-devel
yum install net-snmp-devel
./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl
Then when i am executing : make install then i am seeing the below exception. Please help me figuring out the problem. Thanks.
../../../include/zbxdb.h:67:20: error: mysql.h: No such file or directory
../../../include/zbxdb.h:68:21: error: errmsg.h: No such file or directory
../../../include/zbxdb.h:69:27: error: mysqld_error.h: No such file or directory
In file included from ../../../include/db.h:25,
from db.c:22:
../../../include/zbxdb.h:71: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../include/zbxdb.h:174: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../include/zbxdb.h:175: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../include/zbxdb.h:177: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'zbx_db_fetch'
In file included from db.c:22:
../../../include/db.h:546: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../include/db.h:548: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../../include/db.h:549: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DBfetch'
../../../include/db.h:586: error: expected declaration specifiers or '...' before 'MYSQL_ROW'
db.c:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
db.c: In function 'zbx_db_connect':
db.c:119: error: 'conn' undeclared (first use in this function)
db.c:119: error: (Each undeclared identifier is reported only once
db.c:119: error: for each function it appears in.)
db.c:121: error: 'CLIENT_MULTI_STATEMENTS' undeclared (first use in this function)
db.c:145: error: 'CR_CONN_HOST_ERROR' undeclared (first use in this function)
db.c:146: error: 'CR_SERVER_GONE_ERROR' undeclared (first use in this function)
db.c:147: error: 'CR_CONNECTION_ERROR' undeclared (first use in this function)
db.c:148: error: 'CR_SERVER_LOST' undeclared (first use in this function)
db.c:149: error: 'ER_SERVER_SHUTDOWN' undeclared (first use in this function)
db.c:150: error: 'ER_ACCESS_DENIED_ERROR' undeclared (first use in this function)
db.c:151: error: 'ER_ILLEGAL_GRANT_FOR_TABLE' undeclared (first use in this function)
db.c:152: error: 'ER_TABLEACCESS_DENIED_ERROR' undeclared (first use in this function)
db.c:153: error: 'ER_UNKNOWN_ERROR' undeclared (first use in this function)
db.c: In function 'zbx_db_close':
db.c:350: error: 'conn' undeclared (first use in this function)
db.c: At top level:
db.c:409: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
db.c: In function 'zbx_db_vexecute':
db.c:656: error: 'conn' undeclared (first use in this function)
db.c:668: error: 'CR_CONN_HOST_ERROR' undeclared (first use in this function)
db.c:669: error: 'CR_SERVER_GONE_ERROR' undeclared (first use in this function)
db.c:670: error: 'CR_CONNECTION_ERROR' undeclared (first use in this function)
db.c:671: error: 'CR_SERVER_LOST' undeclared (first use in this function)
db.c:672: error: 'ER_SERVER_SHUTDOWN' undeclared (first use in this function)
db.c:673: error: 'ER_ACCESS_DENIED_ERROR' undeclared (first use in this function)
db.c:674: error: 'ER_ILLEGAL_GRANT_FOR_TABLE' undeclared (first use in this function)
db.c:675: error: 'ER_TABLEACCESS_DENIED_ERROR' undeclared (first use in this function)
db.c:676: error: 'ER_UNKNOWN_ERROR' undeclared (first use in this function)
db.c: At top level:
db.c:825: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
db.c:1124: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
db.c:1139: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'zbx_db_fetch'
make[3]: *** [db.o] Error 1
make[3]: Leaving directory `/root/xyy/zabbix-1.8.4/src/libs/zbxdb'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/root/xyz/zabbix-1.8.4/src/libs'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/xyz/zabbix-1.8.4/src'
make: *** [install-recursive] Error 1
EDIT DETAILS:
As per one comment i tried installing mysql-devel i.e. yum install mysql-devel but i got below error:
Error: Package: mysql-devel-5.1.69-1.el6_4.x86_64 (updates)
Requires: mysql = 5.1.69-1.el6_4
Installed: mysql-5.5.28-1.el6.remi.x86_64 (#remi)
mysql = 5.5.28-1.el6.remi
Available: mysql-5.1.66-2.el6_3.x86_64 (base)
mysql = 5.1.66-2.el6_3
Available: mysql-5.1.67-1.el6_3.x86_64 (updates)
mysql = 5.1.67-1.el6_3
Available: mysql-5.1.69-1.el6_4.x86_64 (updates)
mysql = 5.1.69-1.el6_4
You could try using --skip-broken to work around the problem
Can somebody please help me in getting rid of the situation. Thanks.
EDIT details: Below are the things which i find when i do fire the command: ls -l /etc/yum.repos.d/
-rw-r--r-- 1 root root 1926 Jun 26 2012 CentOS-Base.repo
-rw-r--r-- 1 root root 637 Jun 26 2012 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root 626 Jun 26 2012 CentOS-Media.repo
-rw-r--r-- 1 root root 2593 Jun 26 2012 CentOS-Vault.repo
-rw-r--r-- 1 root root 475 Aug 19 2012 ZabbixZone.repo
-rw-r--r-- 1 root root 1056 Nov 5 2012 epel-testing.repo
-rw-r--r-- 1 root root 957 Aug 21 2012 epel.repo
-rw-r--r-- 1 root root 739 Nov 13 2010 mirrors-rpmforge
-rw-r--r-- 1 root root 717 Nov 13 2010 mirrors-rpmforge-extras
-rw-r--r-- 1 root root 728 Nov 13 2010 mirrors-rpmforge-testing
-rw-r--r-- 1 root root 633 Nov 13 2010 remi.repo
-rw-r--r-- 1 root root 1113 Aug 21 2012 rpmforge.repo
-rw-r--r-- 1 root root 401 Jan 25 23:10 zabbix.repo
EDIT details: At last the issue got solved and many thanks to Michael Tabolsky and Joao Figueiredo. :
cat /etc/yum.repos.d/remi.repo
and found out that remi repo was disabled. Then edited it through
vi /etc/yum.repos.d/remi.repo.
changed enabled=0 to enabled=1. Then did a yum install mysql-devel and it worked.
Your problem is not in installing zabbix, but in compiling it. You are missing the mysql headers. yum install mysql-devel
However, I really don't know why you try to compile. Also the old version. For el distros (RHEL, CentOS, Scientific) use the EPEL repo, it has the 2.0 there.
Edit: link to EPEL repo as requested, follow the instructions for your distribution:
http://fedoraproject.org/wiki/EPEL
then yum list zabbix2* andinstall what you need.
and your sql files are here
rpm -ql zabbix-server-mysql-2.0.5-1.el6.x86_64 | grep create
/usr/share/doc/zabbix-server-mysql-2.0.5/create
/usr/share/doc/zabbix-server-mysql-2.0.5/create/data.sql
/usr/share/doc/zabbix-server-mysql-2.0.5/create/images.sql
/usr/share/doc/zabbix-server-mysql-2.0.5/create/schema.sql
Trying,
your way overcomplicating.
Why would you try to compile such an obsolete version?
The last time I've compiled 1.8 was about an year ago.
Though you don't specify your distro, you can follow up from here,
https://www.zabbix.com/documentation/2.0/manual/installation/install_from_packages

T4mvc for VB Breaking Everything

I've grown an unhealthy dependency on T4MVC since it's such an awesome library i have been using it for years in c# and have never had much of a problem with it
I am working on a new MVC 4 project in VB and it seems to break a lot of my code, any idea how to fix this i have already tried changing the name of the MVC link generation class in settings but it still seems to be braking a lot of my code it appears to be mostly on the shipped account controller and a few microsoft namespaces anyone had success getting this working in VB
Error 6 Type 'ContactsManager.Web.Mvc.LoginModel' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\AccountController.generated.vb 148 56 ContactsManager.Web.Mvc
Error 7 Type 'ContactsManager.Web.Mvc.RegisterModel' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\AccountController.generated.vb 165 59 ContactsManager.Web.Mvc
Error 8 Type 'ContactsManager.Web.Mvc.AccountController.ManageMessageId' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\AccountController.generated.vb 178 59 ContactsManager.Web.Mvc
Error 9 Type 'ContactsManager.Web.Mvc.LocalPasswordModel' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\AccountController.generated.vb 184 57 ContactsManager.Web.Mvc
Error 10 Type 'ContactsManager.Web.Mvc.RegisterExternalLoginModel' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\AccountController.generated.vb 203 76 ContactsManager.Web.Mvc
Error 12 Type 'ContactsManager.Web.Mvc.ContactCreate' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb 260 53 ContactsManager.Web.Mvc
Error 13 Type 'ContactsManager.Lib.Models.Web.Address' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb 295 78 ContactsManager.Web.Mvc
Error 14 Type 'ContactsManager.Lib.Models.Web.Address' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb 309 104 ContactsManager.Web.Mvc
Error 15 Type 'ContactsManager.Lib.Models.Web.Email' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb 330 76 ContactsManager.Web.Mvc
Error 16 Type 'ContactsManager.Lib.Models.Web.Email' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb 344 102 ContactsManager.Web.Mvc
Error 17 Type 'ContactsManager.Lib.Models.Web.SocialNetwork' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb 365 84 ContactsManager.Web.Mvc
Error 18 Type 'ContactsManager.Lib.Models.Web.SocialNetwork' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb 379 110 ContactsManager.Web.Mvc
Error 19 Type 'ContactsManager.Lib.Models.Web.Phone' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb 400 76 ContactsManager.Web.Mvc
Error 20 Type 'ContactsManager.Lib.Models.Web.Phone' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb 414 102 ContactsManager.Web.Mvc
Error 21 Type 'ContactsManager.Lib.Models.Web.Url' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb 435 78 ContactsManager.Web.Mvc
Error 22 Type 'ContactsManager.Lib.Models.Web.Url' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb 449 104 ContactsManager.Web.Mvc
Error 27 Identifier expected. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\SharedController.generated.vb 38 30 ContactsManager.Web.Mvc
Error 32 Unable to load referenced library 'C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\Bin\Mono.Math.dll': The system cannot find the file specified.
Error 33 Unable to load referenced library 'C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\Bin\Mono.Math.dll': The system cannot find the file specified. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\Bin\Mono.Math.dll
Error 34 Unable to load referenced library 'C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\Bin\Org.Mentalis.Security.Cryptography.dll': The system cannot find the file specified.
Error 35 Unable to load referenced library 'C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\Bin\Org.Mentalis.Security.Cryptography.dll': The system cannot find the file specified. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\Bin\Org.Mentalis.Security.Cryptography.dll
Note that the VB version was not kept up to date with the C# version, so it is based off a much older version of T4MVC. As far as I know, it worked at that time, but I haven't used it myself.
Ideally, we need someone to own maintaining it, but the demand for VB has been limited.

Resources