[Mona] binutils移植続き

  1. objalloc.c:99: error: `ptrdiff_t' undeclared (first use in this function)
    1. xmalloc.cに ptrdiff_tがあったのでぱくる #define ptrdiff_t long
  2. obstack.c:115: error: `ptrdiff_t' undeclared (first use in this function)
    1. obstack.h に ptrdiff_t 追加
  3. strerror.c:20:19: errno.h: No such file or directory
    1. includeコメントアウト
  4. strsingnal.c
    1. signal.h includeをコメントアウト
  5. ここまでで libbertyクリア
  6. ここから bfd
  7. bfd/Makefile
    1. ALL_CFLAGS= -I /cygdrive/c/Mona-binutils/monac--/monacapi/include/monac -I /cygdrive/c/Mona-binutils/monac--/monacapi/include -D_GNU_SOURCE $(CSEARCH) $(CSWITCHES) $(CFLAGS)
  8. sysdep.h:34:22: sys/stat.h: No such file or directory
    1. includeをいろいろコメントアウト
  9. archive.c:133:19: errno.h: No such file or directory
    1. includeをコメントアウト
  10. archive.c:1343: error: storage size of `status' isn't known
    1. bfd_ar_hdr_from_filesystem (abfd, filename) の中身をコメントアウトして return 0;
  11. archive.c:1429: error: dereferencing pointer to incomplete type
    1. bfd_generic_stat_arch_elt (abfd, buf) を↓のような感じでコメントアウト
#if 0
  foo (ar_date, st_mtime, 10);
  foo (ar_uid, st_uid, 10);
  foo (ar_gid, st_gid, 10);
  foo (ar_mode, st_mode, 8);

  buf->st_size = arch_eltdata (abfd)->parsed_size;
#endif
  1. archive.c:1871: error: storage size of `statbuf' isn't known
    1. bsd_write_armap (arch, elength, map, orl_count, stridx) をまるまるコメントアウト return false;
    2. ここまずそうだなぁ。。。。
  2. archive.c:1961: error: storage size of `archstat' isn't known
    1. コメントアウト return false
  3. bfd.c:706: error: storage size of `buf' isn't known
    1. return 0
  4. bfd.c:760: error: storage size of `buf' isn't known
    1. return 0;
  5. opncls.c:426: error: storage size of `buf' isn't known
  6. opncls.c:481: error: storage size of `buf' isn't known
  7. opncls.c:558: error: `ptrdiff_t' undeclared (first use in this function)
    1. #define ptrdiff_t long
  8. bfd.h:100: error: parse error before numeric constant
    1. typedef enum bfd_boolean {bfd_fffalse, bfd_tttrue} boolean;
  9. binary.c:74: error: storage size of `statbuf' isn't known
    1. return 0作戦
  10. ここから opcodesディレクト
  11. Makefile
    1. ALL_CFLAGS = -I /cygdrive/c/Mona-binutils/monac--/monacapi/include/monac -I /cygdrive/c/Mona-binutils/monac--/monacapi/include -D_GNU_SOURCE $(CSEARCH) $(CFLAGS)


ここで力尽きました・・・