Skip to contentSkip to conversation

Cross compile bluez 4.47

DISCUSSION Andre Thiago Souza 2 participants 2 messages Aug 19, 2009 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi, i'm trying to cross compile the bluez 4.47 on ARM platform and i have some problems. To configure i set the following comand and all works fine:

$ ./configure --prefix=/usr/bt/ --host=arm-linux CC=arm-linux-gcc CPP=arm-linux-cpp AR=arm-linux-ar STRIP=arm-linux-strip RANLIB=arm-linux-ranlib LD=arm-linux-ld

But when i try to make the library:

$ make && make install

i got the following error:

make[2]: Entering directory `/usr/bluez-4.47/common'
CCLD test_textfile
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oS)(.text+0x44): In function `__libc_csu_init':
: undefined reference to __init_array_end' /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oS)(.text+0x48): In function __libc_csu_init':
: undefined reference to __init_array_start' /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oS)(.text+0x8c): In function __libc_csu_fini':
: undefined reference to __fini_array_end' /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oS)(.text+0x90): In function __libc_csu_fini':
: undefined reference to `__fini_array_start'
collect2: ld returned 1 exit status
make[2]: *** [test_textfile] Error 1
make[2]: Leaving directory `/usr/bluez-4.47/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/bluez-4.47'
make: *** [all] Error 2

#1 lore raw

Hi Andre,

Quoted 25 lines · Andre Thiago Souza

Hi, i'm trying to cross compile the bluez 4.47 on ARM platform and i have some problems.
To configure i set the following comand and all works fine:

$ ./configure --prefix=/usr/bt/ --host=arm-linux CC=arm-linux-gcc
CPP=arm-linux-cpp AR=arm-linux-ar STRIP=arm-linux-strip
RANLIB=arm-linux-ranlib LD=arm-linux-ld

But when i try to make the library:

$ make && make install

i got the following error:

make[2]: Entering directory `/usr/bluez-4.47/common'
 CCLD   test_textfile /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oS)(.text+0x44):
In function `__libc_csu_init':
: undefined reference to `__init_array_end' /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oS)(.text+0x48):
In function `__libc_csu_init':
: undefined reference to `__init_array_start' /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oS)(.text+0x8c):
In function `__libc_csu_fini':
: undefined reference to `__fini_array_end' /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oS)(.text+0x90):

Quoted 8 lines

In function `__libc_csu_fini':
: undefined reference to `__fini_array_start'
collect2: ld returned 1 exit status make[2]: *** [test_textfile] Error 1 make[2]: Leaving directory /usr/bluez-4.47/common' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /usr/bluez-4.47'
make: *** [all] Error 2

It doesn't look like this is our problem, never really tried to cross compile that way you did (normally I use boostrap-configure on scratchbox and that just work) but it seems your chaintool is not right. If you don't like the idea of having to install scratchbox you can try mamona on a chroot: http://dev.openbossa.org/trac/mamona/

Signature · 2 lines
Luiz Augusto von Dentz
Engenheiro de Computação