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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

497 Views
865500712
Contributor I

......

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

Labels (2)
0 Kudos
1 Reply

129 Views
jimmychan
NXP TechSupport
NXP TechSupport

according to the error message, hashtable_iterator_value’ has defined in hashtable_itr.h. You can try to comment out it in the .h file.

0 Kudos