[yocto] Linking problem after upgrade to rocko

Diogo Piçarra xpetept at gmail.com
Wed Jan 24 12:26:20 PST 2018


Hi,

I have a recipe to build macchina.io that was working with pyro but
after updating to rocko the compile task fails after the following
warning: error:/home/username/Projects/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/macchina.io/git-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/7.2.0/ld:
warning: libPocoJSON.so.51, needed by
/home/username/Projects/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/macchina.io/git-r0/git/platform/lib/Linux/armv7l/libPocoUtil.so,
not found (try using -rpath or -rpath-link)

The compile task is the following:
do_compile() {
    POCO_CONFIG=Yocto LINKMODE=SHARED make -s
DEFAULT_TARGET=shared_release 'CXXFLAGS=${CXXFLAGS} -v
-DHAVE_EXPAT_CONFIG_H' CC='${CC}' 'CFLAGS=${CFLAGS}' CXX='${CXX}'
STRIP='' BUNDLE_TOOL='${TMPDIR}/work/x86_64-linux/macchina.io-native/git-r0/recipe-sysroot-native/usr/bin/bundle'
PAGECOMPILER='${TMPDIR}/work/x86_64-linux/macchina.io-native/git-r0/recipe-sysroot-native/usr/bin/cpspc'
}

The files libPocoJSON.so.51 and libPocoUtil.so are in the same folder.
I already tried to set -rpath-link, -rpath and LD_LIBRARY_PATH. Nothing worked.
I already read the release notes and can't find anyting that could have
created this problem.
How can I fix this?

Thanks
Diogo



More information about the yocto mailing list