ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] dbus-glib cross compilation


From: Stuart Hughes
Subject: Re: [Ltib] dbus-glib cross compilation
Date: Wed, 06 May 2009 12:04:36 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Tarek,

Take a look at the patch I posted for dbus and see if applying the same scheme to dbus-glib helps.

BTW: you should get updated to a later baseline (the current CVS). Can't you get a copy when outside your firewall (at home for example).

Regards, Stuart

tarek allaoua wrote:
Hello

Using ltib version 8.1.2 cvs version 1.421.4.1 i would like to share your experience with dbus-glib cross compilation. As explained previously, cross compiling dbus should take care of AC_TRY_RUN, and some other considerations. Well, dbus builds just fine right now and it works. I would like to build dbus-glib for powerpc (mpc51xx) using the attached spec file.

Well, i've tried exporing CC LDFLAGS CPPFLAGS before calling configure without any success ... i still dont know why the configure tries to link with my host libdbus instead of my target (/rootfs/usr/lib) one.

The build ends with the following error (Attached detailled log) :

//=================================

make[4]: Entering directory `/home/allaoua/mpc5121/ltib-mpc5121ads-20081208/rpm/BUILD/dbus-glib-0.76/dbus' /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -export-symbols-regex "^[^_].*" -version-info 3:0:1 -no-undefined -o libdbus-glib-1.la <http://libdbus-glib-1.la> -rpath /usr/lib dbus-glib.lo dbus-gmain.lo dbus-gmarshal.lo dbus-gobject.lo dbus-gproxy.lo dbus-gtest.lo dbus-gvalue.lo dbus-gthread.lo dbus-gtype-specialized.lo dbus-gutils.lo dbus-gsignature.lo dbus-gvalue-utils.lo -L/home/allaoua/mpc5121/ltib-mpc5121ads-20081208/rootfs/usr/lib -ldbus-1 -L/home/allaoua/mpc5121/ltib-mpc5121ads-20081208/rootfs/usr/lib -lgobject-2.0 -lglib-2.0 -lnsl
rm -fr  .libs/libdbus-glib-1.exp .libs/libdbus-glib-1.ver
generating symbol list for `libdbus-glib-1.la <http://libdbus-glib-1.la>'
nm .libs/dbus-glib.o .libs/dbus-gmain.o .libs/dbus-gmarshal.o .libs/dbus-gobject.o .libs/dbus-gproxy.o .libs/dbus-gtest.o .libs/dbus-gvalue.o .libs/dbus-gthread.o .libs/dbus-gtype-specialized.o .libs/dbus-gutils.o .libs/dbus-gsignature.o .libs/dbus-gvalue-utils.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /bin/sed 's/.* //' | sort | uniq > .libs/libdbus-glib-1.exp /bin/grep -E -e "^[^_].*" ".libs/libdbus-glib-1.exp" > ".libs/libdbus-glib-1.expT"
mv -f ".libs/libdbus-glib-1.expT" ".libs/libdbus-glib-1.exp"
echo "{ global:" > .libs/libdbus-glib-1.ver
cat .libs/libdbus-glib-1.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libdbus-glib-1.ver
 echo "local: *; };" >> .libs/libdbus-glib-1.ver
gcc -shared .libs/dbus-glib.o .libs/dbus-gmain.o .libs/dbus-gmarshal.o .libs/dbus-gobject.o .libs/dbus-gproxy.o .libs/dbus-gtest.o .libs/dbus-gvalue.o .libs/dbus-gthread.o .libs/dbus-gtype-specialized.o .libs/dbus-gutils.o .libs/dbus-gsignature.o .libs/dbus-gvalue-utils.o -L/home/allaoua/mpc5121/ltib-mpc5121ads-20081208/rootfs/usr/lib /usr/lib/libdbus-1.so -lgobject-2.0 -lglib-2.0 -lnsl -Wl,-soname -Wl,libdbus-glib-1.so.2 -Wl,-version-script -Wl,.libs/libdbus-glib-1.ver -o .libs/libdbus-glib-1.so.2.1.0
/usr/lib/libdbus-1.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[4]: *** [libdbus-glib-1.la <http://libdbus-glib-1.la>] Error 1
make[4]: Leaving directory `/home/allaoua/mpc5121/ltib-mpc5121ads-20081208/rpm/BUILD/dbus-glib-0.76/dbus'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/allaoua/mpc5121/ltib-mpc5121ads-20081208/rpm/BUILD/dbus-glib-0.76/dbus'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/allaoua/mpc5121/ltib-mpc5121ads-20081208/rpm/BUILD/dbus-glib-0.76/dbus'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/allaoua/mpc5121/ltib-mpc5121ads-20081208/rpm/BUILD/dbus-glib-0.76'
make: *** [all] Error 2
error: Bad exit status from /home/allaoua/mpc5121/ltib-mpc5121ads-20081208/tmp/rpm-tmp.95821 (%build)

//=================================

Help is needed again :"(


------------------------------------------------------------------------

_______________________________________________
LTIB home page: http://bitshrine.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib




reply via email to

[Prev in Thread] Current Thread [Next in Thread]