AnsweredAssumed Answered

Android4.4.2 第一次make 后hashtable_itr.c报错,求大神帮忙

Question asked by 黄 棚 on Jun 11, 2018
Latest reply on Jun 11, 2018 by jimmychan

......

host C: mkfs.ubifs <= external/mtd-utils/mkfs.ubifs/compr.c
In file included from external/mtd-utils/mkfs.ubifs/mkfs.ubifs.h:54:0,
                 from external/mtd-utils/mkfs.ubifs/compr.c:33:
external/mtd-utils/mkfs.ubifs/ubifs.h: In function ‘ubifs_idx_branch’:
external/mtd-utils/mkfs.ubifs/ubifs.h:426:55: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
  return (struct ubifs_branch *)((void *)idx->branches +
                                                       ^
In file included from external/mtd-utils/mkfs.ubifs/mkfs.ubifs.h:55:0,
                 from external/mtd-utils/mkfs.ubifs/compr.c:33:
external/mtd-utils/mkfs.ubifs/key.h: In function ‘key_write’:
external/mtd-utils/mkfs.ubifs/key.h:148:12: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
  memset(to + 8, 0, UBIFS_MAX_KEY_LEN - 8);
            ^
host C: mkfs.ubifs <= external/mtd-utils/mkfs.ubifs/hashtable/hashtable.c
host C: mkfs.ubifs <= external/mtd-utils/mkfs.ubifs/hashtable/hashtable_itr.c
external/mtd-utils/mkfs.ubifs/hashtable/hashtable_itr.c:42:1: error: redefinition of ‘hashtable_iterator_key’
 hashtable_iterator_key(struct hashtable_itr *i)
 ^
In file included from external/mtd-utils/mkfs.ubifs/hashtable/hashtable_itr.c:5:0:
external/mtd-utils/mkfs.ubifs/hashtable/hashtable_itr.h:32:1: note: previous definition of ‘hashtable_iterator_key’ was here
 hashtable_iterator_key(struct hashtable_itr *i)
 ^
external/mtd-utils/mkfs.ubifs/hashtable/hashtable_itr.c:46:1: error: redefinition of ‘hashtable_iterator_value’
 hashtable_iterator_value(struct hashtable_itr *i)
 ^
In file included from external/mtd-utils/mkfs.ubifs/hashtable/hashtable_itr.c:5:0:
external/mtd-utils/mkfs.ubifs/hashtable/hashtable_itr.h:41:1: note: previous definition of ‘hashtable_iterator_value’ was here
 hashtable_iterator_value(struct hashtable_itr *i)
 ^
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/hashtable/hashtable_itr.o] Error 1

Outcomes