[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] bluez utils 3.x more issues
From: |
Peter Wurmsdobler |
Subject: |
Re: [Ltib] bluez utils 3.x more issues |
Date: |
Tue, 12 Feb 2008 09:35:28 +0000 |
User-agent: |
Thunderbird 2.0.0.9 (Windows/20071031) |
Hello,
thanks for the hint. It helps, but no success so far.
Do a "find rootfs -name \*.la" and if you do find any:
found the culprit: it was libdbus.la, hence dbus.
* Fix the spec file (probably already fixed in the Savannah CVS latest)
I probably have to add a rm $(SOMEPATH)/usr/lib/libdbus.la in the spce
file. I'll only need to figure out the value of $(SOMEPATH).
Nevertheless, the build now fails on libbluetooth. For some reason,
.configure has added "/usr/local/lib/libbluetooth.so"
I still have the impression there is a syntax error in the spec file,
e.g. the $DEV_IMAGE is an empty string or so.
peter
make[2]: Entering directory
`/home/paw2/c7833/trunk/build/ltib/rpm/BUILD/bluez-utils-3.26/tools'
/bin/sh ../libtool --tag=CC --mode=link gcc
-I/home/paw2/c7833/trunk/binary/rootfs/usr/include -Wall -O2
-D_FORTIFY_SOURCE=2 -o hcitool hcitool.o -lbluetooth
../common/libhelper.a
gcc -I/home/paw2/c7833/trunk/binary/rootfs/usr/include -Wall -O2
-D_FORTIFY_SOURCE=2 -o hcitool hcitool.o /usr/local/lib/libbluetooth.so
../common/libhelper.a
/usr/local/lib/libbluetooth.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [hcitool] Error 1
make[2]: Leaving directory
`/home/paw2/c7833/trunk/build/ltib/rpm/BUILD/bluez-utils-3.26/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/paw2/c7833/trunk/build/ltib/rpm/BUILD/bluez-utils-3.26'
make: *** [all] Error 2
error: Bad exit status from
/home/paw2/c7833/trunk/build/ltib/tmp/rpm-tmp.52503 (%build)
RPM build errors:
Bad exit status from
/home/paw2/c7833/trunk/build/ltib/tmp/rpm-tmp.52503 (%build)
Build time for bluez-utils: 6 seconds
Failed building bluez-utils
f_buildrpms() returned an error, exiting
Started: Tue Feb 12 09:11:27 2008
Ended: Tue Feb 12 09:11:35 2008
Elapsed: 8 seconds
These packages failed to build:
bluez-utils
Build Failed
bluez-utils.spec:
%define pfx /opt/freescale/rootfs/%{_target_cpu}
Summary : BlueZ bluetooth utilities
Name : bluez-utils
Version : 3.26
Release : 1
License : GPL
Vendor : Freescale
Packager : Duck
Group : Applications/System
Source : %{name}-%{version}.tar.gz
BuildRoot : %{_tmppath}/%{name}
Prefix : %{pfx}
%Description
%{summary}
%Prep
%setup
%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
%Install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{pfx}
make install DESTDIR=${RPM_BUILD_ROOT}/%{pfx}
# prefix=/usr is corrrect for the binaries, but /etc/* files
# end up being installed in /usr/etc. Fix that.
mv $RPM_BUILD_ROOT/%{pfx}/usr/etc $RPM_BUILD_ROOT/%{pfx}
# install the init script
mkdir -p $RPM_BUILD_ROOT/%{pfx}/etc/default
$RPM_BUILD_ROOT/%{pfx}/etc/rc.d/init.d
cp scripts/bluetooth.init $RPM_BUILD_ROOT/%{pfx}/etc/rc.d/init.d/bluetooth
chmod +x $RPM_BUILD_ROOT/%{pfx}/etc/rc.d/init.d/bluetooth
# install config file
cp scripts/bluetooth.default $RPM_BUILD_ROOT/%{pfx}/etc/default/bluetooth
# the installed pin helper is a python script, too heavyweight for
# an embedded device. replace it with a simple script:
cat > $RPM_BUILD_ROOT/%{pfx}/usr/bin/bluepin << EOF
#!/bin/sh
echo "PIN:123456"
EOF
%Clean
rm -rf $RPM_BUILD_ROOT
%Files
%defattr(-,root,root)
%{pfx}/*