Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正编译过程中遇到的一些问题 #8

Merged
merged 2 commits into from Jun 15, 2018

Conversation

troycheng
Copy link
Contributor

本次修正:

  • 修正 Install 文档中关于 gcc 版本的说明,需要支持 c++11
  • tseer 的 CMakeLists.txt文件中,编译选项增加-std=c++11
  • 修正 tars 编译失败但编译脚本提示编译成功并继续执行的问题
  • 修正 TseerAgent 中一处 makepair 显示声明参数类型导致某些编译器类型推断错误的问题

未处理

  • TseerServer/src/FileWriterFactory.h 对 tars/include/util/tc_functor.h 和 tc_lock.h 两个头文件的依赖,因为tars 的 master 版本已经去除了这两个文件,最好的修正方法是去除代码中对TC_Functor的使用,否则仍然无法编译通过
  • RequestEtcdCallback::onResponse 偶发 core 的问题
  • web 管理工具中idc 无法设置的问题,同时 etcd 日志提示/idc_rule Key not found

建议

  • etcd 的下载默认路径是在/data/tseer_temp 下,这个路径对非 root 用户不友好,而且不查看安装脚本也不会知道为何下载失败,建议更改

最后,tseer 是目前为止看到的完成度较高的开源服务发现框架,希望能够完善使用说明,增强 web 管理工具的功能,造福广大 IT 同仁!

修正:
1. deploy_tars.sh在 tars 没有编译成功时,仍返回正确的问题,该问题会导致 deploy 带着缺失 tars 的错误继续向下执行
2. 修正Tseer和 TseerAgent 的 CMakeLists.txt缺少-std=c++11选项的问题
3. 修正 TseerAgent 里一处makepair 显示指定类型导致类型推断错误的问题
修正依赖的 GCC 版本,需要支持完成的 c++11
@troycheng troycheng mentioned this pull request Jun 15, 2018
@loveyacper loveyacper merged commit 17f6748 into Tencent:master Jun 15, 2018
@loveyacper
Copy link
Contributor

已经fix编译问题

@troycheng
Copy link
Contributor Author

确认,编译的 issue 我先 close 了,那个 core 的问题……没有稳定复现条件,随缘吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants