Anyone here good with C++ or compiling a .cpp file? I need help - LG G5 Guides, News, & Discussion

I found a possible root tool, but the file is a .cpp and I am having an extremely difficult time compiling this. Please respond if you are able to help!

I could help with this. I'm running W7 and would probably be using Visual Studio to compile the executable. Also, I have a Sprint G5, and work in a service and repair center, so if things went south, I would be able to order myself a replacement should it get bricked.
How are you trying to compile the .cpp file?

I also am setup to compile cpp. What kind of trouble are you having compiling?

solitarywarrior1 said:
I also am setup to compile cpp. What kind of trouble are you having compiling?
Click to expand...
Click to collapse
f_scott_scrambled_eggs said:
I could help with this. I'm running W7 and would probably be using Visual Studio to compile the executable. Also, I have a Sprint G5, and work in a service and repair center, so if things went south, I would be able to order myself a replacement should it get bricked.
How are you trying to compile the .cpp file?
Click to expand...
Click to collapse
Here is the file I have been trying to compile: https://github.com/offensive-security/exploit-database/blob/master/platforms/android/local/39340.cpp
PLEASE test this out and tell me if you get anything!

Looks like it needs to be compiled on Android or Linux for this to work. I just tried to compile it using the IDE I have on my phone and it looks like there's a bug in the code with a char pointer being cast as an integer. Is that the issue you've been having with compiling too?
I could probably correct it, but I want to make sure that you're not having a different problem.

solitarywarrior1 said:
Looks like it needs to be compiled on Android or Linux for this to work. I just tried to compile it using the IDE I have on my phone and it looks like there's a bug in the code with a char pointer being cast as an integer. Is that the issue you've been having with compiling too?
I could probably correct it, but I want to make sure that you're not having a different problem.
Click to expand...
Click to collapse
Same problem I'm having...

Honestly Annoying said:
Same problem I'm having...
Click to expand...
Click to collapse
Hmm, what compiler are you using and did you write this code yourself or get it from somewhere?
Do you know if it's the location of the char the pointer points to that we need to cast as an int, or if we're trying to cast the char itself as one?

solitarywarrior1 said:
Hmm, what compiler are you using and did you write this code yourself or get it from somewhere?
Do you know if it's the location of the char the pointer points to that we need to cast as an int, or if we're trying to cast the char itself as one?
Click to expand...
Click to collapse
I did not write this code, I found it while browsing through Android exploits. This particular one was never assigned an official CVE so it might be unpatched.
And I have no idea what that second question means. This is my first time using cpp

Honestly Annoying said:
I did not write this code, I found it while browsing through Android exploits. This particular one was never assigned an official CVE so it might be unpatched.
And I have no idea what that second question means. This is my first time using cpp
Click to expand...
Click to collapse
A CHAR POINTER is a unit of data in C that stores the MEMORY ADDRESS of a variable of type CHARACTER
The code attempts to CAST (or pass the data into a function as if it were a different datatype) the CHAR POINTER as an INTEGER
Basically, I'm wondering if we want the address of the character that the pointer points to passed into the function as an integer, or the character itself.
I hope this explanation makes sense!

We're already over my head with this, but I've still got a disposable G5 to try it out on once we get it compiled, if needed.
What will this final output of this be? Is it an APK, or something that's run in the command line? Seems like it will allow us to get elevation in the shell so we can execute root commands, provided that the autorotate vulnerability is present in the ZV3/4 firmware.

solitarywarrior1 said:
A CHAR POINTER is a unit of data in C that stores the MEMORY ADDRESS of a variable of type CHARACTER
The code attempts to CAST (or pass the data into a function as if it were a different datatype) the CHAR POINTER as an INTEGER
Basically, I'm wondering if we want the address of the character that the pointer points to passed into the function as an integer, or the character itself.
I hope this explanation makes sense!
Click to expand...
Click to collapse
Thanks for that explanation, but I'm sorry I have no idea which one of those it is. Have you tried compiling it yet?

I'll have to edit the code before I can compile it (the compiler is throwing an error because the code is trying to do something either impossible or ambiguous) that's why I was asking my question above. I'll try a couple of things and report back later.

solitarywarrior1 said:
I'll have to edit the code before I can compile it (the compiler is throwing an error because the code is trying to do something either impossible or ambiguous) that's why I was asking my question above. I'll try a couple of things and report back later.
Click to expand...
Click to collapse
Thank you so much, this is all extremely helpful! Please keep us/me updated on what you are trying to do

solitarywarrior1 said:
Looks like it needs to be compiled on Android or Linux for this to work. I just tried to compile it using the IDE I have on my phone and it looks like there's a bug in the code with a char pointer being cast as an integer. Is that the issue you've been having with compiling too?
I could probably correct it, but I want to make sure that you're not having a different problem.
Click to expand...
Click to collapse
https://github.com/solitarywarrior1/G5-Root/blob/master/exploit.cpp
I've fixed the code so that it compiles.
All I did was replace a couple of casts to INT with the atoi() function that converts a character to an integer.
EDIT: We might be able to compile the code as originally posted if we compile on a non 64-bit device, as that error message is affected by the size of the memory address: 4 bytes for a 32-bit machine, 8 bytes for a 64-bit one.

