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

BlueZ & ETRAX100LX



Hi,

i have some problems to compile the BlueZ Daemon hcid for The
Etrax100LX.

I solved the kernel part of BlueZ. The kernel modules bluez.o and
hci_uart.o are compiled into the kernel statically.
I also compiled the BlueZ tools and they are working.

But when compiling the HCI Daemon I get an error when the linker tries
to access the libbluetooth libraray.
There is something wrong with the symbols in the library. What kind of
symbols are supported in the cris-compiler-tools???
How can I avoid this error? Below you can find the log-messages.

Thanks
Marc


Here is the output from the Makefile in ./daemons directory:
cris-gcc -o hcid hcid.o hcid_conf.tab.o hcid_conf.lex.o hcid_conf.o
hcid_lib.o hcid_sec.o -v -L../lib -lbluetooth

I gett following error message:
========../lib/libbluetooth.so: could not read symbols: Invalid
operation
==========================================
attempt to open /usr/local/cris/lib/gcc-lib/cris/2.96/crtbegin2.o
succeeded
/usr/local/cris/lib/gcc-lib/cris/2.96/crtbegin2.o
attempt to open /usr/local/cris/lib/gcc-lib/cris/2.96/crtbegin.o
succeeded
/usr/local/cris/lib/gcc-lib/cris/2.96/crtbegin.o
attempt to open /usr/local/cris/lib/gcc-lib/cris/2.96/crt0.o succeeded
/usr/local/cris/lib/gcc-lib/cris/2.96/crt0.o
attempt to open hcid.o succeeded
hcid.o
attempt to open hcid_conf.tab.o succeeded
hcid_conf.tab.o
attempt to open hcid_conf.lex.o succeeded
hcid_conf.lex.o
attempt to open hcid_conf.o succeeded
hcid_conf.o
attempt to open hcid_lib.o succeeded
hcid_lib.o
attempt to open hcid_sec.o succeeded
hcid_sec.o
attempt to open ../lib/libbluetooth.so succeeded
-lbluetooth (../lib/libbluetooth.so)
collect2: ld returned 1 exit status
make: *** [hcid] Error 1


The corresponding Makefile output when creating the libbluetooth
libraray is

gcc-cris -mlinux -isystem /project/axis/devboard_lx/eroot/include -fPIC
-Wall -I../include -prefixed   -c -o bluetooth.o bluetooth.c
gcc-cris: unrecognized option `-prefixed'
gcc-cris -mlinux -isystem /project/axis/devboard_lx/eroot/include -fPIC
-Wall -I../include -prefixed   -c -o hci.o hci.c
gcc-cris: unrecognized option `-prefixed'
ar-cris -rs libbluetooth.a bluetooth.o hci.o
gcc-cris -mlinux -isystem /project/axis/devboard_lx/eroot/include
-shared bluetooth.o hci.o -lc -Wl,-soname -Wl,libbluetooth.so.0 -o
libbluetooth.so.0.1
rm -f libbluetooth.so.0; ln -s libbluetooth.so.0.1 libbluetooth.so.0
rm -f libbluetooth.so; ln -s libbluetooth.so.0.1 libbluetooth.so