[Android Q&A, Help & Troubleshooting] HTCDreamOn:
Hi, can anybody help me with this, I'm stumped. I've deleted ~/.ccache and removed all the bluetooth related directories in .../SHARED_LIBRARIES/ but it still pops up. Thanks :)

target SharedLib: libbluetoothd (out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/LINKED/libbluetoothd.so)
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: error: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/../attrib/att.o: file is empty
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: error: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/../attrib/client.o: file is empty
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: error: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/../attrib/gatt.o: file is empty
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: error: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/../attrib/gattrib.o: file is empty
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: error: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/../attrib/utils.o: file is empty
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: error: out/target/product/dream_sapphire/obj/STATIC_LIBRARIES/libbuiltinplugin_intermediates/libbuiltinplugin.a: no archive symbol table (run ranlib)
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/device.o: in function device_register_services:external/bluetooth/bluez/src/device.c:2533: error: undefined reference to 'attrib_client_register'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/device.o: in function browse_request_free:external/bluetooth/bluez/src/device.c:178: error: undefined reference to 'g_attrib_unref'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/device.o: in function gatt_connect_cb:external/bluetooth/bluez/src/device.c:1765: error: undefined reference to 'g_attrib_new'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/device.o: in function gatt_connect_cb:external/bluetooth/bluez/src/device.c:1768: error: undefined reference to 'gatt_discover_primary'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/device.o: in function device_services_from_record:external/bluetooth/bluez/src/device.c:1522: error: undefined reference to 'gatt_parse_record'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/device.o: in function primary_cb:external/bluetooth/bluez/src/device.c:1718: error: undefined reference to 'att_ecode2str'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/device.o: in function device_remove:external/bluetooth/bluez/src/device.c:1159: error: undefined reference to 'attrib_client_unregister'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/plugin.o: in function __bluetooth_builtin:plugin.c(.data.rel.ro.__bluetooth_builtin+0x0): error: undefined reference to '__bluetooth_builtin_hciops'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function attrib_db_update:external/bluetooth/bluez/src/attrib-server.c:997: error: undefined reference to 'enc_notification'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function attrib_db_update:external/bluetooth/bluez/src/attrib-server.c:1001: error: undefined reference to 'g_attrib_send'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function attrib_db_update:external/bluetooth/bluez/src/attrib-server.c:1011: error: undefined reference to 'enc_indication'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function attrib_db_update:external/bluetooth/bluez/src/attrib-server.c:1015: error: undefined reference to 'g_attrib_send'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function attrib_server_exit:external/bluetooth/bluez/src/attrib-server.c:1160: error: undefined reference to 'g_attrib_unref'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_disconnect:external/bluetooth/bluez/src/attrib-server.c:788: error: undefined reference to 'g_attrib_unref'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function connect_event:external/bluetooth/bluez/src/attrib-server.c:958: error: undefined reference to 'g_attrib_new'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function connect_event:external/bluetooth/bluez/src/attrib-server.c:961: error: undefined reference to 'g_attrib_register'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function connect_event:external/bluetooth/bluez/src/attrib-server.c:964: error: undefined reference to 'g_attrib_set_disconnect_function'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function att_check_reqs:external/bluetooth/bluez/src/attrib-server.c:174: error: undefined reference to 'g_attrib_is_encrypted'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function write_value:external/bluetooth/bluez/src/attrib-server.c:744: error: undefined reference to 'enc_error_resp'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function write_value:external/bluetooth/bluez/src/attrib-server.c:764: error: undefined reference to 'enc_write_resp'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:813: error: undefined reference to 'dec_read_by_grp_req'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:388: error: undefined reference to 'att_data_list_alloc'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:403: error: undefined reference to 'enc_read_by_grp_resp'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:405: error: undefined reference to 'att_data_list_free'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:823: error: undefined reference to 'dec_read_by_type_req'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:424: error: undefined reference to 'enc_error_resp'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:475: error: undefined reference to 'att_data_list_alloc'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:490: error: undefined reference to 'enc_read_by_type_resp'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:492: error: undefined reference to 'att_data_list_free'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:833: error: undefined reference to 'dec_read_req'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:688: error: undefined reference to 'enc_read_resp'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:842: error: undefined reference to 'dec_read_blob_req'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:723: error: undefined reference to 'enc_read_blob_resp'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:856: error: undefined reference to 'dec_mtu_req'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:781: error: undefined reference to 'enc_mtu_resp'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:865: error: undefined reference to 'dec_find_info_req'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:533: error: undefined reference to 'enc_error_resp'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:547: error: undefined reference to 'att_data_list_alloc'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:562: error: undefined reference to 'enc_find_info_resp'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:564: error: undefined reference to 'att_data_list_free'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:874: error: undefined reference to 'dec_write_req'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:884: error: undefined reference to 'dec_write_cmd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:890: error: undefined reference to 'dec_find_by_type_req'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:616: error: undefined reference to 'enc_error_resp'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:619: error: undefined reference to 'enc_find_by_type_resp'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/attrib-server.o: in function channel_handler:external/bluetooth/bluez/src/attrib-server.c:919: error: undefined reference to 'g_attrib_send'
collect2: ld returned 1 exit status
make: *** [out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libbluetoothd_intermediates/LINKED/libbluetoothd.so] Error 1
make: *** Waiting for unfinished jobs....

real	1m50.638s
user	0m58.196s
sys	0m9.636s