2009-08-28 02:31:26

by Ted Feng

[permalink] [raw]
Subject: Re: build system defect

Sorry for the delay.

>2009/8/27 Luiz Augusto von Dentz <[email protected]>:
> is it a clean checkout?

I use the tarball release bluez-4.50.tar.gz, If that counts.

> Perhaps build is broken when compiling outside the source tree,

Pretty much, I think.


>2009/8/28 Marcel Holtmann <[email protected]>:
> I have not seen this problem, but I there might be still problems here.

Just build outside the source tree. The error will show up.

> Can you give us details on your distro etc. I would have to fix this.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty

$ uname -r
2.6.28-14-generic

To reproduce the error, here is the step:

$ wget http://www.kernel.org/pub/linux/bluetooth/bluez-4.50.tar.gz
$ tar xvf bluez-4.50.tar.gz
$ mkdir bluez-build
$ cd bluez-build
$ ../bluez-4.50/configure --prefix=/usr --sysconfdir=/etc
--localstatedir=/var --enable-debug -enable-test --enable-gstreamer
--enable-alsa --enable-usb --enable-netlink --enable-tools
--enable-bccmd --enable-pcmcia --enable-hid2hci --enable-dfutool
--enable-hidd --enable-pand --enable-dund --enable-cups
--enable-udevrules --enable-configfiles
...
checking for SNDFILE... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating scripts/bluetooth.rules
config.status: creating doc/version.xml
config.status: creating src/bluetoothd.8
config.status: creating bluez.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
$ make
make --no-print-directory all-am
CC audio/audio_libasound_module_pcm_bluetooth_la-pcm_bluetooth.lo
CC audio/audio_libasound_module_pcm_bluetooth_la-ipc.lo
CC sbc/sbc_libsbc_la-sbc.lo
CC sbc/sbc_libsbc_la-sbc_primitives.lo
CC sbc/sbc_libsbc_la-sbc_primitives_mmx.lo
CC sbc/sbc_libsbc_la-sbc_primitives_neon.lo
...
CCLD tools/bccmd
CC tools/hid2hci.o
CCLD tools/hid2hci
CC test/hciemu.o
CCLD test/hciemu
GEN scripts/97-bluetooth.rules
GEN scripts/97-bluetooth-hid2hci.rules
cp: cannot stat `scripts/bluetooth-hid2hci.rules': No such file or directory
make[1]: *** [scripts/97-bluetooth-hid2hci.rules] Error 1


2009-08-29 04:32:23

by Marcel Holtmann

[permalink] [raw]
Subject: Re: build system defect

Hi Ted,

> > is it a clean checkout?
>
> I use the tarball release bluez-4.50.tar.gz, If that counts.
>
> > Perhaps build is broken when compiling outside the source tree,
>
> Pretty much, I think.

feel free to provide patches to fix this. Otherwise it might not get
fixed since I am not using such a setup. I just compile inside the
source tree.

Regards

Marcel