If you don't need the services code, you can compile with "scons resource" which should compile everything else.
Otherwise, it seems that this tester app is not properly linkin glib, so you'd likely need to modify its Sconscript to link it appropriately. Alternatively, I'd suggest getting the code from our git (master branch now has CA merged in) repo, and compiling from latest. -----Original Message----- From: iotivity-dev-bounces at lists.iotivity.org [mailto:[email protected]] On Behalf Of Harish Hanumanthappa Sent: Wednesday, April 22, 2015 5:33 AM To: iotivity-dev at lists.iotivity.org Subject: [dev] Compilation Error - iotivity-0.9.0-CA Hi All, I am getting the following error, when I am trying to compile iotivity-0.9.0-CA module. Any help on how to resolve this issue and proceed further will of great help Regards Harish Console Message for Reference scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: out/linux/x86_64/release g++ -o out/linux/x86_64/release/service/soft-sensor-manager/SampleApp/linux/SSMTesterApp/SSMTesterApp -s -m64 out/linux/x86_64/release/service/soft-sensor-manager/SampleApp/linux/SSMTesterApp/src/SSMTestApp.o -Lout/linux/x86_64/release -L. -lboost_thread -lboost_system -lSSMSDK -lSSMCore -loc -loctbstack -lcoap -loc_logger -ldl -lconnectivity_abstraction out/linux/x86_64/release/libSSMCore.a(sqlite3.o): In function `pthreadMutexTry': sqlite3.c:(.text+0x43ca): undefined reference to `pthread_mutex_trylock' out/linux/x86_64/release/libSSMCore.a(sqlite3.o): In function `pthreadMutexAlloc': sqlite3.c:(.text+0xced2): undefined reference to `pthread_mutexattr_init' sqlite3.c:(.text+0xcee1): undefined reference to `pthread_mutexattr_settype' sqlite3.c:(.text+0xcef8): undefined reference to `pthread_mutexattr_destroy' out/linux/x86_64/release/libSSMCore.a(ThreadManager.o): In function `CSimpleMutex::CSimpleMutex()': ThreadManager.cpp:(.text+0x75): undefined reference to `pthread_mutexattr_init' ThreadManager.cpp:(.text+0x82): undefined reference to `pthread_mutexattr_settype' out/linux/x86_64/release/libSSMCore.a(ThreadManager.o): In function `CSemaphore::initialize()': ThreadManager.cpp:(.text+0xbe): undefined reference to `sem_init' out/linux/x86_64/release/libSSMCore.a(ThreadManager.o): In function `CSemaphore::destroy()': ThreadManager.cpp:(.text+0xd2): undefined reference to `sem_destroy' out/linux/x86_64/release/libSSMCore.a(ThreadManager.o): In function `CSemaphore::take()': ThreadManager.cpp:(.text+0xe7): undefined reference to `sem_wait' out/linux/x86_64/release/libSSMCore.a(ThreadManager.o): In function `CWorkerThread::initialize()': ThreadManager.cpp:(.text+0x115): undefined reference to `pthread_create' out/linux/x86_64/release/libSSMCore.a(ThreadManager.o): In function `CSemaphore::give()': ThreadManager.cpp:(.text+0x17c): undefined reference to `sem_post' out/linux/x86_64/release/libSSMCore.a(ThreadManager.o): In function `CWorkerThread::terminate()': ThreadManager.cpp:(.text+0x233): undefined reference to `pthread_detach' out/linux/x86_64/release/libSSMCore.a(ThreadManager.o): In function `CSimpleMutex::~CSimpleMutex()': ThreadManager.cpp:(.text+0xa3): undefined reference to `pthread_mutexattr_destroy' out/linux/x86_64/release/liboctbstack.so: undefined reference to `OCGetSocketInfo' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_thread_pool_new' out/linux/x86_64/release/liboctbstack.so: undefined reference to `OCMalloc' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_time_val_add' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_cond_free' out/linux/x86_64/release/liboctbstack.so: undefined reference to `OCBuildIPv4Address' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_cond_broadcast' out/linux/x86_64/release/liboctbstack.so: undefined reference to `OCSeedRandom' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_mutex_new' out/linux/x86_64/release/liboctbstack.so: undefined reference to `OCGetRandomByte' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_mutex_trylock' out/linux/x86_64/release/liboctbstack.so: undefined reference to `OCGetRandomRange' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_mutex_unlock' out/linux/x86_64/release/liboc.so: undefined reference to `OCDevAddrToString' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_cond_timed_wait' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_cond_new' out/linux/x86_64/release/liboctbstack.so: undefined reference to `OCGetRandom' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_cond_wait' out/linux/x86_64/release/liboctbstack.so: undefined reference to `OCDevAddrToIPv4Addr' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_thread_pool_free' out/linux/x86_64/release/liboctbstack.so: undefined reference to `OCCalloc' out/linux/x86_64/release/liboc.so: undefined reference to `OCDevAddrToPort' out/linux/x86_64/release/liboctbstack.so: undefined reference to `coap_join_wellknown_group' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_cond_signal' out/linux/x86_64/release/liboctbstack.so: undefined reference to `OCFillRandomMem' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_mutex_lock' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_get_monotonic_time' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_mutex_free' out/linux/x86_64/release/liboctbstack.so: undefined reference to `OCFree' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_get_current_time' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_error_free' out/linux/x86_64/release/libconnectivity_abstraction.so: undefined reference to `g_thread_pool_push' collect2: ld returned 1 exit status scons: *** [out/linux/x86_64/release/service/soft-sensor-manager/SampleApp/linux/SSMTesterApp/SSMTesterApp] Error 1 scons: building terminated because of errors. harish at harish-VirtualBox:~/iot/iotivity/iotivity-0.9.0-CA$ harish at harish-VirtualBox:~/iot/iotivity/iotivity-0.9.0-CA$ pwd /home/harish/iot/iotivity/iotivity-0.9.0-CA _______________________________________________ iotivity-dev mailing list iotivity-dev at lists.iotivity.org https://lists.iotivity.org/mailman/listinfo/iotivity-dev
