Building issues of open source projects

1,gdb

    如果编译用版本控制工具从code repository获得的mainline代码,要确定安装texinfo, flex和bison包。

    并给gdb/remote.c打上一下补丁。  


    buf_len = strlen (rs->buf);
 
    /* Further sanity checks, with knowledge of the architecture.  */
+ #if 0
    if (buf_len > 2 * rsa->sizeof_g_packet)
      error (_( "Remote 'g' packet reply is too long: %s" ), rs->buf);
-
+ #endif
if (buf_len > 2 * rsa->sizeof_g_packet) {
+     rsa->sizeof_g_packet = buf_len ;
+     for (i = 0; i < gdbarch_num_regs (gdbarch); i++) {
+         if (rsa->regs[i].pnum == -1)
+             continue ;
+         if (rsa->regs[i].offset >= rsa->sizeof_g_packet)
+             rsa->regs[i].in_g_packet = 0;
+         else
+             rsa->regs[i].in_g_packet = 1;
+     }
+  }
    /* Save the size of the packet sent to us by the target.  It is used
       as a heuristic when determining the max size of packets that the
       target can safely receive.  */

2,qemu

    安装libsdl1.2-dev,不然qemu启动后可能没有图形界面。启动后会卡在 "VNC server running on xxxx"

3,libvirt

      安装libtool包,不然autogen.sh运行失败。

      先运行autogen.sh生成configure

      安装gettext包

     安装libgnutls-dev包

4,QPID

      安装uuid-dev,提供uuid/uuid.h头文件

      安装libsasl2-dev,提供sasl/sasl.h头文件

      安装sasl2-bin,提供saslpasswd2

      安装libboost-program-options-dev,提供boost_program_options

      安装libboost-filesystem-dev,提供boost_filesystem

      打上fix-qpid-link-problem.patch补丁

      在运行configure前,先设置环境变量export LDFLAGS=-L<build-dir>/src/.libs,解决cannot find libxxx问题。

      使用python setup.py install安装qpid-config等工具后,设置环境变量export PYTHONPATH=/home/xxx/workspace/qpid/qpid/python:/home/xxx/workspace/qpid/qpid/extras/qmf/src/py

      https://issues.apache.org/jira/browse/QPID-3657



参考:

     http://fedoraproject.org/wiki/UnderstandingDSOLinkChange

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值