0

failed to run/linking errors for lighting controller service and client sample

asked 2015-05-11 06:14:40 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi,

I 'm trying Alljoyn lighting service framework on Ubuntu 32-bit machine following Lighting service framework README.txt. I successfully built this lighting service, I started ./alljoyn-daemon --config-file=./routerconfig.xml and able to run ./lamp_service.

But, when I tried to run ./lighting_controller_client_sample, I got these linking errors

./lighting_controller_client_sample: Symbol _ZN3ajn15PasswordManager8passwordE' has different size in shared object, consider re-linking ./lighting_controller_client_sample: Symbol_ZN3ajn15PasswordManager13authMechanismE' has different size in shared object, consider re-linking ./lighting_controller_client_sample: Symbol _ZN3qcc5Event9alwaysSetE' has different size in shared object, consider re-linking ./lighting_controller_client_sample: Symbol_ZN3qcc5Event8neverSetE' has different size in shared object, consider re-linking ./lighting_controller_client_sample: symbol lookup error: ./lighting_controller_client_sample: undefined symbol: _ZN17StaticGlobalsInitC1Ev

and for this ./lighting_controller_service. Errors are like this

./lighting_controller_service: Symbol `_ZN3ajn15PasswordManager8passwordE' has different size in shared object, consider re-linking ./lighting_controller_service: symbol lookup error: ./lighting_controller_service: undefined symbol: _ZN3ajn9AboutData16HARDWARE_VERSIONE

Can anyone help me to resolve these issues.?

Thanks, Ganesh.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-12 22:59:39 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi,

I figured out the pitfall that I have encountered in this context. With ldd command, I observed that

./lighting_controller_service and ./lighting_controller_client_sample are depends on liballjoyn.so library.

But, When I was trying to work with alljoyn-gwagent. I copied 14.06a version libraries onto /usr/lib, So When I 'm running ./lighting_controller_service and ./lighting_controller_client_sample by default these linking /usr/lib/liballjoyn.so (which is 14.06a version). But, I 'm trying lighting service framework of 14.12 version which has some more updated features over 14.06a.

To solve that issue, I just give $export LD_LIBRARY_PATH=$(workspace-14.12)/core/service_framework/build/linux/x86/debug/dist/cpp/lib/liballjoyn.so (which is 14.12 version). Then, it worked for me.

I thought to remove the Question for this foolish activity. But, In case this can help, some other guys can encounter the similar situation.

Thanks, Ganesh

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-05-11 06:14:40 -0700

Seen: 213 times

Last updated: May 12 '15