引擎文件用的是infobright.4.0.6的,配置文件按其他存储引擎修改的,改了一些选项,去掉 -fno-exceptions -fno-rtti,报以下错:mysql-5.5.21/storage/brighthouse/compress/RangeCoder.h:61: 警告:忽略 #pragma warning 
mysql-5.5.21/storage/brighthouse/compress/RangeCoder.h:62: 警告:忽略 #pragma warning 
mysql-5.5.21/storage/brighthouse/compress/RangeCoder.h:119: 警告:忽略 #pragma warning 
mysql-5.5.21/sql/set_var.h: In member function ‘uchar* sys_var::session_var_ptr(THD*)’:
mysql-5.5.21/sql/set_var.h:169: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/opt_range.h: At global scope:
mysql-5.5.21/sql/opt_range.h:531: 错误:ISO C++ 不允许声明无类型的 ‘Unique’
mysql-5.5.21/sql/opt_range.h:531: 错误:expected ‘;’ before ‘*’ token
mysql-5.5.21/sql/opt_range.h: In member function ‘bool SQL_SELECT::skip_record(THD*, bool*)’:
mysql-5.5.21/sql/opt_range.h:889: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sql_select.h: At global scope:
mysql-5.5.21/sql/sql_select.h:352: 错误:字段 ‘tmp_table_param’ 类型不完全
mysql-5.5.21/sql/sql_select.h:355: 错误:ISO C++ 不允许声明无类型的 ‘SELECT_LEX_UNIT’
mysql-5.5.21/sql/sql_select.h:355: 错误:expected ‘;’ before ‘*’ token
mysql-5.5.21/sql/sql_select.h:357: 错误:ISO C++ 不允许声明无类型的 ‘SELECT_LEX’
mysql-5.5.21/sql/sql_select.h:357: 错误:expected ‘;’ before ‘*’ token
mysql-5.5.21/sql/sql_select.h:453: 错误:ISO C++ 不允许声明无类型的 ‘SORT_FIELD’
mysql-5.5.21/sql/sql_select.h:453: 错误:expected ‘;’ before ‘*’ token
mysql-5.5.21/sql/sql_select.h:525: 错误:‘SELECT_LEX’ 未声明
mysql-5.5.21/sql/sql_select.h:526: 错误:‘SELECT_LEX_UNIT’ 未声明
mysql-5.5.21/sql/sql_select.h: In member function ‘void JOIN::init(THD*, List<Item>&, ulonglong, select_result*)’:
mysql-5.5.21/sql/sql_select.h:483: 错误:‘sortorder’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h:492: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sql_select.h:493: 错误:‘select_lex’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h:516: 错误:‘tmp_table_param’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h: In member function ‘bool JOIN::send_row_on_empty_set()’:
mysql-5.5.21/sql/sql_select.h:569: 错误:‘tmp_table_param’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h: In member function ‘bool JOIN::is_top_level_join() const’:
mysql-5.5.21/sql/sql_select.h:575: 错误:‘unit’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h:575: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sql_select.h:576: 错误:‘select_lex’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h: At global scope:
mysql-5.5.21/sql/sql_select.h:603: 错误:变量或字段 ‘count_field_types’ 声明为 void
mysql-5.5.21/sql/sql_select.h:603: 错误:‘SELECT_LEX’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h:603: 错误:‘select_lex’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h:603: 错误:expected primary-expression before ‘*’ token
mysql-5.5.21/sql/sql_select.h:603: 错误:‘param’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h:604: 错误:expected primary-expression before ‘&’ token
mysql-5.5.21/sql/sql_select.h:604: 错误:‘fields’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h:604: 错误:expected primary-expression before ‘bool’
mysql-5.5.21/sql/sql_select.h:604: 错误:initializer 表达式列表被看作复合表达式
mysql-5.5.21/sql/sql_select.h:621: 错误:‘Item_func’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h:621: 错误:‘func_item’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h:621: 错误:expected primary-expression before ‘*’ token
mysql-5.5.21/sql/sql_select.h:621: 错误:‘args’ 在此作用域中尚未声明
mysql-5.5.21/sql/sql_select.h:621: 错误:expected primary-expression before ‘bool’
mysql-5.5.21/sql/sql_select.h:621: 错误:initializer 表达式列表被看作复合表达式
mysql-5.5.21/sql/sql_select.h: In constructor ‘store_key::store_key(THD*, Field*, uchar*, uchar*, uint)’:
mysql-5.5.21/sql/sql_select.h:651: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sql_select.h: In member function ‘store_key::store_key_result store_key::copy()’:
mysql-5.5.21/sql/sql_select.h:667: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sql_select.h:668: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sql_select.h:669: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sql_select.h:671: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sql_select.h:675: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sql_select.h:676: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sql_select.h: In member function ‘virtual store_key::store_key_result store_key_item::copy_inner()’:
mysql-5.5.21/sql/sql_select.h:747: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sql_select.h: In member function ‘virtual store_key::store_key_result store_key_const_item::copy_inner()’:
mysql-5.5.21/sql/sql_select.h:787: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sql_select.h: At global scope:
mysql-5.5.21/sql/sql_select.h:801: 错误:expected constructor, destructor, or type conversion before ‘*’ token
mysql-5.5.21/sql/sql_select.h:808: 错误:‘SELECT_LEX’ 未声明
mysql-5.5.21/sql/sql_select.h:817: 错误:‘SELECT_LEX_UNIT’ 未声明
mysql-5.5.21/sql/sql_select.h:818: 错误:‘SELECT_LEX’ 未声明
mysql-5.5.21/sql/sql_select.h:819: 错误:‘SELECT_LEX’ 未声明
mysql-5.5.21/sql/sql_select.h:820: 错误:‘SELECT_LEX_UNIT’ 未声明
mysql-5.5.21/sql/sql_select.h: In function ‘bool optimizer_flag(THD*, uint)’:
mysql-5.5.21/sql/sql_select.h:843: 错误:invalid use of undefined type ‘struct THD’
mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
mysql-5.5.21/sql/sp_rcontext.h: At global scope:
mysql-5.5.21/sql/sp_rcontext.h:269: 错误:expected class-name before ‘{’ token
mysql-5.5.21/sql/sp_rcontext.h:269: 警告:‘class Select_fetch_into_spvars’ 有虚函数却没有虚析构函数
mysql-5.5.21/storage/brighthouse/common/mysql_gate.h:100: 错误:‘killed_state’ 在类 ‘THD’ 中没有命名一个类型

解决方案 »

  1.   

    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h: In instantiation of ‘ValueBasic<RCBString>’:
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:149:   instantiated from here
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:89: 警告:‘virtual RCDataType& RCDataType:perator=(const RCDataType&)’ 被隐藏
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:133: 警告:  为 ‘ValueBasic<RCBString>& ValueBasic<RCBString>:perator=(const ValueBasic<RCBString>&)’
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h: In instantiation of ‘ValueBasic<RCDateTime>’:
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:256:   instantiated from here
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:89: 警告:‘virtual RCDataType& RCDataType:perator=(const RCDataType&)’ 被隐藏
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:133: 警告:  为 ‘ValueBasic<RCDateTime>& ValueBasic<RCDateTime>::operator=(const ValueBasic<RCDateTime>&)’
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h: In function ‘double PowOfTen(short int)’:
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:775: 警告:在有符号和无符号整数表达式间比较
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:777: 警告:在有符号和无符号整数表达式间比较
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h: At global scope:
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h: In instantiation of ‘ValueBasic<RCNum>’:
    mysql-5.5.21/storage/brighthouse/types/RCNum.h:26:   instantiated from here
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:89: 警告:‘virtual RCDataType& RCDataType::operator=(const RCDataType&)’ 被隐藏
    mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:133: 警告:  为 ‘ValueBasic<RCNum>& ValueBasic<RCNum>::operator=(const ValueBasic<RCNum>&)’
    mysql-5.5.21/storage/brighthouse/system/ChannelOut.h:24: 警告:‘class ChannelOut’ 有虚函数却没有虚析构函数
    mysql-5.5.21/storage/brighthouse/compress/DataStream.h:29: 警告:‘class DataStream’ 有虚函数却没有虚析构函数
    mysql-5.5.21/storage/brighthouse/compress/DataStream.h:63: 警告:‘class BitStream’ 有虚函数却没有虚析构函数
    mysql-5.5.21/storage/brighthouse/system/ConnectionInfo.h:130: 警告:‘class SchedulableJob’ 有虚函数却没有虚析构函数
    mysql-5.5.21/storage/brighthouse/system/ConnectionInfo.h:168: 错误:‘ThreadKilledState_T’ 未声明
    mysql-5.5.21/storage/brighthouse/system/ConnectionInfo.h:169: 错误:‘ThreadKilledState_T’ 未声明
    mysql-5.5.21/storage/brighthouse/system/ConnectionInfo.h:218: 错误:‘ThreadKilledState_T’ 未声明
    mysql-5.5.21/storage/brighthouse/system/ConnectionInfo.h:219: 错误:‘ThreadKilledState_T’ 未声明
    mysql-5.5.21/storage/brighthouse/core/Filter.h:370: 警告:‘virtual FilterOnesIterator* FilterOnesIterator::Copy(int)’ 被隐藏
    mysql-5.5.21/storage/brighthouse/core/Filter.h:420: 警告:  为 ‘virtual FilterOnesIteratorOrdered* FilterOnesIteratorOrdered::Copy()’
    mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h: In static member function ‘static double QuickMath::nlog2n(uint)’:
    mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h:47: 警告:在有符号和无符号整数表达式间比较
    mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h: In static member function ‘static double QuickMath::log2(uint)’:
    mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h:49: 警告:在有符号和无符号整数表达式间比较
    mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h: In static member function ‘static double QuickMath::power10f(uint)’:
    mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h:53: 警告:在有符号和无符号整数表达式间比较
    mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h: In static member function ‘static _int64 QuickMath::power10i(uint)’:
    mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h:54: 警告:在有符号和无符号整数表达式间比较
    mysql-5.5.21/storage/brighthouse/compress/DataFilt.h: At global scope:
    mysql-5.5.21/storage/brighthouse/compress/DataFilt.h:36: 警告:‘class DataFiltNoTemp’ 有虚函数却没有虚析构函数
    mysql-5.5.21/storage/brighthouse/compress/NumCompressor.h:39: 警告:‘class NumCompressorBase’ 有虚函数却没有虚析构函数
    mysql-5.5.21/storage/brighthouse/system/MemoryManagement/TrackableObject.h:98: 警告:‘virtual void TrackableObject::Uncompress()’ 被隐藏
    mysql-5.5.21/storage/brighthouse/core/RCAttrPack.h:63: 警告:  为 ‘virtual void AttrPack::Uncompress(DomainInjectionManager&)’
    mysql-5.5.21/storage/brighthouse/core/Condition.h:31: 警告:‘virtual void Condition::AddDescriptor(CQTerm, Operator, CQTerm, CQTerm, TempTable*, int, char)’ 被隐藏
    mysql-5.5.21/storage/brighthouse/core/Condition.h:50: 警告:  为 ‘virtual void SingleTreeCondition::AddDescriptor(LogicalOperator, CQTerm, Operator, CQTerm, CQTerm, TempTable*, int, char)’
    mysql-5.5.21/storage/brighthouse/core/Condition.h:32: 警告:‘virtual void Condition::AddDescriptor(DescTree*, TempTable*, int)’ 被隐藏
    mysql-5.5.21/storage/brighthouse/core/Condition.h:50: 警告:  为 ‘virtual void SingleTreeCondition::AddDescriptor(LogicalOperator, CQTerm, Operator, CQTerm, CQTerm, TempTable*, int, char)’
    mysql-5.5.21/storage/brighthouse/core/Condition.h:33: 警告:‘virtual void Condition::AddDescriptor(const Descriptor&)’ 被隐藏
    mysql-5.5.21/storage/brighthouse/core/Condition.h:50: 警告:  为 ‘virtual void SingleTreeCondition::AddDescriptor(LogicalOperator, CQTerm, Operator, CQTerm, CQTerm, TempTable*, int, char)’
    mysql-5.5.21/storage/brighthouse/core/MIIterator.h: In member function ‘void MIIterator::InitNextPackrow()’:
    mysql-5.5.21/storage/brighthouse/core/MIIterator.h:223: 警告:在有符号和无符号整数表达式间比较
    mysql-5.5.21/storage/brighthouse/core/PackGuardian.h: At global scope:
    mysql-5.5.21/storage/brighthouse/core/PackGuardian.h:41: 警告:‘class VCPackGuardian’ 有虚函数却没有虚析构函数
    mysql-5.5.21/storage/brighthouse/system/MemoryManagement/TrackableObject.h:95: 警告:‘virtual bool TrackableObject::UpToDate()’ 被隐藏
    mysql-5.5.21/storage/brighthouse/core/RSI_CMap.h:54: 警告:  为 ‘bool RSIndex_CMap::UpToDate(_int64, int)’
    mysql-5.5.21/storage/brighthouse/system/MemoryManagement/TrackableObject.h:95: 警告:‘virtual bool TrackableObject::UpToDate()’ 被隐藏
    mysql-5.5.21/storage/brighthouse/core/RSI_Histogram.h:52: 警告:  为 ‘bool RSIndex_Hist::UpToDate(_int64, int)’
    mysql-5.5.21/storage/brighthouse/core/RSI_Histogram.h: In member function ‘bool RSIndex_Hist::ExactMode(_int64, _int64)’:
    mysql-5.5.21/storage/brighthouse/core/RSI_Histogram.h:77: 警告:在有符号和无符号整数表达式间比较
    mysql-5.5.21/storage/brighthouse/core/RCAttr.h: At global scope:
    mysql-5.5.21/storage/brighthouse/core/RCAttr.h:349: 警告:‘virtual void RCAttr:ockPackForUse(unsigned int, ConnectionInfo&)’ 被隐藏
    mysql-5.5.21/storage/brighthouse/loader/RCAttrLoadBase.h:33: 警告:  为 ‘virtual void RCAttrLoadBase:ockPackForUse(unsigned int)’
    make[2]: *** [storage/brighthouse/CMakeFiles/brighthouse.dir/common/TxtDataFormat.cpp.o] 错误 1
    make[1]: *** [storage/brighthouse/CMakeFiles/brighthouse.dir/all] 错误 2
    make: *** [all] 错误 2
      

  2.   

    到infobright.org下载一个免费版的rpm包直接安装
      

  3.   

    两个论坛上回复都一样。能安装当然就直接装了。
    我现在要调试源码,不是直接拿来用,想集成在一个mysql里。这样调试也方便