BIC-MNI / minc-toolkit

Metaproject uniting all the available minc tools
GNU General Public License v3.0
37 stars 15 forks source link

Receiving Several compiler errors #39

Closed KLashkari closed 8 years ago

KLashkari commented 8 years ago

I apologize in advance, I am a complete NOOB, setting up my Raspberry Pi with Azure IoT suite for the first time. When I run the following line of code, I get the following errors. Any help is appreciated!

Code: cd ~/azure-iot-sdks/ sudo ~/azure-iot-sdks/c/build_all/linux/setup.sh chmod +x ~/azure-iot-sdks/c/build_all/linux/build.sh ~/azure-iot-sdks/c/build_all/linux/build.sh

Error:

[ 92%] Building C object iothub_client/samples/iothub_client_sample_http/CMakeFiles/iothub_client_sample_http.dir/iothub_client_sample_http.c.o Scanning dependencies of target iothub_client_sample_http_shared [ 93%] Building C object iothub_client/samples/iothub_client_sample_http_shared/CMakeFiles/iothub_client_sample_http_shared.dir/iothub_client_sample_http_shared.c.o Linking C executable remote_monitoring Linking C executable simplesample_amqp Linking C executable iothub_client_sample_http [ 94%] Building C object iothub_client/samples/iothub_client_sample_http_shared/CMakeFiles/iothub_client_sample_http_shared.dir/linux/main.c.o /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/crt1.o: In function _start': /build/glibc-6f8a9a/glibc-2.19/csu/../ports/sysdeps/arm/start.S:119: undefined reference tomain' collect2: error: ld returned 1 exit status serializer/samples/remote_monitoring/CMakeFiles/remote_monitoring.dir/build.make:91: recipe for target 'serializer/samples/remote_monitoring/remote_monitoring' failed make[2]: * [serializer/samples/remote_monitoring/remote_monitoring] Error 1 CMakeFiles/Makefile2:1939: recipe for target 'serializer/samples/remote_monitoring/CMakeFiles/remote_monitoring.dir/all' failed make[1]: * [serializer/samples/remote_monitoring/CMakeFiles/remote_monitoring.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... Linking C executable iothub_client_sample_http_shared ../../../iothub_client/libiothub_client_amqp_transport.a(iothub_client_ll.c.o):(.data+0x14): multiple definition of IOTHUB_CLIENT_CONFIRMATION_RESULTStringStorage' CMakeFiles/simplesample_amqp.dir/simplesample_amqp.c.o:(.data+0xf4): first defined here ../../../iothub_client/libiothub_client_amqp_transport.a(iothub_client_ll.c.o): In functionIOTHUB_CLIENT_CONFIRMATION_RESULTStrings': iothub_client_ll.c:(.text+0xe8): multiple definition of IOTHUB_CLIENT_CONFIRMATION_RESULTStrings' CMakeFiles/simplesample_amqp.dir/simplesample_amqp.c.o:simplesample_amqp.c:(.text+0x11e0): first defined here ../../../iothub_client/libiothub_client_amqp_transport.a(iothub_client_ll.c.o): In functionIOTHUB_CLIENT_CONFIRMATION_RESULT_FromString': iothub_client_ll.c:(.text+0x12c): multiple definition of `IOTHUB_CLIENT_CONFIRMATION_RESULT_FromString' CMakeFiles/simplesample_amqp.dir/simplesample_amqp.c.o:simplesample_amqp.c:(.text+0x1224): first defined here collect2: error: ld returned 1 exit status serializer/samples/simplesample_amqp/CMakeFiles/simplesample_amqp.dir/build.make:116: recipe for target 'serializer/samples/simplesample_amqp/simplesample_amqp' failed make[2]: * [serializer/samples/simplesample_amqp/simplesample_amqp] Error 1 CMakeFiles/Makefile2:1993: recipe for target 'serializer/samples/simplesample_amqp/CMakeFiles/simplesample_amqp.dir/all' failed make[1]: * [serializer/samples/simplesample_amqp/CMakeFiles/simplesample_amqp.dir/all] Error 2 [ 94%] Built target iothub_client_sample_http [ 94%] Built target iothub_client_sample_http_shared Makefile:127: recipe for target 'all' failed make: * [all] Error 2 pi@raspberrypi:~/azure-iot-sdks $