Hi i was compiling wlan.ko for the kernel 2.6.32.9. Its gives following error:
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c: In function 'setup_netif':
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:766: error: 'struct net_device' has no member named 'open'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:767: error: 'struct net_device' has no member named 'stop'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:768: error: 'struct net_device' has no member named 'hard_start_xmit'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:769: error: 'struct net_device' has no member named 'get_stats'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c: In function 'tiwlan_init_drv':
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:1415: error: 'struct net_device' has no member named 'hard_start_xmit'
make[2]: *** [/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.o] Error 1
make[1]: *** [_module_/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32] Error 2
make[1]: Leaving directory `/home/peshal/kernel/msm'
Any help is greatly appreciated.. Thanx
peshal said:
Hi i was compiling wlan.ko for the kernel 2.6.32.9. Its gives following error:
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c: In function 'setup_netif':
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:766: error: 'struct net_device' has no member named 'open'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:767: error: 'struct net_device' has no member named 'stop'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:768: error: 'struct net_device' has no member named 'hard_start_xmit'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:769: error: 'struct net_device' has no member named 'get_stats'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c: In function 'tiwlan_init_drv':
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:1415: error: 'struct net_device' has no member named 'hard_start_xmit'
make[2]: *** [/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.o] Error 1
make[1]: *** [_module_/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32] Error 2
make[1]: Leaving directory `/home/peshal/kernel/msm'
Any help is greatly appreciated.. Thanx
Click to expand...
Click to collapse
i have the same problem
Related
I have some problems compiling gps with caf source.
At first I have build a rom without gps, but I want it to be functional
So if you can help, please let me know
Code:
target thumb C++: libloc_api-rpc-qc <= hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:38:35: error: commondefs_rpcgen_rpc.h: No such file or directory
In file included from out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:39,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:72: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:74: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:76: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:78: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:94: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:101: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:106: error: 'rpc_loc_position_valid_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:109: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:110: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:129: error: 'rpc_loc_pos_technology_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:151: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:154: error: 'rpc_loc_sv_info_valid_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:156: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:157: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:159: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:160: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:167: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:170: error: 'rpc_loc_gnss_info_valid_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:174: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:175: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:184: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:234: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:235: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:240: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:246: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:247: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:357: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:358: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:362: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:406: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:413: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:421: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:460: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:470: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:516: error: 'rpc_uint32' does not name a type
In file included from out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:39,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:526: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:527: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:533: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:536: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:537: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:557: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:584: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:590: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:597: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:628: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:633: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:731: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:734: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:735: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:736: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:738: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:740: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:766: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:767: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:768: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:769: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:778: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:779: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:784: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:790: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:791: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:795: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:798: error: 'rpc_loc_assist_pos_valid_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:799: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:808: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:829: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:836: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:851: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:857: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:862: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:863: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:864: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:865: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:866: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:872: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:873: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:874: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:879: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:885: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:911: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:916: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:917: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:918: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:919: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:931: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:932: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:933: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:947: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:949: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:952: error: 'rpc_loc_assist_data_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:953: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:971: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:972: error: 'rpc_loc_nmea_sentence_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:973: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:978: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:980: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:981: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:994: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:995: error: 'rpc_loc_nmea_sentence_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:996: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1000: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1002: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1009: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1034: error: 'rpc_loc_client_handle_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1035: error: 'rpc_loc_event_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1036: error: 'rpc_loc_position_valid_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1037: error: 'rpc_loc_pos_technology_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1043: error: 'rpc_loc_sv_info_valid_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1045: error: 'rpc_loc_gnss_info_valid_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1092: error: 'rpc_loc_server_connection_handle' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1117: error: 'rpc_loc_assist_pos_valid_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1136: error: 'rpc_loc_nmea_sentence_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1137: error: 'rpc_loc_assist_data_type' has not been declared
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:50: error: ISO C++ forbids declaration of 'rpc_uint32' with no type
2nd part:
Code:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:50: error: expected ';' before '*' token
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:53: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:56: error: 'rpc_loc_event_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:57: error: 'rpc_loc_event_cb_f_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:62: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:67: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:72: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:77: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:84: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:89: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:90: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:91: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:92: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:97: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:102: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:107: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:112: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:117: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:123: error: ISO C++ forbids declaration of 'rpc_uint32' with no type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:123: error: expected ';' before '*' token
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:250: error: 'rpc_loc_event_cb_f_type' has not been declared
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:42,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_cb_rpc.h:49: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_cb_rpc.h:50: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_cb_rpc.h:51: error: 'rpc_loc_event_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_cb_rpc.h:57: error: 'rpc_int32' does not name a type
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:52,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:43: error: 'rpc_loc_client_handle_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:52: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:55: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:71: error: variable or field 'loc_api_callback_process_sync_call' declared void
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:71: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:72: error: 'rpc_loc_event_mask_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:73: error: expected primary-expression before 'const'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:79: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:80: error: expected primary-expression before 'ioctl_type'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:81: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:81: error: 'ioctl_data_ptr' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:82: error: expected primary-expression before 'timeout_msec'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:83: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:83: error: 'cb_data_ptr' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:84: error: initializer expression list treated as compound expression
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:65: error: 'rpc_loc_client_handle_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:66: error: 'rpc_loc_event_mask_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:76: error: 'rpc_loc_client_handle_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:85: warning: 'loc_close' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:85: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:90: error: variable or field 'loc_clear' declared void
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:90: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:95: warning: 'loc_start_fix' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:95: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:100: warning: 'loc_stop_fix' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:100: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:105: warning: 'loc_ioctl' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:105: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:106: error: expected primary-expression before 'ioctl_type'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:107: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:107: error: 'ioctl_data' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:108: error: initializer expression list treated as compound expression
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:112: warning: 'loc_eng_ioctl' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:112: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:113: error: expected primary-expression before 'ioctl_type'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:114: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:114: error: 'ioctl_data_ptr' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:115: error: expected primary-expression before 'timeout_msec'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:116: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:116: error: 'cb_data_ptr' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:117: error: initializer expression list treated as compound expression
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:39: error: 'rpc_loc_client_handle_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:40: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:42: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:43: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:60: error: 'rpc_loc_client_handle_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:61: error: 'rpc_loc_event_mask_type' has not been declared
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:39:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:42: warning: 'loc_callback_log' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:42: error: 'rpc_loc_event_mask_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:43: error: expected primary-expression before 'const'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:44: error: initializer expression list treated as compound expression
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:47: warning: 'loc_get_event_name' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:47: error: 'rpc_loc_event_mask_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:65: error: 'rpc_loc_client_handle_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:66: error: 'rpc_loc_event_mask_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: In function 'int32 loc_event_cb(void*, int, int, const rpc_loc_event_payload_u_type*)':
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:70: error: 'loc_get_event_name' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:70: error: 'loc_get_event_name' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:70: error: 'loc_get_event_name' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:70: error: 'loc_get_event_name' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:71: error: 'loc_callback_log' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: At global scope:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:106: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: In constructor 'LocApiRpcAdapter::LocApiRpcAdapter(LocEng&)':
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:121: error: class 'LocApiRpcAdapter' does not have any field named 'client_handle'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:122: error: class 'LocApiRpcAdapter' does not have any field named 'eMask'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:122: error: 'convertMask' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: In destructor 'virtual LocApiRpcAdapter::~LocApiRpcAdapter()':
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:129: error: 'client_handle' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:130: error: 'loc_clear' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:133: error: 'client_handle' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:133: error: 'loc_close' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: At global scope:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:136: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:201: error: 'int32 LocApiRpcAdapter::locEventCB' is not a static member of 'class LocApiRpcAdapter'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:201: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:202: error: 'rpc_loc_event_mask_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:203: error: expected primary-expression before 'const'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:203: error: initializer expression list treated as compound expression
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:204: error: expected ',' or ';' before '{' token
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/libloc_api-rpc-qc_intermediates/src/LocApiRpcAdapter.o] Error 1
This is the craziest error i have ever seen...
Good luck buddy...
Sent from my LG-P500 using XDA
Oké, commondefs_rpcgen_rpc.h is missing...
Should be in one of the hardware/msm7k folders, but is not in any folder.
Thanks for pointing it out Samrox144, I looked over this one
_Arjen_ said:
Oké, commondefs_rpcgen_rpc.h is missing...
Should be in one of the hardware/msm7k folders, but is not in any folder.
Thanks for pointing it out Samrox144, I looked over this one
Click to expand...
Click to collapse
hope you fix it soon
Ok, trimmed down the errors (using gps folder from cm9 for now )
Next to solve:
Code:
Header: out/target/product/p500/obj/include/librpc/rpc/clnt.h
Header: out/target/product/p500/obj/include/librpc/rpc/pmap_clnt.h
Header: out/target/product/p500/obj/include/librpc/rpc/rpc.h
Header: out/target/product/p500/obj/include/librpc/rpc/rpc_router_ioctl.h
Header: out/target/product/p500/obj/include/librpc/rpc/svc.h
Header: out/target/product/p500/obj/include/librpc/rpc/types.h
Header: out/target/product/p500/obj/include/librpc/rpc/xdr.h
target thumb C++: gps.p500 <= hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:116: warning: missing initializer for member 'GpsInterface::update_criteria'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)(const char*)' to 'int (*)(AGpsType, const char*, AGpsBearerType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)()' to 'int (*)(AGpsType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)()' to 'int (*)(AGpsType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp: In function 'void loc_eng_report_agps_status(AGpsType, AGpsStatusValue)':
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:2021: warning: missing initializer for member 'AGpsStatus::ipv4_addr'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:2021: warning: missing initializer for member 'AGpsStatus::ipv6_addr'
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/gps.p500_intermediates/loc_eng.o] Error 1
_Arjen_ said:
Ok, trimmed down the errors (using gps folder from cm9 for now )
Next to solve:
Code:
Header: out/target/product/p500/obj/include/librpc/rpc/clnt.h
Header: out/target/product/p500/obj/include/librpc/rpc/pmap_clnt.h
Header: out/target/product/p500/obj/include/librpc/rpc/rpc.h
Header: out/target/product/p500/obj/include/librpc/rpc/rpc_router_ioctl.h
Header: out/target/product/p500/obj/include/librpc/rpc/svc.h
Header: out/target/product/p500/obj/include/librpc/rpc/types.h
Header: out/target/product/p500/obj/include/librpc/rpc/xdr.h
target thumb C++: gps.p500 <= hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:116: warning: missing initializer for member 'GpsInterface::update_criteria'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)(const char*)' to 'int (*)(AGpsType, const char*, AGpsBearerType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)()' to 'int (*)(AGpsType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)()' to 'int (*)(AGpsType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp: In function 'void loc_eng_report_agps_status(AGpsType, AGpsStatusValue)':
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:2021: warning: missing initializer for member 'AGpsStatus::ipv4_addr'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:2021: warning: missing initializer for member 'AGpsStatus::ipv6_addr'
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/gps.p500_intermediates/loc_eng.o] Error 1
Click to expand...
Click to collapse
I have done the same in my code, using cm9 gps folder...
But i dont get these errors...
Sent from my LG-P500 using XDA
Yeah,remember this ****,happened to me with OMGB camera. You just need to look into the msm7k files. Or just fgrep CM9 sources and CAF sources,see where this crap is defined and replace,or merge. Worked perfectly for me.
P.S: Today I'll have info on my laptop,it will probably sent on saturday or next week. It's been a month now can't wait to teamwork with you!
Changed some things for gps, will try later.
Dropped it now to go back to cm9
Hope you'll have your laptop back soon
_Arjen_ said:
Changed some things for gps, will try later.
Dropped it now to go back to cm9
Hope you'll have your laptop back soon
Click to expand...
Click to collapse
Man, you are a real kind heart, helping almost every developer on our forum...
Love you for that bro...
Sent from my LG-P500 using XDA
I also did a part on cm9, so why not help to get it ready for nightlies
And when you let the thing that is bothering you rest for a while, the solution comes always
Maybe this will help you....
http://forum.xda-developers.com/showthread.php?p=23696156
Sent from my LG-P500 using xda premium
Kernel Compiled and working: see http://forum.xda-developers.com/showthread.php?t=1833136
I tried to compile the new 3.1 kernel with voodoo sound in it. I specifically copied and replaced
Kconfig.voodoo
Makefile
wm8994_p3
wm8994_samsung.c
wm8994_voodoo.c
wm8994_voodoo.h
in the directory (source root)/sound/soc/codecs with the ones found in the pershoot git. I also swapped the file (source root)/sound/soc/Kconfig and commented out the line "#source "sound/soc/s3c24xx/Kconfig". When I tried to compile it, I get these compile errors
Code:
CC sound/soc/codecs/wm8994_samsung.o
sound/soc/codecs/wm8994_samsung.c: In function 'wm899x_outpga_put_volsw_vu':
sound/soc/codecs/wm8994_samsung.c:247:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_voip_call':
sound/soc/codecs/wm8994_samsung.c:320:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_voip_call':
sound/soc/codecs/wm8994_samsung.c:331:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_loopback_path':
sound/soc/codecs/wm8994_samsung.c:343:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_loopback_path':
sound/soc/codecs/wm8994_samsung.c:354:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c:356:6: warning: unused variable 'val'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_codec_tuning':
sound/soc/codecs/wm8994_samsung.c:400:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_codec_tuning':
sound/soc/codecs/wm8994_samsung.c:412:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_mic_path':
sound/soc/codecs/wm8994_samsung.c:427:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_mic_path':
sound/soc/codecs/wm8994_samsung.c:438:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_path':
sound/soc/codecs/wm8994_samsung.c:479:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_path':
sound/soc/codecs/wm8994_samsung.c:490:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_voice_path':
sound/soc/codecs/wm8994_samsung.c:576:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_voice_path':
sound/soc/codecs/wm8994_samsung.c:587:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_input_source':
sound/soc/codecs/wm8994_samsung.c:642:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_input_source':
sound/soc/codecs/wm8994_samsung.c:653:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_headset_analog_vol':
sound/soc/codecs/wm8994_samsung.c:676:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c:722:43: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:735:6: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:736:34: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:676:22: warning: unused variable 'wm8994'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_add_controls':
sound/soc/codecs/wm8994_samsung.c:848:13: error: too few arguments to function 'snd_soc_cnew'
include/sound/soc.h:366:22: note: declared here
sound/soc/codecs/wm8994_samsung.c:848:13: warning: passing argument 1 of 'snd_ctl_add' from incompatible pointer type
include/sound/control.h:114:5: note: expected 'struct snd_card *' but argument is of type 'struct snd_soc_card *'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_add_widgets':
sound/soc/codecs/wm8994_samsung.c:863:4: warning: passing argument 1 of 'snd_soc_dapm_new_controls' from incompatible pointer type
include/sound/soc-dapm.h:348:5: note: expected 'struct snd_soc_dapm_context *' but argument is of type 'struct snd_soc_codec *'
sound/soc/codecs/wm8994_samsung.c:865:44: warning: passing argument 1 of 'snd_soc_dapm_add_routes' from incompatible pointer type
include/sound/soc-dapm.h:355:5: note: expected 'struct snd_soc_dapm_context *' but argument is of type 'struct snd_soc_codec *'
sound/soc/codecs/wm8994_samsung.c:867:2: warning: passing argument 1 of 'snd_soc_dapm_new_widgets' from incompatible pointer type
include/sound/soc-dapm.h:353:5: note: expected 'struct snd_soc_dapm_context *' but argument is of type 'struct snd_soc_codec *'
sound/soc/codecs/wm8994_samsung.c: In function 'configure_clock':
sound/soc/codecs/wm8994_samsung.c:873:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_bias_level':
sound/soc/codecs/wm8994_samsung.c:1050:12: error: 'struct snd_soc_codec' has no member named 'bias_level'
sound/soc/codecs/wm8994_samsung.c:1090:7: error: 'struct snd_soc_codec' has no member named 'bias_level'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_sysclk':
sound/soc/codecs/wm8994_samsung.c:1099:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_dai_fmt':
sound/soc/codecs/wm8994_samsung.c:1123:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_hw_params':
sound/soc/codecs/wm8994_samsung.c:1225:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_startup':
sound/soc/codecs/wm8994_samsung.c:1385:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: At top level:
sound/soc/codecs/wm8994_samsung.c:1410:13: error: static declaration of 'wm8994_shutdown' follows non-static declaration
sound/soc/codecs/wm8994_samsung.h:249:6: note: previous declaration of 'wm8994_shutdown' was here
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_shutdown':
sound/soc/codecs/wm8994_samsung.c:1414:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: At top level:
sound/soc/codecs/wm8994_samsung.c:1522:2: error: unknown field 'playback' specified in initializer
sound/soc/codecs/wm8994_samsung.c:1522:2: warning: braces around scalar initializer
sound/soc/codecs/wm8994_samsung.c:1522:2: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1523:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1523:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1523:8: warning: initialization makes integer from pointer without a cast
sound/soc/codecs/wm8994_samsung.c:1524:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1524:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1524:8: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1524:8: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1525:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1525:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1525:8: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1525:8: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1526:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1526:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1526:8: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1526:8: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1527:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1527:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1527:8: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1527:8: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1529:2: error: unknown field 'capture' specified in initializer
sound/soc/codecs/wm8994_samsung.c:1529:2: warning: braces around scalar initializer
sound/soc/codecs/wm8994_samsung.c:1529:2: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1530:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1530:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1530:7: warning: initialization from incompatible pointer type
sound/soc/codecs/wm8994_samsung.c:1531:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1531:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1531:7: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1531:7: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1532:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1532:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1532:7: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1532:7: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1533:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1533:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1533:7: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1533:7: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1534:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1534:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1534:7: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1534:7: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1537:2: error: unknown field 'ops' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3164:5: warning: function declaration isn't a prototype
sound/soc/codecs/wm8994_samsung.c: In function 'Is_call_active':
sound/soc/codecs/wm8994_samsung.c:3168:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_init':
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_i2c_probe':
sound/soc/codecs/wm8994_samsung.c:3263:45: error: dereferencing pointer to incomplete type
sound/soc/codecs/wm8994_samsung.c:3275:7: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c:3326:7: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_probe':
sound/soc/codecs/wm8994_samsung.c:3390:16: error: dereferencing pointer to incomplete type
sound/soc/codecs/wm8994_samsung.c:3392:23: error: 'struct snd_soc_codec' has no member named 'dapm_widgets'
sound/soc/codecs/wm8994_samsung.c:3393:23: error: 'struct snd_soc_codec' has no member named 'dapm_paths'
sound/soc/codecs/wm8994_samsung.c:3395:7: error: 'struct snd_soc_codec' has no member named 'owner'
sound/soc/codecs/wm8994_samsung.c:3398:27: warning: assignment from incompatible pointer type
sound/soc/codecs/wm8994_samsung.c:3399:7: error: 'struct snd_soc_codec' has no member named 'reg_cache_size'
sound/soc/codecs/wm8994_samsung.c:3400:7: error: 'struct snd_soc_codec' has no member named 'set_bias_level'
sound/soc/codecs/wm8994_samsung.c:3401:7: error: 'struct snd_soc_codec' has no member named 'dai'
sound/soc/codecs/wm8994_samsung.c:3403:8: error: dereferencing pointer to incomplete type
sound/soc/codecs/wm8994_samsung.c:3406:2: error: implicit declaration of function 'snd_soc_new_pcms'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_remove':
sound/soc/codecs/wm8994_samsung.c:3426:2: error: implicit declaration of function 'snd_soc_free_pcms'
sound/soc/codecs/wm8994_samsung.c:3427:2: warning: passing argument 1 of 'snd_soc_dapm_free' from incompatible pointer type
include/sound/soc-dapm.h:354:6: note: expected 'struct snd_soc_dapm_context *' but argument is of type 'struct snd_soc_device *'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_reset_analog_vol_work':
sound/soc/codecs/wm8994_samsung.c:3442:3: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3442:3: warning: type defaults to 'int' in declaration of '__mptr'
sound/soc/codecs/wm8994_samsung.c:3442:3: warning: initialization from incompatible pointer type
sound/soc/codecs/wm8994_samsung.c:3442:3: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3443:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c:3443:22: warning: unused variable 'wm8994'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_suspend':
sound/soc/codecs/wm8994_samsung.c:3466:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_resume':
sound/soc/codecs/wm8994_samsung.c:3489:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: At top level:
sound/soc/codecs/wm8994_samsung.c:3508:8: error: variable 'soc_codec_dev_wm8994' has initializer but incomplete type
sound/soc/codecs/wm8994_samsung.c:3509:2: error: unknown field 'probe' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3509:2: warning: excess elements in struct initializer
sound/soc/codecs/wm8994_samsung.c:3509:2: warning: (near initialization for 'soc_codec_dev_wm8994')
sound/soc/codecs/wm8994_samsung.c:3510:2: error: unknown field 'remove' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3510:2: warning: excess elements in struct initializer
sound/soc/codecs/wm8994_samsung.c:3510:2: warning: (near initialization for 'soc_codec_dev_wm8994')
sound/soc/codecs/wm8994_samsung.c:3512:2: error: unknown field 'suspend' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3512:2: warning: excess elements in struct initializer
sound/soc/codecs/wm8994_samsung.c:3512:2: warning: (near initialization for 'soc_codec_dev_wm8994')
sound/soc/codecs/wm8994_samsung.c:3513:2: error: unknown field 'resume' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3513:2: warning: excess elements in struct initializer
sound/soc/codecs/wm8994_samsung.c:3513:2: warning: (near initialization for 'soc_codec_dev_wm8994')
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_modinit':
sound/soc/codecs/wm8994_samsung.c:3520:2: warning: passing argument 1 of 'snd_soc_register_dai' from incompatible pointer type
include/sound/soc-dai.h:97:5: note: expected 'struct device *' but argument is of type 'struct snd_soc_dai *'
sound/soc/codecs/wm8994_samsung.c:3520:2: error: too few arguments to function 'snd_soc_register_dai'
include/sound/soc-dai.h:97:5: note: declared here
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_exit':
sound/soc/codecs/wm8994_samsung.c:3531:2: warning: passing argument 1 of 'snd_soc_unregister_dai' from incompatible pointer type
include/sound/soc-dai.h:99:6: note: expected 'struct device *' but argument is of type 'struct snd_soc_dai *'
sound/soc/codecs/wm8994_samsung.c: At top level:
sound/soc/codecs/wm8994_samsung.c:1034:12: warning: 'wm8994_set_bias_level' defined but not used
sound/soc/codecs/wm8994_samsung.c:1354:12: warning: 'wm8994_digital_mute' defined but not used
make[3]: *** [sound/soc/codecs/wm8994_samsung.o] Error 1
make[2]: *** [sound/soc/codecs] Error 2
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2
[[email protected] p75102]$
Any ideas? Also, under menuconfig I enabled p3 sound and disabled p4 sound to get the voodoo option.
Wish I could help you out. I just wanted to bump this up. I miss my voodoo sound. Good Luck.
From what I could gather from looking at the sources, you could try replacing all the "codec->drvdata" lines with "snd_soc_codec_get_drvdata(codec)" and "&codec->delayed_work" with "&wm8994->delayed_work" and so on.
EDIT: Comparing the files even more, it might be enough to just add in the few lines with Voodoo in to the source. I've added a file where I've done that so you can try with it but I wont give any guarantees that it will work with just that. To be honest, it sounds too simple for it to work with just those changes.
CazeW said:
From what I could gather from looking at the sources, you could try replacing all the "codec->drvdata" lines with "snd_soc_codec_get_drvdata(codec)" and "&codec->delayed_work" with "&wm8994->delayed_work" and so on.
EDIT: Comparing the files even more, it might be enough to just add in the few lines with Voodoo in to the source. I've added a file where I've done that so you can try with it but I wont give any guarantees that it will work with just that. To be honest, it sounds too simple for it to work with just those changes.
Click to expand...
Click to collapse
Thanks for that. I managed to get voodoo sound compiled in but for some reason the wifi doesn't work anymore and neither does adb. I did try the voodoo control app and it worked just fine. Any suggestions for why wifi suddenly died out? I am looking at pershoot's git config but I can't find anything markedly different.(I attached mine) Also, in the about section my kernel string info didn't appear. It said something along the lines of error retrieving string. (Note my tablet is not running the voodoo sound kernel right now since it would have no wifi and no adb which makes it kinda useless).
I got the wifi with voodoo sound working. However, adb/mtp usb functions still do not work. When I try to compile the so called "fsl_usb" "fsl_tegra" thingy I get the following error messages:
Code:
drivers/usb/gadget/fsl_tegra_udc.c:113:6: warning: function declaration isn't a prototype
LD [M] drivers/usb/gadget/fsl_usb2_udc.o
Building modules, stage 2.
MODPOST 4 modules
ERROR: "tegra_usb_phy_close" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
ERROR: "tegra_usb_phy_charger_detect" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
ERROR: "tegra_usb_phy_memory_prefetch_on" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
ERROR: "tegra_usb_phy_power_on" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
ERROR: "tegra_usb_phy_open" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
ERROR: "tegra_usb_phy_memory_prefetch_off" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
ERROR: "tegra_usb_phy_power_off" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
I am really at quite a loss as for how to correct source code errors. I am by no means a kernel developer by even the most lenient definitions. Just an enthusiast who wants to compile in voodoo sound while waiting for cm9 with a bit of know how. If I compile with the fsl_tegra/usb thingy as built in and not a module I get no errors but it still doesn't work. I attached a logcat from the tablet showing some kind of usb file error.
This issue has been fixed. See first post for working link.
Hi Everyone,
I thought someone will be able to help. I'm getting those build errors when building cm11 from source. This is just at the end when building apks. Is it me or cm source?
Code:
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:10:26: error: extra tokens at end of #ifndef directive [-Werror]
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:11:26: error: missing whitespace after the macro name [-Werror]
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/browser_rendering_stats.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/cc_messages.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/child_process_host_impl.cc
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
/root/cm/out/target/product/m7ul/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
make: *** [/root/cm/out/target/product/m7ul/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o] Error 1
make: *** Waiting for unfinished jobs....
golcheck said:
Hi Everyone,
I thought someone will be able to help. I'm getting those build errors when building cm11 from source. This is just at the end when building apks. Is it me or cm source?
Code:
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:10:26: error: extra tokens at end of #ifndef directive [-Werror]
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:11:26: error: missing whitespace after the macro name [-Werror]
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/browser_rendering_stats.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/cc_messages.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/child_process_host_impl.cc
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
/root/cm/out/target/product/m7ul/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
make: *** [/root/cm/out/target/product/m7ul/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Try this
http://www.playfuldroidz.com/wiki/How_to_Fix_HashSet_Issues_Building_Android
crt60 said:
Try this
http://www.playfuldroidz.com/wiki/How_to_Fix_HashSet_Issues_Building_Android
Click to expand...
Click to collapse
It was actually my fault. Was building with Java 7. Switched back to Java 6 and all good now. Thanks anyway
Build issues with openjdk-6-jdk_6b30
Hi,
just wanted to mention that I got the very same issue, introduced by a system update which also did update the jdk to 6b30. Took me some time to figure out that this was the actual issue, and it could only be resolved by switching back to 6b27 (which I had installed before)
Just in case someone comes across the same issue on Ubuntu precise, go back instantly and don't lose that much time as I did looking for the root cause somewhere else.
Interestingly, the newer raring, swarty releases are still on 6b27
I'm trying to compile cyanogenmod 10.2 from sources for samsung janice (i9070) but i edited files to match my device (Samsung gavini (I8530))
I write here, because my device isn't so popular, but it is very similar to S Advance.
When i try to compile CYanogenmod everything goes well untill it starts to compile kernel. At one moment it stopps with this error:
Code:
ARCH=arm CROSS_COMPILE=" /home/denisrus/Documents/CYANOGENMOD/i9070/prebuilt/linux-x86/toolchain/arm-eabi-4.6/bin/arm-eabi-"
...
In file included from /home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:16:0:
...
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:747:2: error: unknown field 'atchcalst' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:747:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:747:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:748:2: error: unknown field 'atchcalsthr' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:748:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:748:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:749:2: error: unknown field 'tchthr_batt' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:749:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:749:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:750:2: error: unknown field 'tchthr_charging' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:750:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:750:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:751:2: error: unknown field 'tchthr_batt_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:751:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:751:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:752:2: error: unknown field 'tchthr_charging_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:752:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:752:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:753:2: error: unknown field 'calcfg_batt_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:753:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:753:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:754:2: error: unknown field 'calcfg_charging_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:754:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:754:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:755:2: error: unknown field 'atchfrccalthr_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:755:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:755:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:756:2: error: unknown field 'atchfrccalratio_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:756:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:756:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:757:2: error: unknown field 't48_config_batt_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:757:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:757:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:758:2: error: unknown field 't48_config_chrg_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:758:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:758:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:759:2: error: unknown field 'power_con' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:759:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:759:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:761:2: error: unknown field 'read_ta_status' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:761:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:761:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1002:3: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1002:3: error: (near initialization for 'gavini_r0_1_gpio_i2c5_devices[0].irq')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:1: error: 'NMK_GPIO_ALT_A' undeclared here (not in a function)
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:1: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:20: error: 'NMK_GPIO_PULL_UP' undeclared here (not in a function)
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:20: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:20: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:18: error: invalid operands to binary | (have 'struct i2c_board_info *' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:2: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:2: error: (near initialization for 'mop500_pins_uart0[0]')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:1: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:18: error: invalid operands to binary | (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:2: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:2: error: (near initialization for 'mop500_pins_uart0[1]')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:1: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:20: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:20: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:18: error: invalid operands to binary | (have 'struct i2c_board_info *' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:2: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:2: error: (near initialization for 'mop500_pins_uart0[2]')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:1: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:18: error: invalid operands to binary | (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:2: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:2: error: (near initialization for 'mop500_pins_uart0[3]')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2015:2: warning: initialization from incompatible pointer type [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2015:2: warning: (near initialization for 'uart0_plat.amba_pl011_wake_peer') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c: In function 'gavini_init_machine':
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2342:2: error: implicit declaration of function 'nmk_gpio_clocks_enable' [-Werror=implicit-function-declaration]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2382:2: error: implicit declaration of function 'mms136_ts_init' [-Werror=implicit-function-declaration]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2383:2: error: implicit declaration of function 'nmk_gpio_clocks_disable' [-Werror=implicit-function-declaration]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c: At top level:
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:190:37: warning: 'mpu_data' defined but not used [-Wunused-variable]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:517:13: warning: 'tsu6111_reset' defined but not used [-Wunused-function]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:582:13: warning: 'mxt224_register_callback' defined but not used [-Wunused-function]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:734:36: warning: 'mxt224_data' defined but not used [-Wunused-variable]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:999:41: warning: 'gavini_r0_1_gpio_i2c5_devices' defined but not used [-Wunused-variable]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1949:31: warning: 'sec_device_rfkill' defined but not used [-Wunused-variable]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1999:13: warning: 'bt_wake_peer' defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[3]: *** [arch/arm/mach-ux500/board-gavini.o] Error 1
make[2]: *** [arch/arm/mach-ux500] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500'
make: *** [TARGET_KERNEL_BINARIES] Error 2
Interesting. Finally we found someone who has a gavini. I'll take a look at the error tomorrow
Inviato dal mio GT-I9070 utilizzando Tapatalk
I don't have much experience in compiling cyanogenmod roms, i only know how to compile kernels... All the time, i've compiled kernels from stock sources, i've never seen such errors, but how to solve this, I don't know. So if you know solution or have some recommendations, i'm ready to try them. So if it is possible, look at this error when you have time.
Did you try another toolchain to build?
Sent from my GT-I9505 using xda app-developers app
Yes. As i remember, i tried Code Sourcery toolchain and Google toolchain. May be i just made something wrong with files? If i put cyanogenmod config and ramdisk to stock kernel source files, will it be possible to compile it? And i'm not sure that platform is compiling correctly, because it has some differents from janice, i'v tried to modify files to match my board, but i'm not sure it works.
If you have some ideas, i can try them.
If you need some more information about files that i'm using or PC configuration, i can write everything that you need.
------
Sorry for bad English, it's not my native language.
Hi everyone, I'm having issues with compiling Magisk from a fresh environment. Has anyone had success building the latest Magisk, if so, what did your environment look like? Here is what I did...
Fresh Docker Ubuntu Instance
Installed Python3.7
Installed Android SDK Tools
Installed "ndk-bundle" "platform-tools" from sdkmanager
Downloaded/Extracted latest FrankeNDK
Set ANDROID_HOME to sdk path, and ANDROID_NDK_HOME to FrankeNDK path
Full clone w/submodule of Magisk Repo
Setup config.prop
python3 build.py -v binary
However this always produces the same linker error:
Code:
[armeabi-v7a] Executable : busybox
[armeabi-v7a] SharedLibrary : libsqlite.so
/root/dev/android/FrankeNDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/.[x86] SharedLibrary : libsqlite.so
./../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi-v7a/objs/sqlite/stubs/sqlite3_stub.o:1:3: invalid character
/root/dev/android/FrankeNDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi-v7a/objs/sqlite/stubs/sqlite3_stub.o:1:3: syntax error, unexpected $end
/root/dev/android/FrankeNDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi-v7a/objs/sqlite/stubs/sqlite3_stub.o: not an object or archive
collect2: error: ld returned 1 exit status
make: *** [obj/local/armeabi-v7a/libsqlite.so] Error 1
make: *** Waiting for unfinished jobs....
/root/dev/android/FrankeNDK/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: ./obj/local/x86/objs/sqlite/stubs/sqlite3_stub.o:1:3: invalid character
/root/dev/android/FrankeNDK/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: ./obj/local/x86/objs/sqlite/stubs/sqlite3_stub.o:1:3: syntax error, unexpected $end
/root/dev/android/FrankeNDK/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: ./obj/local/x86/objs/sqlite/stubs/sqlite3_stub.o: not an object or archive
collect2: error: ld returned 1 exit status
make: *** [obj/local/x86/libsqlite.so] Error 1
make: Leaving directory `/root/dev/android/Magisk/native'
Build binary failed!
I opened an issue on GitHub:1167 and TJW indicated that the linker is missing flags -flto. However, I didn't mess with anything and the default file of /native/jni/Application.mk:APP_LDFLAGS := -flto contains those flags. Is there anything else I could try to get the build to work? Thanks