[ELDK] Issues with libtool library files in ELDK 5.1 rootfs

Anatolij Gustschin agust at denx.de
Fri Mar 23 16:45:00 CET 2012

Hello all,

Recently I've seen problems when building an autotools based package
on the target and using /opt/eldk-5.1/powerpc/rootfs-qte-sdk as the
root file system. In the libtool library files each path in the
dependency_libs list is prefixed by "=". This causes linking issues

/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall \ 
-o libgstcoralpfbsink.la -rpath /usr/local/lib/gstreamer-0.10 -module \
-avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).* \
libgstcoralpfbsink_la-coralpfbsink.lo libgstcoralpfbsink_la-log.lo \
-pthread -lgstbase-0.10 -lgstcontroller-0.10 -lgstreamer-0.10 \
-lgobject-2.0 -lgmodule-2.0 -lxml2 -lgthread-2.0 -lrt -lglib-2.0 \
grep: =/usr/lib/libgobject-2.0.la: No such file or directory
/bin/sed: can't read =/usr/lib/libgobject-2.0.la: No such file or directory
libtool: link: `=/usr/lib/libgobject-2.0.la' is not a valid libtool archive
make[2]: *** [libgstcoralpfbsink.la] Error 1
make[2]: Leaving directory `/home/root/gst-coralpfbsink-0.1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/root/gst-coralpfbsink-0.1.2'
make: *** [all] Error 2

The same issue is in the libtool library files in recent rootfs images
built by yocto autobuilder, so this is not fixed in poky, I think.

For now I fixed it in my qte-rootfs by

# cd /usr/lib
# for file in `ls *.la`;do sed -i.orig -e "s/=\/usr/\/usr/g" $file;done

But it would be good to find a better solution and fix it in the image


DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de

More information about the eldk mailing list