ARMmbed / mbed-client-linux-example

DEPRECATED: mbed Client example program for Linux platform
https://cloud.mbed.com/docs/current
Other
2 stars 0 forks source link

Compilation Fails ! #18

Closed hasnainvirk closed 8 years ago

hasnainvirk commented 8 years ago

Setup: Linux Compiler: gcc

TRACE:

hasnain@ubuntu:~/Desktop/OOB2/mbed-client-linux-example$ git checkout -b origin/TechCon-release Switched to a new branch 'origin/TechCon-release' hasnain@ubuntu:~/Desktop/OOB2/mbed-client-linux-example$ ls apache-2.0.txt img LICENSE module.json README.md source hasnain@ubuntu:~/Desktop/OOB2/mbed-client-linux-example$ yt target frdm-k64f-gcc info: get versions for frdm-k64f-gcc info: download frdm-k64f-gcc@0.2.0 from the public module registry info: get versions for mbed-gcc info: download mbed-gcc@0.1.3 from the public module registry hasnain@ubuntu:~/Desktop/OOB2/mbed-client-linux-example$ yt build info: get versions for mbed-client info: download mbed-client@1.1.15 from the public module registry info: get versions for mbed-client-c info: download mbed-client-c@1.1.1 from the public module registry info: get versions for mbed-client-mbed-os info: download mbed-client-mbed-os@1.0.11 from the public module registry info: get versions for mbed-client-mbedtls info: download mbed-client-mbedtls@1.0.6 from the public module registry info: get versions for nanostack-libservice info: download nanostack-libservice@3.0.7 from the public module registry info: get versions for mbed-drivers info: download mbed-drivers@0.11.1 from the public module registry info: get versions for sockets info: download sockets@1.0.2 from the public module registry info: get versions for mbed-hal info: download mbed-hal@1.0.3 from the public module registry info: get versions for cmsis-core info: download cmsis-core@1.0.1 from the public module registry info: get versions for ualloc info: download ualloc@1.0.2 from the public module registry info: get versions for minar info: download minar@1.0.1 from the public module registry info: get versions for core-util info: download core-util@1.0.1 from the public module registry info: get versions for compiler-polyfill info: download compiler-polyfill@1.1.1 from the public module registry info: get versions for mbed-hal-freescale info: download mbed-hal-freescale@1.0.0 from the public module registry info: get versions for mbed-hal-ksdk-mcu info: download mbed-hal-ksdk-mcu@1.0.3 from the public module registry info: get versions for uvisor-lib info: download uvisor-lib@1.0.4 from the public module registry info: get versions for mbed-hal-k64f info: download mbed-hal-k64f@1.0.1 from the public module registry info: get versions for cmsis-core-freescale info: download cmsis-core-freescale@1.0.0 from the public module registry info: get versions for cmsis-core-k64f info: download cmsis-core-k64f@1.0.0 from the public module registry info: get versions for mbed-hal-frdm-k64f info: download mbed-hal-frdm-k64f@1.0.0 from the public module registry info: get versions for dlmalloc info: download dlmalloc@1.0.0 from the public module registry info: get versions for minar-platform info: download minar-platform@1.0.0 from the public module registry info: get versions for minar-platform-mbed info: download minar-platform-mbed@1.0.0 from the public module registry info: get versions for sal info: download sal@1.0.2 from the public module registry info: get versions for sal-stack-lwip info: download sal-stack-lwip@1.0.1 from the public module registry info: get versions for sal-driver-lwip-k64f-eth info: download sal-driver-lwip-k64f-eth@1.0.2 from the public module registry info: get versions for sal-iface-eth info: download sal-iface-eth@1.0.0 from the public module registry info: get versions for mbedtls info: download mbedtls@2.2.0-rc.1 from the public module registry info: generate for target: frdm-k64f-gcc 0.2.0 at /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_targets/frdm-k64f-gcc GCC version is: 4.9.3 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/arm-none-eabi-gcc -- Configuring done -- Generating done -- Build files have been written to: /home/hasnain/Desktop/OOB2/mbed-client-linux-example/build/frdm-k64f-gcc [10/319] Building C object ym/nanostack-libservice/source/CMakeFil.../yotta_modules/nanostack-libservice/source/libip6string/stoip6.c.o /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/nanostack-libservice/source/libip6string/stoip6.c: In function 'stoip6': /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/nanostack-libservice/source/libip6string/stoip6.c:44:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (field_no = 0, p = ip6addr; (len > (p - ip6addr)) && _p && field_no < 8; p = q + 1) { ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/nanostack-libservice/source/libip6string/stoip6.c:54:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((len > (q - ip6addr)) && q && (q[0] == ':') && (q[1] == ':')) { ^ [27/319] Building C object ym/mbed-client-c/source/CMakeFiles/mbed...-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c.o /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c: In function 'sn_grs_list_resource': /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:145:84: warning: unused parameter 'pathlen' [-Wunused-parameter] extern sn_grs_resource_list_s sn_grs_list_resource(struct grs_s handle, uint16_t pathlen, uint8_t path) ^ [27/319] Building C object ym/mbed-client-c/source/CMakeFiles/mbed...otta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c.o /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c: In function 'sn_coap_protocol_init': /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:220:5: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration] srand(rand()^time(NULL)); ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c: In function 'sn_coap_protocol_set_block_size': /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:230:49: warning: unused parameter 'block_size' [-Wunused-parameter] int8_t sn_coap_protocol_set_block_size(uint16_t block_size) ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c: In function 'sn_coap_protocol_set_duplicate_buffer_size': /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:252:59: warning: unused parameter 'message_count' [-Wunused-parameter] int8_t sn_coap_protocol_set_duplicate_buffer_size(uint8_t message_count) ^ [28/319] Building C object ym/mbed-client-c/source/CMakeFiles/mbed...example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_nsdl.c.o /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_nsdl.c: In function 'validate': /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_nsdl.c:1565:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0; i < len; i++ ){ ^ [115/319] Building C object ym/mbed-hal-ksdk-mcu/source/CMakeFiles.../source/TARGET_KSDK_CODE/utilities/src/fsl_os_abstraction_mbed.c.o In file included from /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/source/TARGET_KSDK_CODE/utilities/src/fsl_os_abstraction_mbed.c:19:0: /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-drivers/mbed/wait_api.h:19:2: warning: #warning mbed/wait_api.h is deprecated. Please use mbed-drivers/wait_api.h instead. [-Wcpp]

warning mbed/wait_api.h is deprecated. Please use mbed-drivers/wait_api.h instead.

^ [276/319] Building CXX object ym/sal-iface-eth/source/CMakeFiles/s...example/yotta_modules/sal-iface-eth/source/EthernetInterface.cpp.o In file included from /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal-iface-eth/source/EthernetInterface.cpp:28:0: /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-drivers/mbed/mbed.h:19:2: warning: #warning mbed/mbed.h is deprecated. Please use mbed-drivers/mbed.h instead. [-Wcpp]

warning mbed/mbed.h is deprecated. Please use mbed-drivers/mbed.h instead.

^ [297/319] Building CXX object ym/mbed-client-mbed-os/source/CMakeF...ux-example/yotta_modules/mbed-client-mbed-os/source/m2mtimer.cpp.o In file included from /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-mbed-os/mbed-client-mbed-os/m2mtimerpimpl.h:20:0, from /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-mbed-os/source/m2mtimer.cpp:18: /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-drivers/mbed/Ticker.h:19:2: warning: #warning mbed/Ticker.h is deprecated. Please use mbed-drivers/Ticker.h instead. [-Wcpp]

warning mbed/Ticker.h is deprecated. Please use mbed-drivers/Ticker.h instead.

^ [297/319] Building CXX object ym/mbed-client-mbed-os/source/CMakeF...ample/yotta_modules/mbed-client-mbed-os/source/m2mtimerpimpl.cpp.o In file included from /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-mbed-os/mbed-client-mbed-os/m2mtimerpimpl.h:20:0, from /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-mbed-os/source/m2mtimerpimpl.cpp:16: /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-drivers/mbed/Ticker.h:19:2: warning: #warning mbed/Ticker.h is deprecated. Please use mbed-drivers/Ticker.h instead. [-Wcpp]

warning mbed/Ticker.h is deprecated. Please use mbed-drivers/Ticker.h instead.

^ [297/319] Building CXX object ym/mbed-client-mbed-os/source/CMakeF...otta_modules/mbed-client-mbed-os/source/m2mconnectionhandler.cpp.o In file included from /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-mbed-os/mbed-client-mbed-os/m2mconnectionhandlerpimpl.h:25:0, from /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-mbed-os/source/m2mconnectionhandler.cpp:16: /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal/mbed-net-socket-abstract/socket_api.h:19:2: warning: #warning mbed-net-socket-abstract/socket_api.h is deprecated. Please use sal/socket_api.h instead. [-Wcpp]

warning mbed-net-socket-abstract/socket_api.h is deprecated. Please use sal/socket_api.h instead.

^ [297/319] Building CXX object ym/mbed-client-mbed-os/source/CMakeF...modules/mbed-client-mbed-os/source/m2mconnectionhandlerpimpl.cpp.o In file included from /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-mbed-os/mbed-client-mbed-os/m2mconnectionhandlerpimpl.h:25:0, from /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-mbed-os/source/m2mconnectionhandlerpimpl.cpp:16: /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal/mbed-net-socket-abstract/socket_api.h:19:2: warning: #warning mbed-net-socket-abstract/socket_api.h is deprecated. Please use sal/socket_api.h instead. [-Wcpp]

warning mbed-net-socket-abstract/socket_api.h is deprecated. Please use sal/socket_api.h instead.

^ [313/319] Building CXX object ym/mbed-client/source/CMakeFiles/mbe...ux-example/yotta_modules/mbed-client/source/m2mnsdlinterface.cpp.o /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client/source/m2mnsdlinterface.cpp:334:73: warning: unused parameter 'nsdl_handle' [-Wunused-parameter] uint8_t M2MNsdlInterface::received_from_server_callback(struct nsdl_s * nsdl_handle, ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client/source/m2mnsdlinterface.cpp: In member function 'virtual void M2MNsdlInterface::valueupdated(M2MBase)': /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client/source/m2mnsdlinterface.cpp:733:15: warning: enumeration value 'ResourceInstance' not handled in switch [-Wswitch] switch(base->base_type()) { ^ [314/319] Building CXX object ym/mbed-client/source/CMakeFiles/mbe...ent-linux-example/yotta_modules/mbed-client/source/m2mobject.cpp.o /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client/source/m2mobject.cpp: In member function 'virtual sn_coap_hdr_s* M2MObject::handle_post_request(nsdls, sn_coap_hdrs, M2MObservationHandler_)': /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client/source/m2mobject.cpp:417:58: warning: comparison is always true due to limited range of data type [-Wtype-limits] for(instance_id = 0; instance_id <= 65535; instance_id++) { ^ [316/319] Building CXX object ym/mbed-client/source/CMakeFiles/mbe...example/yotta_modules/mbed-client/source/m2mresourceinstance.cpp.o /home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client/source/m2mresourceinstance.cpp:170:40: warning: unused parameter 'value' [-Wunused-parameter] void M2MResourceInstance::report(float value) ^ [318/319] Building CXX object source/CMakeFiles/mbed-client-linux-...e/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp.o FAILED: /usr/bin/arm-none-eabi-g++ -Dmbed_client_linux_example_EXPORTS -fno-exceptions -fno-unwind-tables -ffunction-sections -fdata-sections -Wall -Wextra -fno-rtti -fno-threadsafe-statics -mcpu=cortex-m4 -mthumb -Dthumb2 -Os -g -gdwarf-3 -DNDEBUG -Igenerated/include -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-mbed-os -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-mbedtls -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/nanostack-libservice -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-drivers -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sockets -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/cmsis-core -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/ualloc -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/minar -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/core-util -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/compiler-polyfill -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-freescale -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/uvisor-lib -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-k64f -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/cmsis-core-freescale -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/cmsis-core-k64f -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-frdm-k64f -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/dlmalloc -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/minar-platform -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/minar-platform-mbed -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal-stack-lwip -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal-driver-lwip-k64f-eth -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal-iface-eth -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbedtls -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/nsdl-c -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/include -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-drivers/mbed -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal/mbed-hal -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/cmsis-core/cmsis-core -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/common/phyksz8081 -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/drivers/clock -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/drivers/enet -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/drivers/interrupt -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/drivers/pit -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/drivers/pit/common -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/adc -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/can -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/dac -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/dmamux -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/dspi -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/edma -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/enet -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/flextimer -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/gpio -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/i2c -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/llwu -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/lptmr -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/lpuart -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/mcg -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/mpu -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/osc -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/pdb -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/pit -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/pmc -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/port -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/rcm -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/rtc -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/sai -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/sdhc -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/sim -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/smc -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/uart -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/hal/wdog -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-ksdk-mcu/mbed-hal-ksdk-mcu/TARGET_KSDK_CODE/utilities -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-k64f/mbed-hal-k64f -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-k64f/mbed-hal-k64f/device -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-k64f/mbed-hal-k64f/MK64F12 -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/cmsis-core-k64f/cmsis-core-k64f -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/mbed-hal-frdm-k64f/mbed-hal-frdm-k64f -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal-stack-lwip/sal-stack-lwip -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal-stack-lwip/sal-stack-lwip/arch -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal-stack-lwip/sal-stack-lwip/lwip -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal-stack-lwip/sal-stack-lwip/lwip/include -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal-stack-lwip/sal-stack-lwip/lwip/include/ipv4 -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal-stack-lwip/sal-stack-lwip/lwip/include/netif -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal-driver-lwip-k64f-eth/sal-driver-lwip-k64f-eth -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/yotta_modules/sal-iface-eth/sal-iface-eth -I/home/hasnain/Desktop/OOB2/mbed-client-linux-example/source -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DMBED_OPERATORS -DCPU_MK64FN1M0VMD12 -DTARGET_K64F -include "/home/hasnain/Desktop/OOB2/mbed-client-linux-example/build/frdm-k64f-gcc/yottaconfig.h" -MMD -MT source/CMakeFiles/mbed-client-linux-example.dir/home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp.o -MF "source/CMakeFiles/mbed-client-linux-example.dir/home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp.o.d" -o source/CMakeFiles/mbed-client-linux-example.dir/home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp.o -c /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp: In function 'void updateregister(void)': /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp:299:20: warning: unused variable 'counter' [-Wunused-variable] static uint8_t counter = 0; ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp: In function 'int main()': /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp:323:5: error: 'pthread_t' was not declared in this scope pthread_t unregister_thread; ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp:324:15: error: expected ';' before 'observation_thread' pthread_t observation_thread; ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp:325:15: error: expected ';' before 'update_register_thread' pthread_t update_register_thread; ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp:355:21: error: 'observation_thread' was not declared in this scope pthread_create(&observation_thread, NULL, &sendobservation, (void) &mbed_client); ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp:355:86: error: 'pthread_create' was not declared in this scope pthread_create(&observation_thread, NULL, &sendobservation, (void) &mbed_client); ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp:356:21: error: 'unregister_thread' was not declared in this scope pthread_create(&unregister_thread, NULL, &wait_forunregister, (void) &mbed_client); ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp:357:21: error: 'update_register_thread' was not declared in this scope pthread_create(&update_register_thread, NULL, &update_register, (void*) &mbed_client); ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp:359:41: error: 'pthread_join' was not declared in this scope pthread_join(unregister_thread, NULL); ^ /home/hasnain/Desktop/OOB2/mbed-client-linux-example/source/main.cpp:362:37: error: 'pthread_detach' was not declared in this scope pthread_detach(unregister_thread); ^ ninja: build stopped: subcommand failed. error: command ['ninja'] failed

hasnainvirk commented 8 years ago

Sorry my bad.