Building MaxScale v2.2 on x86
Hi,
I am trying to build the above mentioned version of MaxScale on intel I am successfully able to cmake the source code but while building that is during 'make' i get the below errors Could you let me know if this is aknown issue on intel or is there i am missing somethg on my environment.
/home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2602:22: error: 'TK_TABLES' was not declared in this scope case TK_TABLES: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc: In member function 'void QcSqliteInfo::maxscalePrepare(Parse*, Token*, Expr*)': /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2648:30: error: 'TK_STRING' was not declared in this scope if (pStmt->op == TK_STRING) ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2660:30: error: 'TK_STRING' was not declared in this scope if (pStmt->op == TK_STRING) ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc: In member function 'void QcSqliteInfo::maxscalePrivileges(Parse*, int)': /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2735:14: error: 'TK_GRANT' was not declared in this scope case TK_GRANT: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2739:14: error: 'TK_REVOKE' was not declared in this scope case TK_REVOKE: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc: In member function 'void QcSqliteInfo::maxscaleSet(Parse*, int, mxs_set_t, ExprList*)': /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2758:27: error: 'TK_GLOBAL' was not declared in this scope if ((scope == TK_GLOBAL) || (scope == TK_SESSION)) ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2758:51: error: 'TK_SESSION' was not declared in this scope if ((scope == TK_GLOBAL) || (scope == TK_SESSION)) ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2777:26: error: 'TK_CHARACTER' was not declared in this scope case TK_CHARACTER: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2778:26: error: 'TK_NAMES' was not declared in this scope case TK_NAMES: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2782:26: error: 'TK_EQ' was not declared in this scope case TK_EQ: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2794:53: error: 'TK_DOT' was not declared in this scope while (pVariable->op == TK_DOT) ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2821:53: error: 'TK_DOT' was not declared in this scope while (pVariable->op == TK_DOT) ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2847:42: error: 'TK_INTEGER' was not declared in this scope case TK_INTEGER: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2858:42: error: 'TK_ID' was not declared in this scope case TK_ID: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:2884:47: error: 'TK_SELECT' was not declared in this scope if (pValue->op == TK_SELECT) ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc: In function 'bool should_exclude(const char*, const ExprList*)': /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3647:26: error: 'TK_EQ' was not declared in this scope if (pExpr->op == TK_EQ) ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3654:29: error: 'TK_DOT' was not declared in this scope while (pExpr->op == TK_DOT) ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3659:26: error: 'TK_ID' was not declared in this scope if (pExpr->op == TK_ID) ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc: In function 'const char* get_token_symbol(int)': /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3687:10: error: 'TK_EQ' was not declared in this scope case TK_EQ: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3690:10: error: 'TK_GE' was not declared in this scope case TK_GE: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3693:10: error: 'TK_GT' was not declared in this scope case TK_GT: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3696:10: error: 'TK_LE' was not declared in this scope case TK_LE: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3699:10: error: 'TK_LT' was not declared in this scope case TK_LT: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3702:10: error: 'TK_NE' was not declared in this scope case TK_NE: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3706:10: error: 'TK_BETWEEN' was not declared in this scope case TK_BETWEEN: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3709:10: error: 'TK_BITAND' was not declared in this scope case TK_BITAND: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3712:10: error: 'TK_BITOR' was not declared in this scope case TK_BITOR: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3715:10: error: 'TK_CASE' was not declared in this scope case TK_CASE: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3718:10: error: 'TK_IN' was not declared in this scope case TK_IN: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3721:10: error: 'TK_ISNULL' was not declared in this scope case TK_ISNULL: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3724:10: error: 'TK_MINUS' was not declared in this scope case TK_MINUS: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3727:10: error: 'TK_NOTNULL' was not declared in this scope case TK_NOTNULL: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3730:10: error: 'TK_PLUS' was not declared in this scope case TK_PLUS: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3733:10: error: 'TK_REM' was not declared in this scope case TK_REM: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3736:10: error: 'TK_SLASH' was not declared in this scope case TK_SLASH: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3739:10: error: 'TK_STAR' was not declared in this scope case TK_STAR: ^ /home/MaxScale/query_classifier/qc_sqlite/qc_sqlite.cc:3742:10: error: 'TK_UMINUS' was not declared in this scope
Answer Answered by Markus Mäkelä in this comment.
That appears to be caused by using a non-empty build directory. Try removing all files from the build directory and then invoke CMake again.