blog.handlena.me

コード書いたりゲームしたり

GDB7.3のコンパイル

In file included from /usr/local/Cellar/python/2.7.2/include/python2.7/Python.h:126, from ./python/python-internal.h:47, from ./python/python.c:48: /usr/local/Cellar/python/2.7.2/include/python2.7/modsupport.h:27: warning: ‘PyArg_ParseTuple’ is an unrecognized format function type In file included from ./python/python.c:51: ../bfd/version.h:4:1: warning: "REPORT_BUGS_TO" redefined In file included from ./defs.h:26, from ./python/python.c:20: ./config.h:790:1: warning: this is the location of the previous definition ./python/python.c: In function ‘_initialize_python’: ./python/python.c:1019: error: ‘version’ undeclared (first use in this function) ./python/python.c:1019: error: (Each undeclared identifier is reported only once ./python/python.c:1019: error: for each function it appears in.) ./python/python.c:1020: error: ‘host_name’ undeclared (first use in this function) ./python/python.c:1022: error: ‘target_name’ undeclared (first use in this function) make[2]: *** [python.o] Error 1 make[1]: *** [all-gdb] Error 2 make: *** [all] Error 2gdb/python/python.c を見てみると、存在しないヘッダファイルを読み込むようになっていたので、その部分をいじってみた。

その後インストール。