[webkit-gtk] libwebkit-1.0.so.2.8.1 link fails
Yavor Atov
yatov at gcn.bg
Wed May 5 00:31:55 PDT 2010
Hi everyone,
I'm trying to cross compile WebKit-r46969 with GTK+/DirectFB backend on
MIPS LE platform. My build platform is Fedora 12 i386.
The problem is that when the build comes to linking libwebkit some of
the libraries are searched in the wrong place: /usr/lib instead
of /home/yavor/stb225/stb225/build_generic/staging/usr/lib, where are
all the development files. Here is the error message:
*******************************
libtool: link: warning: library
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libenchant.la'
was moved.
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/staging/usr/lib//libgio-2.0.la'
seems to be moved
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libpangocairo-1.0.la' seems to be moved
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libpango-1.0.la'
seems to be moved
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libatk-1.0.la'
seems to be moved
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libcairo.la'
seems to be moved
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libfontconfig.la' seems to be moved
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libpixman-1.la'
seems to be moved
libtool: link: warning: library
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libgtk-directfb-2.0.la' was moved.
libtool: link: warning: library
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libgdk-directfb-2.0.la' was moved.
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libcairo.la'
seems to be moved
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libpixman-1.la'
seems to be moved
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libfontconfig.la' seems to be moved
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libfontconfig.la' seems to be moved
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libpixman-1.la'
seems to be moved
libtool: link: warning: `/usr/lib/libgobject-2.0.la' seems to be moved
libtool: link: warning: `/usr/lib/libgmodule-2.0.la' seems to be moved
libtool: link: warning: `/usr/lib/libglib-2.0.la' seems to be moved
libtool: link: warning:
`/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libxml2.la'
seems to be moved
mipsel-linux-g++ -I/home/yavor/stb225/stb225/sde2/inc
-I/home/yavor/stb225/stb225/build_generic
-I/home/yavor/stb225/stb225/build_generic/sde2/comps/generated/lib/mipsgnu_linux_el_4KEc -I/home/yavor/stb225/stb225/build_generic/staging/opt/nxp/include -I/home/yavor/stb225/stb225/build_generic/staging/usr/local/include -I/home/yavor/stb225/stb225/build_generic/staging/usr/include -I/home/yavor/stb225/stb225/build_generic/staging/include --sysroot=/home/yavor/stb225/stb225/build_generic/staging -shared -nostdlib /opt/tuxbuilder-1.0/mipsel-unknown-linux-gnu/cross/lib/gcc/mipsel-unknown-linux-gnu/4.2.1/../../../../mipsel-unknown-linux-gnu/lib/crti.o /opt/tuxbuilder-1.0/mipsel-unknown-linux-gnu/cross/lib/gcc/mipsel-unknown-linux-gnu/4.2.1/crtbeginS.o WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-ChromeClientGtk.o WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-ContextMenuClientGtk.o WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-DragClientGtk.o WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-EditorClientGtk.o WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-FrameLoaderClientGtk.o WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-InspectorClientGtk.o WebKit/gtk/WebCoreSupport/.libs/libwebkit_1_0_la-PasteboardHelperGtk.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitapplicationcache.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitdownload.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkiterror.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitnetworkrequest.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitprivate.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitsoupauthdialog.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitversion.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebbackforwardlist.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebframe.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebhistoryitem.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebinspector.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebnavigationaction.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebpolicydecision.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebsettings.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebview.o WebKit/gtk/webkit/.libs/libwebkit_1_0_la-webkitwebwindowfeatures.o DerivedSources/.libs/libwebkit_1_0_la-webkitenumtypes.o DerivedSources/.libs/libwebkit_1_0_la-webkitmarshal.o -Wl,--whole-archive ./.libs/libJavaScriptCore.a ./.libs/libWebCore.a ./.libs/libWebCoreJS.a -Wl,--no-whole-archive -Wl,--rpath -Wl,/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib -Wl,--rpath -Wl,/home/yavor/stb225/stb225/build_generic/staging/usr/lib -Wl,--rpath -Wl,/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib -Wl,--rpath -Wl,/home/yavor/stb225/stb225/build_generic/staging/usr/lib -L/home/yavor/stb225/stb225/build_generic/rootfs/opt/nxp/lib -L/home/yavor/stb225/stb225/build_generic/rootfs/usr/local/lib -L/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib -L/home/yavor/stb225/stb225/build_generic/rootfs/lib -L/home/yavor/stb225/stb225/build_generic/staging/opt/nxp/lib -L/home/yavor/stb225/stb225/build_generic/rootfs/staging/local/lib -L/home/yavor/stb225/stb225/build_generic/staging/usr/lib -L/home/yavor/stb225/stb225/build_generic/staging/lib -ldirectfb -lfusion -ldirect -lpthread /home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libenchant.so /home/yavor/stb225/stb225/build_generic/staging/usr/lib/libgailutil.so -L/home/yavor/stb225/stb225/build_generic/packages/buildroot-2009.02/build_mipsel/libgtk2-2.13.0/gtk/.libs -L/home/yavor/stb225/stb225/build_generic/packages/buildroot-2009.02/build_mipsel/libgtk2-2.13.0/gdk/.libs -L/home/yavor/stb225/stb225/build_generic/packages/buildroot-2009.02/build_mipsel/libgtk2-2.13.0/gdk-pixbuf/.libs -L/home/yavor/stb225/stb225/build_generic/staging/usr/lib/ -L/home/yavor/stb225/stb225/build_generic/packages/buildroot-2009.02/build_mipsel/libglib2-2.16.6/gobject/.libs -L/home/yavor/stb225/stb225/build_generic/packages/buildroot-2009.02/build_mipsel/libglib2-2.16.6/gmodule/.libs -L/home/yavor/stb225/stb225/build_generic/packages/buildroot-2009.02/build_mipsel/libglib2-2.16.6/glib/.libs -L/home/yavor/stb225/stb225/build_generic/packages/buildroot-2009.02/build_mipsel/pango-1.21.3/pango/.libs -lgthread-2.0 -lrt /home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libgtk-directfb-2.0.so /home/yavor/stb225/stb225/build_generic/rootfs/usr/lib/libgdk-directfb-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libcairo.so -ljpeg /usr/lib/libsoup-2.4.so -L/usr/lib /home/yavor/stb225/stb225/build_generic/staging/usr/lib/libgio-2.0.so -L/home/yavor/stb225/stb225/build_generic/staging/home/yavor/stb225/stb225/build_generic/staging/usr/lib /usr/lib/libxslt.so /usr/lib/libxml2.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so -lfreetype -lz /usr/lib/libfontconfig.so -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lpng12 -lsqlite3 -L/opt/tuxbuilder-1.0/mipsel-unknown-linux-gnu/cross/lib/gcc/mipsel-unknown-linux-gnu/4.2.1 -L/opt/tuxbuilder-1.0/mipsel-unknown-linux-gnu/cross/lib/gcc/mipsel-unknown-linux-gnu/4.2.1/../../../../mipsel-unknown-linux-gnu/lib -lstdc++ -lm -lc -lgcc_s /opt/tuxbuilder-1.0/mipsel-unknown-linux-gnu/cross/lib/gcc/mipsel-unknown-linux-gnu/4.2.1/crtendS.o /opt/tuxbuilder-1.0/mipsel-unknown-linux-gnu/cross/lib/gcc/mipsel-unknown-linux-gnu/4.2.1/../../../../mipsel-unknown-linux-gnu/lib/crtn.o -pthread -Wl,--version-script -Wl,./autotools/symbols.filter -pthread -Wl,-soname -Wl,libwebkit-1.0.so.2 -o .libs/libwebkit-1.0.so.2.8.1
/usr/lib/libatk-1.0.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [libwebkit-1.0.la] Error 1
make[1]: Leaving directory
`/home/yavor/src/g-mips/tarballs/WebKit-r46969'
make: *** [all] Error 2
*******************************
It couldn't find libgobject-2.0.la, libgmodule-2.0.la and
libglib-2.0.la and I copied them in /usr/lib/, but then it searches for
the .so files and finds the build PC ones.
Here is the environment I set:
*******************************
PATH=
${PATH}:/home/yavor/stb225/stb225/build_generic/staging/bin:/home/yavor/stb225/stb225/build_generic/staging/usr/bin:/home/yavor/stb225/stb225/build_generic/packages/buildroot-2009.02/toolchain_build_mipsel/bin:/opt/tuxbuilder-1.0/mipsel-unknown-linux-gnu/cross/bin:/home/yavor/stb225/stb225/build_generic/bin:/home/yavor/stb225/stb225/bin:/home/yavor/stb225/stb225/sde2/sde/scripts:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/home/yavor/bin
CROSS_COMPILE=mipsel-linux-
AR=${CROSS_COMPILE}ar
AS=${CROSS_COMPILE}as
LD=${CROSS_COMPILE}'ld
--sysroot=/home/yavor/stb225/stb225/build_generic/staging
-L/home/yavor/stb225/stb225/build_generic/rootfs/opt/nxp/lib
-L/home/yavor/stb225/stb225/build_generic/rootfs/usr/local/lib
-L/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib
-L/home/yavor/stb225/stb225/build_generic/rootfs/lib
-L/home/yavor/stb225/stb225/build_generic/staging/opt/nxp/lib
-L/home/yavor/stb225/stb225/build_generic/rootfs/staging/local/lib
-L/home/yavor/stb225/stb225/build_generic/staging/usr/lib
-L/home/yavor/stb225/stb225/build_generic/staging/lib'
NM=${CROSS_COMPILE}nm
CC=${CROSS_COMPILE}'gcc -I/home/yavor/stb225/stb225/sde2/inc
-I/home/yavor/stb225/stb225/build_generic
-I/home/yavor/stb225/stb225/build_generic/sde2/comps/generated/lib/mipsgnu_linux_el_4KEc -I/home/yavor/stb225/stb225/build_generic/staging/opt/nxp/include -I/home/yavor/stb225/stb225/build_generic/staging/usr/local/include -I/home/yavor/stb225/stb225/build_generic/staging/usr/include -I/home/yavor/stb225/stb225/build_generic/staging/include --sysroot=/home/yavor/stb225/stb225/build_generic/staging'
GCC=${CROSS_COMPILE}'gcc -I/home/yavor/stb225/stb225/sde2/inc
-I/home/yavor/stb225/stb225/build_generic
-I/home/yavor/stb225/stb225/build_generic/sde2/comps/generated/lib/mipsgnu_linux_el_4KEc -I/home/yavor/stb225/stb225/build_generic/staging/opt/nxp/include -I/home/yavor/stb225/stb225/build_generic/staging/usr/local/include -I/home/yavor/stb225/stb225/build_generic/staging/usr/include -I/home/yavor/stb225/stb225/build_generic/staging/include --sysroot=/home/yavor/stb225/stb225/build_generic/staging'
CPP=${CROSS_COMPILE}'cpp -I/home/yavor/stb225/stb225/sde2/inc
-I/home/yavor/stb225/stb225/build_generic
-I/home/yavor/stb225/stb225/build_generic/sde2/comps/generated/lib/mipsgnu_linux_el_4KEc -I/home/yavor/stb225/stb225/build_generic/staging/opt/nxp/include -I/home/yavor/stb225/stb225/build_generic/staging/usr/local/include -I/home/yavor/stb225/stb225/build_generic/staging/usr/include -I/home/yavor/stb225/stb225/build_generic/staging/include --sysroot=/home/yavor/stb225/stb225/build_generic/staging'
CXX=${CROSS_COMPILE}'g++ -I/home/yavor/stb225/stb225/sde2/inc
-I/home/yavor/stb225/stb225/build_generic
-I/home/yavor/stb225/stb225/build_generic/sde2/comps/generated/lib/mipsgnu_linux_el_4KEc -I/home/yavor/stb225/stb225/build_generic/staging/opt/nxp/include -I/home/yavor/stb225/stb225/build_generic/staging/usr/local/include -I/home/yavor/stb225/stb225/build_generic/staging/usr/include -I/home/yavor/stb225/stb225/build_generic/staging/include --sysroot=/home/yavor/stb225/stb225/build_generic/staging'
FC=${CROSS_COMPILE}gfortran
RANLIB=${CROSS_COMPILE}ranlib
STRIP=${CROSS_COMPILE}strip
OBJCOPY=${CROSS_COMPILE}objcopy
OBJDUMP=${CROSS_COMPILE}objdump
READELF=${CROSS_COMPILE}readelf
SIZE=${CROSS_COMPILE}size
STRINGS=${CROSS_COMPILE}strings
DEFAULT_ASSEMBLER=${CROSS_COMPILE}as
DEFAULT_LINKER=${CROSS_COMPILE}ld
ADDR2LINE=${CROSS_COMPILE}addr2line
GCOV=${CROSS_COMPILE}gcov
GCCBUG=${CROSS_COMPILE}gccbug
STAGING_DIR=/home/yavor/stb225/stb225/build_generic/staging
PKG_CONFIG_SYSROOT_DIR=$STAGING_DIR
PKG_CONFIG=$STAGING_DIR/usr/bin/pkg-config
PKG_CONFIG_PATH=$STAGING_DIR/usr/lib/pkgconfig
TARGET=mipsel-unknown-linux-gnu
HOST=mipsel-unknown-linux-gnu
BUILD=i386-pc-linux-gnu
PREFIX=/usr
LD_LIBRARY_PATH=$STAGING_DIR/lib:$STAGING_DIR/usr/lib
LDFLAGS='-L/home/yavor/stb225/stb225/build_generic/rootfs/opt/nxp/lib
-L/home/yavor/stb225/stb225/build_generic/rootfs/usr/local/lib
-L/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib
-L/home/yavor/stb225/stb225/build_generic/rootfs/lib
-L/home/yavor/stb225/stb225/build_generic/staging/opt/nxp/lib
-L/home/yavor/stb225/stb225/build_generic/rootfs/staging/local/lib
-L/home/yavor/stb225/stb225/build_generic/staging/usr/lib
-L/home/yavor/stb225/stb225/build_generic/staging/lib'
ROOTFS=/home/yavor/stb225/stb225/build_generic/rootfs
LIBS='-L/home/yavor/stb225/stb225/build_generic/rootfs/opt/nxp/lib
-L/home/yavor/stb225/stb225/build_generic/rootfs/usr/local/lib
-L/home/yavor/stb225/stb225/build_generic/rootfs/usr/lib
-L/home/yavor/stb225/stb225/build_generic/rootfs/lib
-L/home/yavor/stb225/stb225/build_generic/staging/opt/nxp/lib
-L/home/yavor/stb225/stb225/build_generic/rootfs/staging/local/lib
-L/home/yavor/stb225/stb225/build_generic/staging/usr/lib
-L/home/yavor/stb225/stb225/build_generic/staging/lib'
export PATH AR AS LD NM CC GCC CPP CXX FC RANLIB STRIP OBJCOPY OBJDUMP
READELF SIZE STRINGS DEFAULT_ASSEMBLER DEFAULT_LINKER ADDR2LINE GCOV
GCCBUG PKG_CONFIG_SYSROOT_DIR PKG_CONFIG_EXEC PKG_CONFIG
PKG_CONFIG_PATH STAGING_DIR TARGET HOST BUILD PREFIX LD_LIBRARY_PATH
ROOTFS LDFLAGS LIBS
*******************************
... and the configuration:
*******************************
SED=/bin/sed
$SED -i.bak -e 's%ACLOCAL_FLAGS=.*%ACLOCAL_FLAGS="-I autotools -I
$STAGING_DIR/usr/share/aclocal"%' autogen.sh
$SED -i.bak -e 's/AUTOMAKE_FLAGS=.*/AUTOMAKE_FLAGS="--foreign
--add-missing --copy"/' autogen.sh
$SED -i.bak -e 's/LIBTOOLIZE_FLAGS=.*/LIBTOOLIZE_FLAGS="--force
--automake --copy"/' autogen.sh
./autogen.sh --prefix=$PREFIX --host=$HOST --build=$BUILD --target=
$TARGET --with-target=directfb --with-unicode-backend=icu
--disable-video
./configure --prefix=$PREFIX --host=$HOST --build=$BUILD --target=
$TARGET --with-target=directfb --with-unicode-backend=icu
--disable-video
*******************************
I've built more then 20 other libs with that environment, but here it
fails. I think the problem is in libtool, but I cannot find it.
Somebody knows whats wrong?
Best regards,
Yavor
More information about the webkit-gtk
mailing list