MariaDB社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2054|回复: 4
打印 上一主题 下一主题

Mysql5.5怎样编译集成infobright引擎?

[复制链接]
跳转到指定楼层
1#
发表于 2012-6-28 16:42:56 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
引擎文件用的是infobright.4.0.6的,配置文件按其他存储引擎修改的,改了一些选项,去掉 -fno-exceptions -fno-rtti,报以下错:

/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/RangeCoder.h:61: 警告:忽略 #pragma warning
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/RangeCoder.h:62: 警告:忽略 #pragma warning
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/RangeCoder.h:119: 警告:忽略 #pragma warning
/home/XXX/mysql/mysql-5.5.21/sql/set_var.h: In member function ‘uchar* sys_var::session_var_ptr(THD*)’:
/home/XXX/mysql/mysql-5.5.21/sql/set_var.h:169: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/opt_range.h: At global scope:
/home/XXX/mysql/mysql-5.5.21/sql/opt_range.h:531: 错误:ISO C++ 不允许声明无类型的 ‘Unique’
/home/XXX/mysql/mysql-5.5.21/sql/opt_range.h:531: 错误:expected ‘;’ before ‘*’ token
/home/XXX/mysql/mysql-5.5.21/sql/opt_range.h: In member function ‘bool SQL_SELECT::skip_record(THD*, bool*)’:
/home/XXX/mysql/mysql-5.5.21/sql/opt_range.h:889: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h: At global scope:
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:352: 错误:字段 ‘tmp_table_param’ 类型不完全
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:355: 错误:ISO C++ 不允许声明无类型的 ‘SELECT_LEX_UNIT’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:355: 错误:expected ‘;’ before ‘*’ token
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:357: 错误:ISO C++ 不允许声明无类型的 ‘SELECT_LEX’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:357: 错误:expected ‘;’ before ‘*’ token
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:453: 错误:ISO C++ 不允许声明无类型的 ‘SORT_FIELD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:453: 错误:expected ‘;’ before ‘*’ token
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:525: 错误:‘SELECT_LEX’ 未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:526: 错误:‘SELECT_LEX_UNIT’ 未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h: In member function ‘void JOIN::init(THD*, List<Item>&, ulonglong, select_result*)’:
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:483: 错误:‘sortorder’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:492: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:493: 错误:‘select_lex’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:516: 错误:‘tmp_table_param’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h: In member function ‘bool JOIN::send_row_on_empty_set()’:
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:569: 错误:‘tmp_table_param’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h: In member function ‘bool JOIN::is_top_level_join() const’:
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:575: 错误:‘unit’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:575: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:576: 错误:‘select_lex’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h: At global scope:
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:603: 错误:变量或字段 ‘count_field_types’ 声明为 void
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:603: 错误:‘SELECT_LEX’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:603: 错误:‘select_lex’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:603: 错误:expected primary-expression before ‘*’ token
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:603: 错误:‘param’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:604: 错误:expected primary-expression before ‘&’ token
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:604: 错误:‘fields’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:604: 错误:expected primary-expression before ‘bool’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:604: 错误:initializer 表达式列表被看作复合表达式
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:621: 错误:‘Item_func’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:621: 错误:‘func_item’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:621: 错误:expected primary-expression before ‘*’ token
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:621: 错误:‘args’ 在此作用域中尚未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:621: 错误:expected primary-expression before ‘bool’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:621: 错误:initializer 表达式列表被看作复合表达式
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h: In constructor ‘store_key::store_key(THD*, Field*, uchar*, uchar*, uint)’:
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:651: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h: In member function ‘store_key::store_key_result store_key::copy()’:
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:667: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:668: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:669: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:671: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:675: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:676: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h: In member function ‘virtual store_key::store_key_result store_key_item::copy_inner()’:
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:747: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h: In member function ‘virtual store_key::store_key_result store_key_const_item::copy_inner()’:
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:787: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h: At global scope:
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:801: 错误:expected constructor, destructor, or type conversion before ‘*’ token
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:808: 错误:‘SELECT_LEX’ 未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:817: 错误:‘SELECT_LEX_UNIT’ 未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:818: 错误:‘SELECT_LEX’ 未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:819: 错误:‘SELECT_LEX’ 未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:820: 错误:‘SELECT_LEX_UNIT’ 未声明
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h: In function ‘bool optimizer_flag(THD*, uint)’:
/home/XXX/mysql/mysql-5.5.21/sql/sql_select.h:843: 错误:invalid use of undefined type ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/include/mysql/plugin.h:44: 错误:forward declaration of ‘struct THD’
/home/XXX/mysql/mysql-5.5.21/sql/sp_rcontext.h: At global scope:
/home/XXX/mysql/mysql-5.5.21/sql/sp_rcontext.h:269: 错误:expected class-name before ‘{’ token
/home/XXX/mysql/mysql-5.5.21/sql/sp_rcontext.h:269: 警告:‘class Select_fetch_into_spvars’ 有虚函数却没有虚析构函数
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/common/mysql_gate.h:100: 错误:‘killed_state’ 在类 ‘THD’ 中没有命名一个类型
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h: In instantiation of ‘ValueBasic<RCBString>’:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:149:   instantiated from here
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:89: 警告:‘virtual RCDataType& RCDataType:perator=(const RCDataType&)’ 被隐藏
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:133: 警告:  为 ‘ValueBasic<RCBString>& ValueBasic<RCBString>:perator=(const ValueBasic<RCBString>&)’
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h: In instantiation of ‘ValueBasic<RCDateTime>’:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:256:   instantiated from here
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:89: 警告:‘virtual RCDataType& RCDataType:perator=(const RCDataType&)’ 被隐藏
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:133: 警告:  为 ‘ValueBasic<RCDateTime>& ValueBasic<RCDateTime>::operator=(const ValueBasic<RCDateTime>&)’
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h: In function ‘double PowOfTen(short int)’:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:775: 警告:在有符号和无符号整数表达式间比较
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:777: 警告:在有符号和无符号整数表达式间比较
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h: At global scope:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h: In instantiation of ‘ValueBasic<RCNum>’:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCNum.h:26:   instantiated from here
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:89: 警告:‘virtual RCDataType& RCDataType::operator=(const RCDataType&)’ 被隐藏
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/types/RCDataTypes.h:133: 警告:  为 ‘ValueBasic<RCNum>& ValueBasic<RCNum>::operator=(const ValueBasic<RCNum>&)’
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/system/ChannelOut.h:24: 警告:‘class ChannelOut’ 有虚函数却没有虚析构函数
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/DataStream.h:29: 警告:‘class DataStream’ 有虚函数却没有虚析构函数
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/DataStream.h:63: 警告:‘class BitStream’ 有虚函数却没有虚析构函数
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/system/ConnectionInfo.h:130: 警告:‘class SchedulableJob’ 有虚函数却没有虚析构函数
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/system/ConnectionInfo.h:168: 错误:‘ThreadKilledState_T’ 未声明
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/system/ConnectionInfo.h:169: 错误:‘ThreadKilledState_T’ 未声明
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/system/ConnectionInfo.h:218: 错误:‘ThreadKilledState_T’ 未声明
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/system/ConnectionInfo.h:219: 错误:‘ThreadKilledState_T’ 未声明
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/Filter.h:370: 警告:‘virtual FilterOnesIterator* FilterOnesIterator::Copy(int)’ 被隐藏
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/Filter.h:420: 警告:  为 ‘virtual FilterOnesIteratorOrdered* FilterOnesIteratorOrdered::Copy()’
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h: In static member function ‘static double QuickMath::nlog2n(uint)’:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h:47: 警告:在有符号和无符号整数表达式间比较
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h: In static member function ‘static double QuickMath::log2(uint)’:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h:49: 警告:在有符号和无符号整数表达式间比较
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h: In static member function ‘static double QuickMath::power10f(uint)’:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h:53: 警告:在有符号和无符号整数表达式间比较
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h: In static member function ‘static _int64 QuickMath::power10i(uint)’:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/../core/QuickMath.h:54: 警告:在有符号和无符号整数表达式间比较
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/DataFilt.h: At global scope:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/DataFilt.h:36: 警告:‘class DataFiltNoTemp’ 有虚函数却没有虚析构函数
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/compress/NumCompressor.h:39: 警告:‘class NumCompressorBase’ 有虚函数却没有虚析构函数
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/system/MemoryManagement/TrackableObject.h:98: 警告:‘virtual void TrackableObject::Uncompress()’ 被隐藏
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/RCAttrPack.h:63: 警告:  为 ‘virtual void AttrPack::Uncompress(DomainInjectionManager&)’
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/Condition.h:31: 警告:‘virtual void Condition::AddDescriptor(CQTerm, Operator, CQTerm, CQTerm, TempTable*, int, char)’ 被隐藏
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/Condition.h:50: 警告:  为 ‘virtual void SingleTreeCondition::AddDescriptor(LogicalOperator, CQTerm, Operator, CQTerm, CQTerm, TempTable*, int, char)’
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/Condition.h:32: 警告:‘virtual void Condition::AddDescriptor(DescTree*, TempTable*, int)’ 被隐藏
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/Condition.h:50: 警告:  为 ‘virtual void SingleTreeCondition::AddDescriptor(LogicalOperator, CQTerm, Operator, CQTerm, CQTerm, TempTable*, int, char)’
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/Condition.h:33: 警告:‘virtual void Condition::AddDescriptor(const Descriptor&)’ 被隐藏
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/Condition.h:50: 警告:  为 ‘virtual void SingleTreeCondition::AddDescriptor(LogicalOperator, CQTerm, Operator, CQTerm, CQTerm, TempTable*, int, char)’
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/MIIterator.h: In member function ‘void MIIterator::InitNextPackrow()’:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/MIIterator.h:223: 警告:在有符号和无符号整数表达式间比较
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/PackGuardian.h: At global scope:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/PackGuardian.h:41: 警告:‘class VCPackGuardian’ 有虚函数却没有虚析构函数
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/system/MemoryManagement/TrackableObject.h:95: 警告:‘virtual bool TrackableObject::UpToDate()’ 被隐藏
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/RSI_CMap.h:54: 警告:  为 ‘bool RSIndex_CMap::UpToDate(_int64, int)’
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/system/MemoryManagement/TrackableObject.h:95: 警告:‘virtual bool TrackableObject::UpToDate()’ 被隐藏
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/RSI_Histogram.h:52: 警告:  为 ‘bool RSIndex_Hist::UpToDate(_int64, int)’
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/RSI_Histogram.h: In member function ‘bool RSIndex_Hist::ExactMode(_int64, _int64)’:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/RSI_Histogram.h:77: 警告:在有符号和无符号整数表达式间比较
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/RCAttr.h: At global scope:
/home/XXX/mysql/mysql-5.5.21/storage/brighthouse/core/RCAttr.h:349: 警告:‘virtual void RCAttr:ockPackForUse(unsigned int, ConnectionInfo&)’ 被隐藏
/home/XXX/mysql/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
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏1 转播转播 分享分享 分享淘帖 顶 踩
2#
发表于 2012-6-28 17:06:48 | 只看该作者
编译就别折腾了,直接到官网下rpm包或者tar包,按照官方doc中方法安装,一点问题都没有
3#
 楼主| 发表于 2012-6-29 09:24:36 | 只看该作者
能直接安装当然就直接装了
我现在要关注源码调试,不是直接用,想集成在一个Mysql里,尤其是5.5里。这样调试也方便
4#
发表于 2012-7-2 10:43:23 | 只看该作者
很特殊的需求,尽量避免吧,跳跳大路通向光明...
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|MariaDB社区 ( 京ICP备07012489号    |
业务联系: QQ:48474881; 邮箱: 48474881@qq.com; 电话:13911732319
声明:本站部分文章是网友转载,若未经作者同意或署名有误,请联系网站管理员。

GMT+8, 2024-11-1 14:33 , Processed in 0.062697 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表