ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] bluez utils 3.x more issues


From: Stuart Hughes
Subject: Re: [Ltib] bluez utils 3.x more issues
Date: Tue, 12 Feb 2008 08:23:49 +0000

Hi Peter,

If any packages have put libtool .la files into rootfs/.... you will get
this kind of problem.

Do a "find rootfs -name \*.la" and if you do find any:

* Figure out what put them there:
$ rpm --dbpath `pwd`/rpmdb rootfs/....

* Remove them
* Fix the spec file (probably already fixed in the Savannah CVS latest)
* Re-try your build.

You should not need to add -I/-L $DEV_IMAGE/...

Regards, Stuart

On Mon, 2008-02-11 at 19:08 +0000, Peter Wurmsdobler wrote:
> Hello,
> 
> I am still trying to compile bluez-utils 3.26 for the imx27, but for 
> some reason something does not work anymore. And I am convinced that 
> this morning I could compile it.
> 
> When it comes to link with the dbus library, the following command 
> appears to be using the host's libraries, if you look at the absolute 
> path for the dbus:
> 
> gcc -I/home/peter/c7833/trunk/binary/rootfs/usr/include 
> -I/home/peter/c7833/trunk/binary/rootfs/usr/include/dbus-1.0 
> -I/home/peter/c7833/trunk/binary/rootfs/usr/lib/dbus-1.0/include 
> -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -o hcid main.o  libhciserver.a 
> ../sdpd/libsdpserver.a ../common/libhelper.a ../eglib/.libs/libeglib.a 
> -ldl -L/home/peter/c7833/trunk/binary/rootfs/usr/lib 
> /usr/lib/libdbus-1.so -lz -lbluetooth
> /usr/lib/libdbus-1.so: could not read symbols: File in wrong format
> collect2: ld returned 1 exit status
> 
> It is likely that ./configure called from the spec file does something 
> wrong. Here that Build part of it:
> 
> %Build
> #  Determine whether certain libraries exist, and
> #  what to tell ./configure about them.
> if [ -f $DEV_IMAGE/usr/lib/libasound.so ] ; then
>          _alsa_lib="--with-alsa=$DEV_IMAGE/usr/lib"
> else
>          _alsa_lib="--without-alsa"
> fi
> 
> if [ -f $DEV_IMAGE/usr/lib/libusb.so ] ; then
>          _usb_lib="--with-usb=$DEV_IMAGE/usr/lib"
> else
>          _usb_lib="--without-usb"
> fi
> 
> ./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \
>          $_alsa_lib \
>          $_usb_lib  \
>          --without-openobex \
>          --without-fuse \
>          --enable-bccmd \
>          --with-bluez=$DEV_IMAGE/usr/lib
> make all
> 
> 
> I also tried adding a:
> 
>          --with-dbus=$DEV_IMAGE/usr/lib \
> 
> but this didn't work.
> 
> Any ideas?
> peter
> 
> 
> 
> _______________________________________________
> 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]