solitarywarrior1 said:
https://github.com/solitarywarrior1/G5-Root/blob/master/exploit.cpp
I've fixed the code so that it compiles.
All I did was replace a couple of casts to INT with the atoi() function that converts a character to an integer.
EDIT: We might be able to compile the code as originally posted if we compile on a non 64-bit device, as that error message is affected by the size of the memory address: 4 bytes for a 32-bit machine, 8 bytes for a 64-bit one.
Click to expand...
Click to collapse
I'm still getting the same errors... I tried compiling on Ubuntu 32-bit and it gave me these errors (there are a lot)
exploit.cpp:57:10: error: ‘__le32’ does not name a type
__le32 s_clusters_per_group;
^
exploit.cpp:58:10: error: ‘__le32’ does not name a type
__le32 s_inodes_per_group;
^
exploit.cpp:59:10: error: ‘__le32’ does not name a type
__le32 s_mtime;
^
exploit.cpp:60:10: error: ‘__le32’ does not name a type
/*30*/ __le32 s_wtime;
^
exploit.cpp:61:10: error: ‘__le16’ does not name a type
__le16 s_mnt_count;
^
exploit.cpp:62:10: error: ‘__le16’ does not name a type
__le16 s_max_mnt_count;
^
exploit.cpp:63:10: error: ‘__le16’ does not name a type
__le16 s_magic;
^
exploit.cpp:64:10: error: ‘__le16’ does not name a type
__le16 s_state;
^
exploit.cpp:65:10: error: ‘__le16’ does not name a type
__le16 s_errors;
^
exploit.cpp:66:10: error: ‘__le16’ does not name a type
__le16 s_minor_rev_level;
^
exploit.cpp:67:10: error: ‘__le32’ does not name a type
/*40*/ __le32 s_lastcheck;
^
exploit.cpp:68:10: error: ‘__le32’ does not name a type
__le32 s_checkinterval;
^
exploit.cpp:69:10: error: ‘__le32’ does not name a type
__le32 s_creator_os;
^
exploit.cpp:70:10: error: ‘__le32’ does not name a type
__le32 s_rev_level;
^
exploit.cpp:71:10: error: ‘__le16’ does not name a type
/*50*/ __le16 s_def_resuid;
^
exploit.cpp:72:10: error: ‘__le16’ does not name a type
__le16 s_def_resgid;
^
exploit.cpp:73:10: error: ‘__le32’ does not name a type
__le32 s_first_ino;
^
exploit.cpp:74:10: error: ‘__le16’ does not name a type
__le16 s_inode_size;
^
exploit.cpp:75:10: error: ‘__le16’ does not name a type
__le16 s_block_group_nr;
^
exploit.cpp:76:10: error: ‘__le32’ does not name a type
__le32 s_feature_compat;
^
exploit.cpp:77:10: error: ‘__le32’ does not name a type
/*60*/ __le32 s_feature_incompat;
^
exploit.cpp:78:10: error: ‘__le32’ does not name a type
__le32 s_feature_ro_compat;
^
exploit.cpp:79:10: error: ‘__u8’ does not name a type
/*68*/ __u8 s_uuid[16];
^
exploit.cpp:82:10: error: ‘__le32’ does not name a type
/*C8*/ __le32 s_algorithm_usage_bitmap;
^
exploit.cpp:83:10: error: ‘__u8’ does not name a type
__u8 s_prealloc_blocks;
^
exploit.cpp:84:10: error: ‘__u8’ does not name a type
__u8 s_prealloc_dir_blocks;
^
exploit.cpp:85:10: error: ‘__le16’ does not name a type
__le16 s_reserved_gdt_blocks;
^
exploit.cpp:86:10: error: ‘__u8’ does not name a type
/*D0*/ __u8 s_journal_uuid[16];
^
exploit.cpp:87:10: error: ‘__le32’ does not name a type
/*E0*/ __le32 s_journal_inum;
^
exploit.cpp:88:10: error: ‘__le32’ does not name a type
__le32 s_journal_dev;
^
exploit.cpp:89:10: error: ‘__le32’ does not name a type
__le32 s_last_orphan;
^
exploit.cpp:90:10: error: ‘__le32’ does not name a type
__le32 s_hash_seed[4];
^
exploit.cpp:91:10: error: ‘__u8’ does not name a type
__u8 s_def_hash_version;
^
exploit.cpp:92:10: error: ‘__u8’ does not name a type
__u8 s_jnl_backup_type;
^
exploit.cpp:93:10: error: ‘__le16’ does not name a type
__le16 s_desc_size;
^
exploit.cpp:94:10: error: ‘__le32’ does not name a type
/*100*/ __le32 s_default_mount_opts;
^
exploit.cpp:95:10: error: ‘__le32’ does not name a type
__le32 s_first_meta_bg;
^
exploit.cpp:96:10: error: ‘__le32’ does not name a type
__le32 s_mkfs_time;
^
exploit.cpp:97:10: error: ‘__le32’ does not name a type
__le32 s_jnl_blocks[17];
^
exploit.cpp:98:10: error: ‘__le32’ does not name a type
/*150*/ __le32 s_blocks_count_hi;
^
exploit.cpp:99:10: error: ‘__le32’ does not name a type
__le32 s_r_blocks_count_hi;
^
exploit.cpp:100:10: error: ‘__le32’ does not name a type
__le32 s_free_blocks_count_hi;
^
exploit.cpp:101:10: error: ‘__le16’ does not name a type
__le16 s_min_extra_isize;
^
exploit.cpp:102:10: error: ‘__le16’ does not name a type
__le16 s_want_extra_isize;
^
exploit.cpp:103:10: error: ‘__le32’ does not name a type
__le32 s_flags;
^
exploit.cpp:104:10: error: ‘__le16’ does not name a type
__le16 s_raid_stride;
^
exploit.cpp:105:10: error: ‘__le16’ does not name a type
__le16 s_mmp_update_interval;
^
exploit.cpp:106:10: error: ‘__le64’ does not name a type
__le64 s_mmp_block;
^
exploit.cpp:107:10: error: ‘__le32’ does not name a type
__le32 s_raid_stripe_width;
^
exploit.cpp:108:10: error: ‘__u8’ does not name a type
__u8 s_log_groups_per_flex;
^
exploit.cpp:109:10: error: ‘__u8’ does not name a type
__u8 s_checksum_type;
^
exploit.cpp:110:10: error: ‘__u8’ does not name a type
__u8 s_encryption_level;
^
exploit.cpp:111:10: error: ‘__u8’ does not name a type
__u8 s_reserved_pad;
^
exploit.cpp:112:10: error: ‘__le64’ does not name a type
__le64 s_kbytes_written;
^
exploit.cpp:113:10: error: ‘__le32’ does not name a type
__le32 s_snapshot_inum;
^
exploit.cpp:114:10: error: ‘__le32’ does not name a type
__le32 s_snapshot_id;
^
exploit.cpp:115:10: error: ‘__le64’ does not name a type
__le64 s_snapshot_r_blocks_count;
^
exploit.cpp:116:10: error: ‘__le32’ does not name a type
__le32 s_snapshot_list;
^
exploit.cpp:118:10: error: ‘__le32’ does not name a type
__le32 s_error_count;
^
exploit.cpp:119:10: error: ‘__le32’ does not name a type
__le32 s_first_error_time;
^
exploit.cpp:120:10: error: ‘__le32’ does not name a type
__le32 s_first_error_ino;
^
exploit.cpp:121:10: error: ‘__le64’ does not name a type
__le64 s_first_error_block;
^
exploit.cpp:122:10: error: ‘__u8’ does not name a type
__u8 s_first_error_func[32];
^
exploit.cpp:123:10: error: ‘__le32’ does not name a type
__le32 s_first_error_line;
^
exploit.cpp:124:10: error: ‘__le32’ does not name a type
__le32 s_last_error_time;
^
exploit.cpp:125:10: error: ‘__le32’ does not name a type
__le32 s_last_error_ino;
^
exploit.cpp:126:10: error: ‘__le32’ does not name a type
__le32 s_last_error_line;
^
exploit.cpp:127:10: error: ‘__le64’ does not name a type
__le64 s_last_error_block;
^
exploit.cpp:128:10: error: ‘__u8’ does not name a type
__u8 s_last_error_func[32];
^
exploit.cpp:130:10: error: ‘__u8’ does not name a type
__u8 s_mount_opts[64];
^
exploit.cpp:131:10: error: ‘__le32’ does not name a type
__le32 s_usr_quota_inum;
^
exploit.cpp:132:10: error: ‘__le32’ does not name a type
__le32 s_grp_quota_inum;
^
exploit.cpp:133:10: error: ‘__le32’ does not name a type
__le32 s_overhead_clusters;
^
exploit.cpp:134:10: error: ‘__le32’ does not name a type
__le32 s_backup_bgs[2];
^
exploit.cpp:135:10: error: ‘__u8’ does not name a type
__u8 s_encrypt_algos[4];
^
exploit.cpp:136:10: error: ‘__u8’ does not name a type
__u8 s_encrypt_pw_salt[16];
^
exploit.cpp:137:10: error: ‘__le32’ does not name a type
__le32 s_lpf_ino;
^
exploit.cpp:138:10: error: ‘__le32’ does not name a type
__le32 s_prj_quota_inum;
^
exploit.cpp:139:10: error: ‘__le32’ does not name a type
__le32 s_checksum_seed;
^
exploit.cpp:140:10: error: ‘__le32’ does not name a type
__le32 s_reserved[98];
^
exploit.cpp:141:9: error: ‘__le32’ does not name a type
__le32 s_checksum;
^
exploit.cpp:146:10: error: ‘__le32’ does not name a type
__le32 bg_block_bitmap_lo;
^
exploit.cpp:147:10: error: ‘__le32’ does not name a type
__le32 bg_inode_bitmap_lo;
^
exploit.cpp:148:10: error: ‘__le32’ does not name a type
__le32 bg_inode_table_lo;
^
exploit.cpp:149:10: error: ‘__le16’ does not name a type
__le16 bg_free_blocks_count_lo;
^
exploit.cpp:150:10: error: ‘__le16’ does not name a type
__le16 bg_free_inodes_count_lo;
^
exploit.cpp:151:10: error: ‘__le16’ does not name a type
__le16 bg_used_dirs_count_lo;
^
exploit.cpp:152:10: error: ‘__le16’ does not name a type
__le16 bg_flags;
^
exploit.cpp:153:10: error: ‘__le32’ does not name a type
__le32 bg_exclude_bitmap_lo;
^
exploit.cpp:154:10: error: ‘__le16’ does not name a type
__le16 bg_block_bitmap_csum_lo;
^
exploit.cpp:155:10: error: ‘__le16’ does not name a type
__le16 bg_inode_bitmap_csum_lo;
^
exploit.cpp:156:10: error: ‘__le16’ does not name a type
__le16 bg_itable_unused_lo;
^
exploit.cpp:157:10: error: ‘__le16’ does not name a type
__le16 bg_checksum;
^
exploit.cpp:158:10: error: ‘__le32’ does not name a type
__le32 bg_block_bitmap_hi;
^
exploit.cpp:159:10: error: ‘__le32’ does not name a type
__le32 bg_inode_bitmap_hi;
^
exploit.cpp:160:10: error: ‘__le32’ does not name a type
__le32 bg_inode_table_hi;
^
exploit.cpp:161:10: error: ‘__le16’ does not name a type
__le16 bg_free_blocks_count_hi;
^
exploit.cpp:162:10: error: ‘__le16’ does not name a type
__le16 bg_free_inodes_count_hi;
^
exploit.cpp:163:10: error: ‘__le16’ does not name a type
__le16 bg_used_dirs_count_hi;
^
exploit.cpp:164:10: error: ‘__le16’ does not name a type
__le16 bg_itable_unused_hi;
^
exploit.cpp:165:10: error: ‘__le32’ does not name a type
__le32 bg_exclude_bitmap_hi;
^
exploit.cpp:166:10: error: ‘__le16’ does not name a type
__le16 bg_block_bitmap_csum_hi;
^
exploit.cpp:167:10: error: ‘__le16’ does not name a type
__le16 bg_inode_bitmap_csum_hi;
^
exploit.cpp:168:10: error: ‘__u32’ does not name a type
__u32 bg_reserved;
^
exploit.cpp:172:10: error: ‘__le16’ does not name a type
__le16 i_mode;
^
exploit.cpp:173:10: error: ‘__le16’ does not name a type
__le16 i_uid;
^
exploit.cpp:174:10: error: ‘__le32’ does not name a type
__le32 i_size_lo;
^
exploit.cpp:175:10: error: ‘__le32’ does not name a type
__le32 i_atime;
^
exploit.cpp:176:10: error: ‘__le32’ does not name a type
__le32 i_ctime;
^
exploit.cpp:177:10: error: ‘__le32’ does not name a type
__le32 i_mtime;
^
exploit.cpp:178:10: error: ‘__le32’ does not name a type
__le32 i_dtime;
^
exploit.cpp:179:10: error: ‘__le16’ does not name a type
__le16 i_gid;
^
exploit.cpp:180:10: error: ‘__le16’ does not name a type
__le16 i_links_count;
^
exploit.cpp:181:10: error: ‘__le32’ does not name a type
__le32 i_blocks_lo;
^
exploit.cpp:182:10: error: ‘__le32’ does not name a type
__le32 i_flags;
^
exploit.cpp:185:26: error: ‘__le32’ does not name a type
__le32 l_i_version;
^
exploit.cpp:188:26: error: ‘__u32’ does not name a type
__u32 h_i_translator;
^
exploit.cpp:191:26: error: ‘__u32’ does not name a type
__u32 m_i_reserved1;
^
exploit.cpp:194:10: error: ‘__le32’ does not name a type
__le32 i_block[15];
^
exploit.cpp:195:10: error: ‘__le32’ does not name a type
__le32 i_generation;
^
exploit.cpp:196:10: error: ‘__le32’ does not name a type
__le32 i_file_acl_lo;
^
exploit.cpp:197:10: error: ‘__le32’ does not name a type
__le32 i_size_high;
^
exploit.cpp:198:10: error: ‘__le32’ does not name a type
__le32 i_obso_faddr;
^
exploit.cpp:201:26: error: ‘__le16’ does not name a type
__le16 l_i_blocks_high;
^
exploit.cpp:202:26: error: ‘__le16’ does not name a type
__le16 l_i_file_acl_high;
^
exploit.cpp:203:26: error: ‘__le16’ does not name a type
__le16 l_i_uid_high;
^
exploit.cpp:204:26: error: ‘__le16’ does not name a type
__le16 l_i_gid_high;
^
exploit.cpp:205:26: error: ‘__le16’ does not name a type
__le16 l_i_checksum_lo;
^
exploit.cpp:206:26: error: ‘__le16’ does not name a type
__le16 l_i_reserved;
^
exploit.cpp:209:26: error: ‘__le16’ does not name a type
__le16 h_i_reserved1;
^
exploit.cpp:210:26: error: ‘__u16’ does not name a type
__u16 h_i_mode_high;
^
exploit.cpp:211:26: error: ‘__u16’ does not name a type
__u16 h_i_uid_high;
^
exploit.cpp:212:26: error: ‘__u16’ does not name a type
__u16 h_i_gid_high;
^
exploit.cpp:213:26: error: ‘__u32’ does not name a type
__u32 h_i_author;
^
exploit.cpp:216:26: error: ‘__le16’ does not name a type
__le16 h_i_reserved1;
^
exploit.cpp:217:26: error: ‘__le16’ does not name a type
__le16 m_i_file_acl_high;
^
exploit.cpp:218:26: error: ‘__u32’ does not name a type
__u32 m_i_reserved2[2];
^
exploit.cpp:221:10: error: ‘__le16’ does not name a type
__le16 i_extra_isize;
^
exploit.cpp:222:10: error: ‘__le16’ does not name a type
__le16 i_checksum_hi;
^
exploit.cpp:223:10: error: ‘__le32’ does not name a type
__le32 i_ctime_extra;
^
exploit.cpp:224:10: error: ‘__le32’ does not name a type
__le32 i_mtime_extra;
^
exploit.cpp:225:10: error: ‘__le32’ does not name a type
__le32 i_atime_extra;
^
exploit.cpp:226:10: error: ‘__le32’ does not name a type
__le32 i_crtime;
^
exploit.cpp:227:10: error: ‘__le32’ does not name a type
__le32 i_crtime_extra;
^
exploit.cpp:228:10: error: ‘__le32’ does not name a type
__le32 i_version_hi;
^
exploit.cpp: In function ‘void get_system_dev(char*, int)’:
exploit.cpp:246:33: error: ‘memset’ was not declared in this scope
memset(buff, 0, sizeof(buff));
^
exploit.cpp:252:49: error: ‘strstr’ was not declared in this scope
int sres = atoi(strstr(buff, " /system "));
^
exploit.cpp:259:51: error: ‘strncpy’ was not declared in this scope
strncpy(link, &buff[pos], tmppos - pos);
^
exploit.cpp: In function ‘void second_step()’:
exploit.cpp:302:57: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__ino_t {aka long unsigned int}’ [-Wformat=]
printf("[+] Looking for inode no.: %llu\n", s.st_ino);
^
exploit.cpp:319:40: error: ‘struct ext4_super_block’ has no member named ‘s_log_block_size’
int block_size = 1024 << super.s_log_block_size;
^
exploit.cpp:320:37: error: ‘struct ext4_super_block’ has no member named ‘s_inodes_per_group’
int bg = (inodeno-1) /super.s_inodes_per_group;
^
exploit.cpp:322:44: error: ‘struct ext4_super_block’ has no member named ‘s_desc_size’
lseek(fd, block_size + bg * (super.s_desc_size ? super.s_desc_size : sizeof(struct ext4_group_desc) ), SEEK_SET);
^
exploit.cpp:322:64: error: ‘struct ext4_super_block’ has no member named ‘s_desc_size’
lseek(fd, block_size + bg * (super.s_desc_size ? super.s_desc_size : sizeof(struct ext4_group_desc) ), SEEK_SET);
^
exploit.cpp:326:50: error: ‘struct ext4_super_block’ has no member named ‘s_inodes_per_group’
unsigned int index = (inodeno-1) % super.s_inodes_per_group;
^
exploit.cpp:327:43: error: ‘struct ext4_super_block’ has no member named ‘s_inode_size’
unsigned int off = index * super.s_inode_size;
^
exploit.cpp:328:64: error: ‘struct ext4_group_desc’ has no member named ‘bg_inode_table_lo’
unsigned long total_offset = block_size + (group_descr.bg_inode_table_lo-1) * block_size + off;
^
exploit.cpp:333:18: error: ‘struct ext4_inode’ has no member named ‘i_size_lo’
if(inode.i_size_lo == s.st_size) {
^
exploit.cpp:334:13: error: ‘__le16’ was not declared in this scope
__le16 mode = 0;
^
exploit.cpp:334:20: error: expected ‘;’ before ‘mode’
__le16 mode = 0;
^
exploit.cpp:338:19: error: ‘struct ext4_inode’ has no member named ‘i_mode’
inode.i_mode = inode.i_mode | 0x800;
^
exploit.cpp:338:34: error: ‘struct ext4_inode’ has no member named ‘i_mode’
inode.i_mode = inode.i_mode | 0x800;
^
exploit.cpp:340:41: error: ‘struct ext4_inode’ has no member named ‘i_mode’
int modesize = sizeof(inode.i_mode);
^
exploit.cpp:341:39: error: ‘struct ext4_inode’ has no member named ‘i_mode’
int wr = write(fd, &inode.i_mode, modesize);
^
exploit.cpp: In function ‘bool isSensord(char*)’:
exploit.cpp:392:46: error: ‘strstr’ was not declared in this scope
if(strstr(buff, "/system/bin/sensord") != NULL)
^
exploit.cpp: In function ‘int main(int, char**)’:
exploit.cpp:444:30: error: ‘strstr’ was not declared in this scope
if( strstr( argv[1], "1" ) != NULL) {
^

You'll need to compile it on Android, methinks.
All of those elements that are throwing errors are android specific, I'll bet.
I use c4droid to compile on android, it's excellent and had git support.

solitarywarrior1 said:
You'll need to compile it on Android, methinks.
Click to expand...
Click to collapse
Ah OK, how do I do this?
EDIT: Just saw your edit, I'm trying to compile now

solitarywarrior1 said:
You'll need to compile it on Android, methinks.
All of those elements that are throwing errors are android specific, I'll bet.
I use c4droid to compile on android, it's excellent and had git support.
Click to expand...
Click to collapse
OK, so C4droid gives me this error: "/data/user/0/com.n0n3m4.droidc/files/temp.c:48: error ',' expected (got "s_inodes_count")". How can I fix this?
And here is what I compiled with CppDroid https://drive.google.com/open?id=0B2OlLU7vg4YzRHdwM0JoLWxla00. However, when I run the a.out file it gives me these errors
./a.out[1]: ??????: not found
./a.out[2]:
: not found
./a.out[3]: syntax error: '??
It also gives me some warnings while compiling about "implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned int)" and some "macro is not used" errors.
Can you help me fix these?

Huh, it compiled perfectly using c4droid on my phone. I DID install the gcc plugin, did you as well?

solitarywarrior1 said:
Huh, it compiled perfectly using c4droid on my phone. I DID install the gcc plugin, did you as well?
Click to expand...
Click to collapse
Yes, but it was giving me errors... can you send me the file that you compiled? It would be much appreciated!

Related

Compiling jb code for defy

can anyone guide how to compile original JB source code for motorola defy ........... i.e. how to make working JB rom for defy ... dont want to use cyanogen mod rom ............. want to create my own
can anyone guide
thank u!
it really helps! thanks for all the tips! master!
Sent from my MB526 using xda premium
nogoodusername said:
thank u!
it really helps! thanks for all the tips! master!
Sent from my MB526 using xda premium
Click to expand...
Click to collapse
i didnt get u!
what exactly you want to say?
Wrong section bro... this should go in Q&A or even in General, but definitely not here...
I think it is also a development part ........ building environment & development of custom rom from source ....
latadswapnil said:
I think it is also a development part ........ building environment & development of custom rom from source ....
Click to expand...
Click to collapse
Development section is meant for development not discussions, tutorials, How-Tos etc. This is where roms, mods and other cool stuff go. It is a place where something is being worked on and where devs and the community can contribute and work together. Questions are for the Q&A and General section whether or not they are development related has Hairo has said.
Kayant said:
Development section is meant for development not discussions, tutorials, How-Tos etc. This is where roms, mods and other cool stuff go. It is a place where something is being worked on and where devs and the community can contribute and work together. Questions are for the Q&A and General section whether or not they are development related has Hairo has said.
Click to expand...
Click to collapse
Ok but this can be moved to the respective section and answered there na?
I too want a lil novice guide on compiling roms
Sent from my MB525 using xda app-developers app
vedhasd said:
Ok but this can be moved to the respective section and answered there na?
I too want a lil novice guide on compiling roms
Sent from my MB525 using xda app-developers app
Click to expand...
Click to collapse
It will be soon
Then your best friend is search google, XDA and whatever else......however, if you know how to code then it should be easy if not look at my github and look at the commits I cherry-pick from our CM team those are what is need to get the defy to boot on an AOSP rom. Look at the android source code and see how it works you will know what to do from there look at other roms like AOKP, CM and CNA etc. When I ported AOKP and CNA and soon Slim i don't know how to code one bit however, I just know how to look at things and see how they work by searching, using my brain, comparing for hours and learning. Learning to use git is necessary for all this to happen it's quite easy once you get the hang of it just search the commands if you don't know what they mean or do.
Good luck and next time latadswapnil please post in the right section.
Moved to Q&A. Please do not posts questions in development sections.
TeeJay3800 said:
Moved to Q&A. Please do not posts questions in development sections.
Click to expand...
Click to collapse
Sorry
Sent from my MB525 using xda app-developers app
---------- Post added at 08:41 AM ---------- Previous post was at 08:37 AM ----------
@kayant yes dude, especially its very good of you, I have used ur aokp builds and luved it! And i just want from where to start...I have a lil knowledge of c,c++,java coding but don't know how to apply in compiling! I have done some apps...dunno if that knowledge is useful..!
Sent from my MB525 using xda app-developers app
sorry ...bro ...
i have sync the android source & build required environment .... please guide me to where to look & what are the important factors to look while learning . .
Kayant said:
It will be soon
Then your best friend is search google, XDA and whatever else......however, if you know how to code then it should be easy if not look at my github and look at the commits I cherry-pick from our CM team those are what is need to get the defy to boot on an AOSP rom. Look at the android source code and see how it works you will know what to do from there look at other roms like AOKP, CM and CNA etc. When I ported AOKP and CNA and soon Slim i don't know how to code one bit however, I just know how to look at things and see how they work by searching, using my brain, comparing for hours and learning. Learning to use git is necessary for all this to happen it's quite easy once you get the hang of it just search the commands if you don't know what they mean or do.
Good luck and next time latadswapnil please post in the right section.
Click to expand...
Click to collapse
Can you post some links!! to start from begin ....! it will be very helpful
latadswapnil said:
Can you post some links!! to start from begin ....! it will be very helpful
Click to expand...
Click to collapse
I won't post links as that will be spoon feeding and you can't do this if I do that
but search the general section i have a guide on compiling roms for the defy and also there's a thread where Quarx helped me when I was porting AOKP JB.
Good luck ^_^
It takes hours to compile the code ....... it will be helpful if you suggest ... some sort of changes for that we have to look..... before compiling
More or less....forum is made for helping each other......providing link will reduce the work......
Sent from my MB526 using xda app-developers app
latadswapnil said:
It takes hours to compile the code ....... it will be helpful if you suggest ... some sort of changes for that we have to look..... before compiling
More or less....forum is made for helping each other......providing link will reduce the work......
Sent from my MB526 using xda app-developers app
Click to expand...
Click to collapse
Yes but you wouldn't be learning the point of a forum is to give a guiding hand and you do the rest = learning less problems and person remembering that skill..... Well I ported gummy rom for the first time(even though it didn't boot probably in the end) no one helped me because I read around, read a lot before doing what I did and I have given a lot of info already on where to find stuff i cba to search it it's already out there for you. You just need to find it like i did
---------- Post added at 08:43 PM ---------- Previous post was at 08:41 PM ----------
vedhasd said:
@kayant yes dude, especially its very good of you, I have used ur aokp builds and luved it! And i just want from where to start...I have a lil knowledge of c,c++,java coding but don't know how to apply in compiling! I have done some apps...dunno if that knowledge is useful..!
Sent from my MB525 using xda app-developers app
Click to expand...
Click to collapse
Once you learn how AOSP works it should help you write in some new code if you want to add some new features and also to identify and fix errors when they come up when compiling.....
ERROR::!!!
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:98:39: error: invalid use of undefined type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:98:39: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:100:39: error: invalid use of undefined type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONN
MARK.c:100:39: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'connmark_tg_init':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:133:6: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:133:6: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:134:6: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:134:6: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'CONNMARK_parse':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:144:20: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:144:20: note: each undeclared identifier is reported only once for each function it appears in
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:144:18: warning: assignment makes integer from pointer without a cast [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:149:20: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:149:18: warning: assignment makes integer from pointer without a cast [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:152:20: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:152:18: warning: assignment makes integer from pointer without a cast [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'connmark_tg_parse':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:167:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:167:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:167:18: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:168:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:168:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:169:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:169:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:172:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:172:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:173:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:173:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:174:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:174:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:177:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:177:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:178:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:178:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:179:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:179:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:182:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:182:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:183:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:183:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:184:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:184:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:187:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:187:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:188:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:188:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:189:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:189:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:192:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:192:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:192:16: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:195:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:195:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:195:16: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:198:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:198:7: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:198:22: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:198:22: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'CONNMARK_print':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:229:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:234:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:238:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'connmark_tg_print':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:254:14: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:254:14: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:255:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:256:11: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:256:11: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:258:40: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:258:40: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:258:35: error: wrong type argument to bit-complement
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:259:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:259:16: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:259:32: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:259:32: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:260:36: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:260:36: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:260:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:261:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:261:16: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:262:37: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:262:37: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:262:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:263:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:263:16: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:263:25: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:264:37: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:264:37: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:264:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:15: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:15: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:29: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:29: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:11: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:11: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:269:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:11: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:11: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:20: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:41: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:41: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:50: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:272:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:272:16: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:272:32: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:272:32: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:273:43: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:273:43: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:273:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:15: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:15: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:29: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:29: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:11: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:11: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:278:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:11: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:11: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:20: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:41: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:41: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:50: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:281:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:281:16: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:281:32: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:281:32: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:282:46: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:282:46: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:282:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:15: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:15: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:29: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:29: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:11: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:11: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'CONNMARK_save':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:300:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:305:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:309:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'connmark_tg_save':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:332:14: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:332:14: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:333:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:40: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:40: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:54: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:54: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:3: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:3: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:336:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:14: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:14: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:28: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:28: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:10: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:10: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:340:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:14: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:14: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:28: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:28: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:10: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:10: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
ERROR::!!! Continue
target thumb C: libext <= out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_conntrack.c
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: At top level:
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: cast specifies array type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid operands to binary + (have 'struct xt_option_entry const *' and 'struct xt_option_entry const *')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: cast specifies array type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: wrong type argument to bit-complement
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid operands to binary & (have 'struct xt_option_entry const *' and 'struct xt_option_entry const *')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: initializer element is not constant
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: (near initialization for 'connmark_tg_reg[1].size')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: cast specifies array type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid operands to binary + (have 'struct xt_option_entry const *' and 'struct xt_option_entry const *')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: cast specifies array type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: wrong type argument to bit-complement
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid operands to binary & (have 'struct xt_option_entry const *' and 'struct xt_option_entry const *')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: initializer element is not constant
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: (near initialization for 'connmark_tg_reg[1].userspacesize')
make: *** [out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/defy_rom$ repo status platform/bionic
project bionic/ (*** NO BRANCH ***)
-- libc/kernel/common/linux/netfilter/.goutputstream-A166LW
-- libc/kernel/common/linux/netfilter/.goutputstream-C8EWLW
-- libc/kernel/common/linux/netfilter_ipv6/.goutputstream-I0Z6LW
got this while trying to build the source
first i have installed ubuntu 32bit as guest on virtual box & done all repo sync .........................& later i came to know i have to do it on the ubuntu 64 bit ...........so i have copied all source to host OS windows7 .........then i have installed ubuntu 64bit guest os & copied all source to it.....
then i have done all procedure again & also done repo sync again ........... only some updates downloaded & done successfuly
then tried to build the source & got the above error
You need to read around before trying. Have you done that yet??? You do know you're compiling for the galaxy nexus not the defy at the moment you need to add support for the defy through mk files and changing some things in some other places..... And try and condense the error log it's quite hard to following and am not going to know how to fix everything I have no programming skills it's must better to search first then if you can't find the answer then post..
Kayant said:
You need to read around before trying. Have you done that yet??? You do know you're compiling for the galaxy nexus not the defy at the moment you need to add support for the defy through mk files and changing some things in some other places..... And try and condense the error log it's quite hard to following and am not going to know how to fix everything I have no programming skills it's must better to search first then if you can't find the answer then post..
Click to expand...
Click to collapse
Yes i do know i am compiling for nexus .. but i am doing that for emulator purpose ...............
i read about that error ........ on google group ..but solution is not working & also ubuntu is having case sensitive file system
i am not getting what exactly to do because there is nothing more about it on google ..........
any developer can help me out here ?

Making a kernel....NEED HELP>>>>

ok i have decided to make my own kernel.....but i dont know what is wrong everything is just good but at the end i dont get anything...
The guides i am using :-
http://forum.xda-developers.com/showthread.php?t=1748297
http://forum.xda-developers.com/showthread.php?t=2021202
I am using a prebuild ubuntu build it contains all the packages....
Using matrix kernel source :-https://github.com/mathkid95/linux_lg_kitkat
And google toolchain.
This is what i get:-
[email protected]:~/android/kernel/kitkat$ export ARCH=arm
[email protected]:~/android/kernel/kitkat$ export CROSS_COMPILE=/home/android/android/toolchain/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-
[email protected]:~/android/kernel/kitkat$ make mako_defconfig
init/Kconfig:1265:warning: defaults for choice values not supported
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
#
# configuration written to .config
#
[email protected]:~/android/kernel/kitkat$ make -j4
scripts/kconfig/conf --silentoldconfig Kconfig
init/Kconfig:1265:warning: defaults for choice values not supported
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-msm/cpufreq.o
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_target':
arch/arm/mach-msm/cpufreq.c:103:2: error: implicit declaration of function 'cpufreq_frequency_get_table' [-Werror=implicit-function-declaration]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:103:8: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:104:2: error: implicit declaration of function 'cpufreq_frequency_table_target' [-Werror=implicit-function-declaration]
if (cpufreq_frequency_table_target(policy, table, target_freq, relation,
^
arch/arm/mach-msm/cpufreq.c:111:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
pr_debug("CPU[%d] target %d relation %d (%d-%d) selected %d\n",
^
In file included from include/linux/kernel.h:22:0,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/arm/mach-msm/cpufreq.c:22:
arch/arm/mach-msm/cpufreq.c:113:34: error: dereferencing pointer to incomplete type
policy->min, policy->max, table[index].frequency);
^
include/linux/printk.h:202:38: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
^
arch/arm/mach-msm/cpufreq.c:115:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
ret = set_cpu_freq(policy, table[index].frequency);
^
arch/arm/mach-msm/cpufreq.c:115:34: error: dereferencing pointer to incomplete type
ret = set_cpu_freq(policy, table[index].frequency);
^
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_limits_init':
arch/arm/mach-msm/cpufreq.c:145:9: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(cpu);
^
arch/arm/mach-msm/cpufreq.c:151:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:21: error: dereferencing pointer to incomplete type
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:38: error: 'CPUFREQ_TABLE_END' undeclared (first use in this function)
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:38: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-msm/cpufreq.c:152:4: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (table.frequency > max)
^
arch/arm/mach-msm/cpufreq.c:152:13: error: dereferencing pointer to incomplete type
if (table.frequency > max)
^
arch/arm/mach-msm/cpufreq.c:153:5: error: invalid use of undefined type 'struct cpufreq_frequency_table'
max = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:153:16: error: dereferencing pointer to incomplete type
max = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:154:4: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (table.frequency < min)
^
arch/arm/mach-msm/cpufreq.c:154:13: error: dereferencing pointer to incomplete type
if (table.frequency < min)
^
arch/arm/mach-msm/cpufreq.c:155:5: error: invalid use of undefined type 'struct cpufreq_frequency_table'
min = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:155:16: error: dereferencing pointer to incomplete type
min = table.frequency;
^
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_init':
arch/arm/mach-msm/cpufreq.c:201:8: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:212:2: error: implicit declaration of function 'cpufreq_frequency_table_cpuinfo' [-Werror=implicit-function-declaration]
if (cpufreq_frequency_table_cpuinfo(policy, table)) {
^
arch/arm/mach-msm/cpufreq.c:233:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (cur_freq != table[index].frequency) {
^
arch/arm/mach-msm/cpufreq.c:233:23: error: dereferencing pointer to incomplete type
if (cur_freq != table[index].frequency) {
^
arch/arm/mach-msm/cpufreq.c:235:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
ret = acpuclk_set_rate(policy->cpu, table[index].frequency,
^
arch/arm/mach-msm/cpufreq.c:235:44: error: dereferencing pointer to incomplete type
ret = acpuclk_set_rate(policy->cpu, table[index].frequency,
^
arch/arm/mach-msm/cpufreq.c:239:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
pr_info("cpufreq: cpu%d init at %d switching to %d\n",
^
In file included from include/linux/kernel.h:22:0,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/arm/mach-msm/cpufreq.c:22:
arch/arm/mach-msm/cpufreq.c:240:33: error: dereferencing pointer to incomplete type
policy->cpu, cur_freq, table[index].frequency);
^
include/linux/printk.h:179:34: note: in definition of macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^
arch/arm/mach-msm/cpufreq.c:241:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
cur_freq = table[index].frequency;
^
arch/arm/mach-msm/cpufreq.c:241:19: error: dereferencing pointer to incomplete type
cur_freq = table[index].frequency;
^
arch/arm/mach-msm/cpufreq.c: At top level:
arch/arm/mach-msm/cpufreq.c:310:3: error: 'cpufreq_freq_attr_scaling_available_freqs' undeclared here (not in a function)
&cpufreq_freq_attr_scaling_available_freqs,
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/cpufreq.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
GZIP kernel/config_data.gz
CHK kernel/config_data.h
[email protected]:~/android/kernel/kitkat$
Click to expand...
Click to collapse
help me guys...im doing this for the first time.......
What should i do...
Also tell me how can i add other kernel features like faux sound...thank you..

Chromium_org gives error all the time

Hello, I'm trying to compile OmniRom but after last repo sync I'm getting this error:
Code:
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/home/lozohcum/OmniRom/out/target/product/jlo/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
/home/lozohcum/OmniRom/out/target/product/jlo/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
/home/lozohcum/OmniRom/out/target/product/jlo/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
/home/lozohcum/OmniRom/out/target/product/jlo/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token
external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
cc1plus: all warnings being treated as errors
I have tried with chromium_org from CM11 (which compile without any errors) and the same thing appear.
cc1plus: all warnings being treated as errors
Click to expand...
Click to collapse
So I suppose adding a flag somewhere will fix that error but I'm not sure which flag and where.
Do you have any clue how to solve it?

Varios issues porting AOSP/CyanogenMod/Any other such ROM(s)...

Hey everyone!
As the title says, but more exactly I kinda lost my mind trying to port custom firmware for Asus A500CG. And all of it end up with errors with "hardware/intel/img/psb_video/src/android/psb_android_glue.cpp".
I've used the master branch of the device tree here by quanganh2627. I'm trying to build Android M currently . I've disabled SELinux things. And to solve the psb_video error I removed the folder itself. I get a successful build but ends up with building the one for medfield. I'll post the error in the next post. And could someone guide me properly to build the ROM and for the right device.
Also I'm building it on Ubuntu 14.04.02.
I get the Medfield info because it literally gets stuck in the splash screen, so I used adb devices & I used adb logcat.
I see that most of the services fail to start & to be more precise a bootloop without boot animation.
I'd appreciate help from anyone with more experience working with custom firmware.
frameworks/native/include/binder/IInterface.h:42:22: note: template argument deduction/substitution failed:
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:124:21: error: NULL used in arithmetic [-Werror=pointer-arith]
if (imds == NULL)
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:12: error: 'IMultiDisplayInfoProvider' was not declared in this scope
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:37: error: template argument 1 is invalid
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:43: error: invalid type in declaration before '=' token
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:49: error: base operand of '->' is not a pointer
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:127:20: error: NULL used in arithmetic [-Werror=pointer-arith]
if (mds != NULL) {
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:128:22: error: base operand of '->' is not a pointer
ret = mds->getVppState();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:130:13: error: converting to non-pointer type 'int' from NULL [-Werror=conversion-null]
mds = NULL;
^
cc1plus: all warnings being treated as errors
make: *** [/home/paletrox-z/euphoria/out/target/product/a500cg/obj/SHARED_LIBRARIES/pvr_drv_video_intermediates/android/psb_android_glue.o] Error 1
Next set of errors:
hardware/intel/img/psb_video/src/android/psb_gralloc.cpp:38:25: fatal error: ufo/gralloc.h: No such file or directory
#include <ufo/gralloc.h>
^
compilation terminated.
make: *** [/home/paletrox-z/euphoria/out/target/product/a500cg/obj/SHARED_LIBRARIES/pvr_drv_video_intermediates/android/psb_gralloc.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:45:0:
hardware/intel/img/psb_video/src/android/psb_mds.h:51:8: error: 'IMDService' was not declared in this scope
sp<IMDService> mMds;
^
hardware/intel/img/psb_video/src/android/psb_mds.h:51:18: error: template argument 1 is invalid
sp<IMDService> mMds;
^
hardware/intel/img/psb_video/src/android/psb_mds.h:52:8: error: 'IMultiDisplayInfoProvider' was not declared in this scope
sp<IMultiDisplayInfoProvider> mListener;
^
hardware/intel/img/psb_video/src/android/psb_mds.h:52:33: error: template argument 1 is invalid
sp<IMultiDisplayInfoProvider> mListener;
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp: In function 'int psb_android_get_mds_vpp_state(void*)':
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:12: error: 'IMDService' was not declared in this scope
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:22: error: template argument 1 is invalid
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:29: error: invalid type in declaration before '=' token
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:46: error: the value of 'IMDService' is not usable in a constant expression
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:12: note: 'IMDService' was not declared 'constexpr'
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:123:65: error: no matching function for call to 'interface_cast(android::sp<android::IBinder>)'
sm->getService(String16(INTEL_MDS_SERVICE_NAME)));
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:123:65: note: candidate is:
In file included from frameworks/native/include/binder/IServiceManager.h:21:0,
from hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:33:
frameworks/native/include/binder/IInterface.h:42:22: note: template<class INTERFACE> android::sp<T> android::interface_cast(const android::sp<android::IBinder>&)
inline sp<INTERFACE> interface_cast(const sp<IBinder>& obj)
^
frameworks/native/include/binder/IInterface.h:42:22: note: template argument deduction/substitution failed:
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:12: error: 'IMultiDisplayInfoProvider' was not declared in this scope
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:37: error: template argument 1 is invalid
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:43: error: invalid type in declaration before '=' token
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:49: error: base operand of '->' is not a pointer
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:128:22: error: base operand of '->' is not a pointer
ret = mds->getVppState();
^
make: *** [/home/paletrox-z/euphoria/out/target/product/a500cg/obj/SHARED_LIBRARIES/pvr_drv_video_intermediates/android/psb_android_glue.o] Error 1
#### make failed to build some targets (03:04 (mm:ss)) ####
Go to psb_video folder and delete all files here apart all folders and Android.mk file.
Open Android.mk file and comment all strings there using # symbol.
My CM12.1 is booted without this folder. You should compile Lollipop rom and only after that you should compile Marshmallow.
But mate it creates pvr_drv_video.so module. So would it be right to do so?
Just try.
I tried and it built it again for medfield mate....

Trying to compile Tesla for Huawei Nova

Hi guys!
I'm trying to unofficially compile tesla ROM for our device. I already solved some compile issues, but now I found an issue that I can't find any where when googleing for it.
Here is my whole build output so far! It stopped at 94% of the build process. The error is at the end.
Long story short, this is what I'm getting:
Code:
[ 94% 51226/54069] build /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.o
FAILED: /bin/bash -c "(echo \"target C++:\"\" Utils_test <= frameworks/av/media/libstagefright/tests/Utils_test.cpp\" ) && (mkdir -p /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/ ) && (PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I device/huawei/hwcan/include -I frameworks/av/include -I frameworks/av/media/libstagefright -I frameworks/av/media/libstagefright/include -I ./frameworks/native/include/media/openmax -I external/gtest/include -I frameworks/av/media/libstagefright/tests -I /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates -I /home/vinnom/tesla/out/target/product/hwcan/gen/EXECUTABLES/Utils_test_intermediates -I libnativehelper/include/nativehelper \$(cat /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/base/include -isystem hardware/ril-caf/include -isystem /home/vinnom/tesla/out/target/product/hwcan/obj/include -isystem bionic/libc/arch-arm64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libm/include -isystem bionic/libm/include/arm64 -c -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -O2 -g0 -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -fvisibility-inlines-hidden -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -fno-rtti -Werror -Wall -DGTEST_OS_LINUX_ANDROID -DGTEST_HAS_STD_STRING -fpie -D_USING_LIBCXX -std=gnu++14 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.d -o /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.o frameworks/av/media/libstagefright/tests/Utils_test.cpp ) && (cp /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.d /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.d >> /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.P; rm -f /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.d )"
target C++: Utils_test <= frameworks/av/media/libstagefright/tests/Utils_test.cpp
In file included from frameworks/av/media/libstagefright/tests/Utils_test.cpp:29:
In file included from frameworks/av/include/media/stagefright/Utils.h:27:
frameworks/av/include/media/stagefright/MediaDefs.h:120:22: error: unused function 'bitsToAudioEncoding' [-Werror,-Wunused-function]
static AudioEncoding bitsToAudioEncoding(int32_t bits) {
^
frameworks/av/include/media/stagefright/MediaDefs.h:134:16: error: unused function 'audioEncodingToBits' [-Werror,-Wunused-function]
static int32_t audioEncodingToBits(AudioEncoding encoding) {
^
2 errors generated.
UPDATE 2018-06-10
I just had to switch from static to inline.
Then, as I described in this post, I had to change a xml file. Those java errors in the post I mentioned doesn't occur anymore, but I have another one.
The java.lang can't be found in classpath or bootclasspath. I'm trying to export some paths of android.jar to CLASSPATH, until now didn't seem to work. For now, I'm lost.
Ok,
following #Henkate's advice, I changed kernel source, as I was using the wrong one. I tried to build again, same error.
Then, knowing it wouldn't be a good fix, I edited the file with error, commenting out those 2 functions which was being caught in the non-used thing. It didn't solved the issue and produced another which is below:
Code:
FAILED: /bin/bash -c "(echo \"target thumb C++:\"\" libstagefright_32 <= frameworks/av/media/libstagefright/FLACExtractor.cpp\" ) && (mkdir -p /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/ ) && (PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I device/huawei/hwcan/include -I ./frameworks/av/include/media/ -I ./frameworks/av/media/libavextensions -I ./frameworks/av/media/libstagefright/mpeg2ts -I ./frameworks/av/include/media/stagefright/timedtext -I ./frameworks/native/include/media/hardware -I ./frameworks/native/include/media/openmax -I ./external/flac/include -I ./external/tremolo -I ./external/libvpx/libwebm -I ./system/netd/include -I system/media/audio_utils/include -I hardware/qcom/media-caf/msm8937/mm-core/inc -I ./external/stagefright-plugins/include -I frameworks/av/media/libstagefright -I /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates -I /home/vinnom/tesla/out/target/product/hwcan/gen/SHARED_LIBRARIES/libstagefright_intermediates -I libnativehelper/include/nativehelper \$(cat /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem hardware/ril-caf/include -isystem /home/vinnom/tesla/out/target/product/hwcan/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -c -fno-exceptions -Wno-multichar -msoft-float -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -mcpu=cortex-a7 -mfpu=neon-vfpv4 -D__ARM_FEATURE_LPAE=1 -mfloat-abi=softfp -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -g0 -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target arm-linux-androideabi -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -fvisibility-inlines-hidden -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -target arm-linux-androideabi -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -Wno-multichar -Werror -Wno-error=deprecated-declarations -Wall -DENABLE_STAGEFRIGHT_EXPERIMENTS -DQTI_FLAC_DECODER -fPIC -D_USING_LIBCXX -fsanitize=unsigned-integer-overflow,signed-integer-overflow -fsanitize-trap=all -ftrap-function=abort -std=gnu++14 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.d -o /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.o frameworks/av/media/libstagefright/FLACExtractor.cpp ) && (cp /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.d /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.d >> /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.P; rm -f /home/vinnom/tesla/out/target/product/hwcan/obj_arm/SHARED_LIBRARIES/libstagefright_intermediates/FLACExtractor.d )"
target thumb C++: libstagefright_32 <= frameworks/av/media/libstagefright/FLACExtractor.cpp
frameworks/av/media/libstagefright/FLACExtractor.cpp:542:55: error: use of undeclared identifier 'bitsToAudioEncoding'
mTrackMetadata->setInt32(kKeyPcmEncoding, bitsToAudioEncoding(getBitsPerSample()));
^
1 error generated.
It was building until 94% and now it just builds until 48%. I guess was just lazy to try that. The fix is yet to be found.
PS: I still can't tag #Henkate =/ =/ =/ lol
Vinnom said:
Hi guys!
I'm trying to unofficially compile tesla ROM for our device. I already solved some compile issues, but now I found an issue that I can't find any where when googleing for it.
Here is my whole build output so far! It stopped at 94% of the build process. The error is at the end.
Long story short, this is what I'm getting:
Code:
[ 94% 51226/54069] build /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.o
FAILED: /bin/bash -c "(echo \"target C++:\"\" Utils_test <= frameworks/av/media/libstagefright/tests/Utils_test.cpp\" ) && (mkdir -p /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/ ) && (PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I device/huawei/hwcan/include -I frameworks/av/include -I frameworks/av/media/libstagefright -I frameworks/av/media/libstagefright/include -I ./frameworks/native/include/media/openmax -I external/gtest/include -I frameworks/av/media/libstagefright/tests -I /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates -I /home/vinnom/tesla/out/target/product/hwcan/gen/EXECUTABLES/Utils_test_intermediates -I libnativehelper/include/nativehelper \$(cat /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/base/include -isystem hardware/ril-caf/include -isystem /home/vinnom/tesla/out/target/product/hwcan/obj/include -isystem bionic/libc/arch-arm64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libm/include -isystem bionic/libm/include/arm64 -c -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -O2 -g0 -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -fvisibility-inlines-hidden -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -fno-rtti -Werror -Wall -DGTEST_OS_LINUX_ANDROID -DGTEST_HAS_STD_STRING -fpie -D_USING_LIBCXX -std=gnu++14 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.d -o /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.o frameworks/av/media/libstagefright/tests/Utils_test.cpp ) && (cp /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.d /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.d >> /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.P; rm -f /home/vinnom/tesla/out/target/product/hwcan/obj/EXECUTABLES/Utils_test_intermediates/Utils_test.d )"
target C++: Utils_test <= frameworks/av/media/libstagefright/tests/Utils_test.cpp
In file included from frameworks/av/media/libstagefright/tests/Utils_test.cpp:29:
In file included from frameworks/av/include/media/stagefright/Utils.h:27:
frameworks/av/include/media/stagefright/MediaDefs.h:120:22: error: unused function 'bitsToAudioEncoding' [-Werror,-Wunused-function]
static AudioEncoding bitsToAudioEncoding(int32_t bits) {
^
frameworks/av/include/media/stagefright/MediaDefs.h:134:16: error: unused function 'audioEncodingToBits' [-Werror,-Wunused-function]
static int32_t audioEncodingToBits(AudioEncoding encoding) {
^
2 errors generated.
Click to expand...
Click to collapse
In the frameworks/av/media/libstagefright/tests/Android.mk file, you'll find "-werror"....delete it and try building again.
we dropped Nougat long ago
but looks like you need something in frameworks av
edit: look here, seems related https://github.com/nos-caf/android_frameworks_av/commit/b0f756564be8f900edc841270e2ae36aa7d110ed
I know, but as I'm starting in this world of building roms, I'm trying for a tree already done
If I successfully build it, then I'll to get a working tree for Oreo ^^
I'll try the advice from @quake73 and update the topic
HUAWEI NOVA user since 12/2016 =)
---Current ROM: AospExtended
---Kernel:stock
MOTO X user since 03/2015 =)
---Current ROM: Tesla N
---Kernel: Tesla N stock
NEXUS 4 user 2013-2015 =/
Kernel Adiutor Interactive profile: INTERACTIVE
Kernel Adiutor Intelliactive profile: INTELLIACTIVE
Kernel Adiutor Intellimm profile: INTELLIMM
Kernel Adiutor Smartmax profile: SMARTMAX
martinusbe said:
we dropped Nougat long ago
but looks like you need something in frameworks av
edit: look here, seems related https://github.com/nos-caf/android_frameworks_av/commit/b0f756564be8f900edc841270e2ae36aa7d110ed
Click to expand...
Click to collapse
I just looked, files differ a bit but nothing worrysome =)
quake73 said:
In the frameworks/av/media/libstagefright/tests/Android.mk file, you'll find "-werror"....delete it and try building again.
Click to expand...
Click to collapse
I removed that tag and it worked!
After that, I have found another error for which I found the fix. The error occurred when systemui was compiling.
frameworks/base/packages/SystemUI/res/layout/status_bar.xml had the problem with namespace and the fix was found here.
Solving Errors
(...)frameworks/base/packages/SystemUI/res/layout/battery_bar_rot0.xml:28: error: No resource identifier found for attribute 'viewLocation' in package 'com.android.systemui' and frameworks/base/packages/SystemUI/res/layout/battery_bar_rot0.xml:35: error: No resource identifier found for attribute 'viewLocation' in package 'com.android.systemui'. It may related to a bug in Android with custom widget namespace detection (?). In layout files, change the namespace declaration xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" to xmlns:systemui="http://schemas.android.com/apk/res-auto" seems to work. There're some more files have the same problem and can be similarily modified to get them fixed and built.
Click to expand...
Click to collapse
The error was described in the log outlining viewLocation attribute.
Another issue fixed.
Now I'm facing something about some java files. It seems I'm getting issues with some types that can't be resolved to a type. The output with the errors is below.
Code:
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java:474: The method getNavigationBarView() from the type PhoneStatusBar refers to the missing type Navigator
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java:499: The method getNavigationBarView() from the type PhoneStatusBar refers to the missing type Navigator
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java:510: The method getNavigationBarView() from the type PhoneStatusBar refers to the missing type Navigator
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/FingerprintUnlockController.java:216: The method getNavigationBarView() from the type PhoneStatusBar refers to the missing type Navigator
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/FingerprintUnlockController.java:217: The method getNavigationBarView() from the type PhoneStatusBar refers to the missing type Navigator
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/FingerprintUnlockController.java:311: The method getNavigationBarView() from the type PhoneStatusBar refers to the missing type Navigator
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/FingerprintUnlockController.java:312: The method getNavigationBarView() from the type PhoneStatusBar refers to the missing type Navigator
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:148: The import com.android.internal.utils cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:149: The import com.android.internal.utils cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:150: The import com.android.internal.utils cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:172: The import com.android.systemui.navigation cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:173: The import com.android.systemui.navigation cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:548: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:549: DUPackageMonitor cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:568: Navigator cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:568: Navigator cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:570: The method onVerticalChanged(boolean) of type new OnVerticalChangedListener(){} must override or implement a supertype method
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:866: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:869: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:872: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1225: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1226: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1226: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1228: DUPackageMonitor cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1228: DUPackageMonitor cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1229: DUPackageMonitor cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1230: DUPackageMonitor cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1230: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1810: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1811: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1819: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1824: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:1826: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2022: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2026: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2061: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2062: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2112: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2113: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2114: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2114: OnVerticalChangedListener cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2120: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2121: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2125: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2129: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2129: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2133: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2137: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2138: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2166: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2172: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2417: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2418: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:3188: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:3188: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:3832: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:3833: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:3854: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:3923: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:3924: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:3993: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:3995: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4014: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4015: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4130: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4131: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4290: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4295: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4299: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4302: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4650: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4656: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4657: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4957: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4958: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4959: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4961: DUPackageMonitor cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4961: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:4962: DUPackageMonitor cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:5043: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:5044: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:5101: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:5102: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:5247: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:5248: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:5249: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:5252: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:5277: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:5278: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:5596: Navigator cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:5597: NavigationController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/qs/tiles/NavigationBarTile.java:36: The import com.android.internal.utils cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/qs/tiles/NavigationBarTile.java:131: DUActionUtils cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/LockIcon.java:36: The hierarchy of the type LockIcon is inconsistent
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:110: The import com.android.internal.utils cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:123: The import com.android.systemui.navigation cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:126: The import com.android.systemui.slimrecent cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:233: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:412: DUActionUtils cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:436: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:437: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:446: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:446: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:451: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:727: DUActionUtils cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:1681: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:1682: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:1692: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:1694: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:1705: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:1706: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:1725: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/BaseStatusBar.java:1726: RecentController cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/KeyguardAffordanceView.java:34: The import android.support.v7.graphics.Palette cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/KeyguardAffordanceView.java:51: Palette cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/KeyguardAffordanceView.java:172: Palette cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/KeyguardAffordanceView.java:602: Palette cannot be resolved to a type
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/BarTransitions.java:38: The import com.android.systemui.navigation cannot be resolved
ERROR: /home/vinnom/tesla/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/BarTransitions.java:78: NavbarOverlayResources cannot be resolved to a type
Still googleing for solutions for this
wow .... how exciting. i hope it can be true. Oreo for Nova.
babysocola1x said:
wow .... how exciting. i hope it can be true. Oreo for Nova.
Click to expand...
Click to collapse
Well, if I manage to build nougat, then I'll try to learn and move on to oreo ^^
The whole weekend I tried to solve the error but I couldn't.
Then I thought to start a log of everything I did. Just to make sure that it would be a clean log, I cleaned my folder and repo sync everything anew.
The log is attached. Help is very welcome

Categories

Resources