Hello,
I want to use Secure storge api in my application which has two processes and two components, but it is giving me undefined error. can anyone help
my .adef bindings section is like below.
SecStore_Api_process.ApiClient_Component.le_secStore -> SecStore_Prov_process.Provisioner_Component.le_secStore
Component.cdef code is mentioned below.
requires:
{
api:
{
le_secStore.api
}
}
sources:
{
ApiClient.c
}
** ERROR:
[19/22] Linking C executable
FAILED: /home/abharati/myWorkspace/_build_SecStore/wp77xx/app/SecStore/obj/SecStore_Prov_process/SecStore_Prov_process
/home/abharati/myWorkspace/leaf-data/WP77_503/wp77-toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/home/abharati/myWorkspace/leaf-data/WP77_503/wp77-toolchain/sysroots/armv7a-neon-poky-linux-gnueabi -fPIE -pie -o /home/abharati/myWorkspace/_build_SecStore/wp77xx/app/SecStore/obj/SecStore_Prov_process/SecStore_Prov_process /home/abharati/myWorkspace/_build_SecStore/wp77xx/app/SecStore/obj/SecStore_Prov_process/_main.c.o -rdynamic -Wl,–enable-new-dtags,-rpath=“$ORIGIN/../lib” -L “-L/home/abharati/myWorkspace/_build_SecStore/wp77xx/component/0d8f594f26cb24c9187394c4779da87f/obj” -lComponent_Provisioner_Component “-L/home/abharati/myWorkspace/_build_SecStore/wp77xx/component/0d8f594f26cb24c9187394c4779da87f/obj” -lComponent_Provisioner_Component “-L$LEGATO_BUILD/framework/lib” -llegato -lpthread -lrt -ldl -lm
/home/abharati/myWorkspace/_build_SecStore/wp77xx/component/0d8f594f26cb24c9187394c4779da87f/obj/libComponent_Provisioner_Component.so: undefined reference to le_secStore_Write' /home/abharati/myWorkspace/_build_SecStore/wp77xx/component/0d8f594f26cb24c9187394c4779da87f/obj/libComponent_Provisioner_Component.so: undefined reference to le_secStore_Read’
/home/abharati/myWorkspace/_build_SecStore/wp77xx/component/0d8f594f26cb24c9187394c4779da87f/obj/libComponent_Provisioner_Component.so: undefined reference to `le_secStore_Delete’
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
- The terminal process “/bin/bash ‘-c’, ‘mkapp ${LEGATO_DEF_FILE} -s components -t ${LEGATO_TARGET} -w ${LEGATO_OBJECT_DIR} -o ${LEGATO_OUTPUT_DIR}’” terminated with exit code: 1.
- Terminal will be reused by tasks, press any key to close it.