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