mysql 源代码编译安装之sql_lex.cc错误解决篇!!!!

发表于:2007-06-08来源:作者:点击数: 标签:
错误现象: sql_lex.cc:Infunction`voidlex_init()': sql_lex.cc:85:`symbols'undeclared(firstusethisfunction) sql_lex.cc:85:(Eachundeclaredidentifierisreportedonlyonce sql_lex.cc:85:foreachfunctionitappearsin.) sql_lex.cc:87:`sql_functions'und

错误现象:
sql_lex.clearcase/" target="_blank" >cc: In function `void lex_init()':
sql_lex.cc:85: `symbols' undeclared (first use this function)
sql_lex.cc:85: (Each undeclared identifier is reported only once
sql_lex.cc:85: for each function it appears in.)
sql_lex.cc:87: `sql_functions' undeclared (first use this function)
sql_lex.cc: In function `int find_keyword(LEX *, unsigned int, bool)':
sql_lex.cc:171: implicit declaration of function `int get_hash_symbol(...)'
sql_lex.cc:171: initialization to `SYMBOL *' from `int' lacks a cast

解决办法:
cd sql
make gen_lex_hash
./gen_lex_hash > lex_hash.h
make
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

原文转自:http://www.ltesting.net