[root@localhost lightblue-0.3.2]# python setup.py install
running install
running build
running build_py
running build_ext
building '_lightblueutil' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/python2.5 -c src/linux/lightblue_util.c -o build/temp.linux-i686-2.5/src/linux/lightblue_util.o
src/linux/lightblue_util.c:30:33: error: bluetooth/bluetooth.h: No existe el fichero o el directorio
src/linux/lightblue_util.c:31:27: error: bluetooth/hci.h: No existe el fichero o el directorio
src/linux/lightblue_util.c:32:31: error: bluetooth/hci_lib.h: No existe el fichero o el directorio
src/linux/lightblue_util.c: In function ‘lb_hci_read_local_name’:
src/linux/lightblue_util.c:48: aviso: declaración implícita de la función ‘hci_read_local_name’
src/linux/lightblue_util.c: In function ‘lb_hci_read_bd_addr’:
src/linux/lightblue_util.c:65: error: ‘bdaddr_t’ no se declaró aquí (primer uso en esta función)
src/linux/lightblue_util.c:65: error: (Cada identificador no declarado solamente se reporta una vez
src/linux/lightblue_util.c:65: error: ara cada funcion en la que aparece.)
src/linux/lightblue_util.c:65: error: expected ‘;’ before ‘ba’
src/linux/lightblue_util.c:72: aviso: declaración implícita de la función ‘hci_read_bd_addr’
src/linux/lightblue_util.c:72: error: ‘ba’ no se declaró aquí (primer uso en esta función)
src/linux/lightblue_util.c:78: aviso: declaración implícita de la función ‘ba2str’
src/linux/lightblue_util.c: In function ‘lb_hci_read_class_of_dev’:
src/linux/lightblue_util.c:97: aviso: declaración implícita de la función ‘hci_read_class_of_dev’
error: command 'gcc' failed with exit status 1
I tried to search the openobex with yum, but it is not in the repos,
I'll search for it later, maybe I have to compile too.
I hope the log to be useful.
Thanks,
_Ricardo.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, i'm trying to compile lightblue in Fedora 8 but
I got the message "error: command 'gcc' failed with exit status 1"
I have installed gcc, and all the packages I think it needs, but I
guess I'm missing something.
Thanks,
Ricardo.
hi,I had got this message too. it seems same.In my case,after I installed the packages:pybuez openobex ,the message disspeared.
I hope this could be helpful.
Hi Ricardo,
Can you provide a more complete log of any messages that a printed before this error?
Of course,
This is the log
[root@localhost lightblue-0.3.2]# python setup.py install
running install
running build
running build_py
running build_ext
building '_lightblueutil' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/python2.5 -c src/linux/lightblue_util.c -o build/temp.linux-i686-2.5/src/linux/lightblue_util.o
src/linux/lightblue_util.c:30:33: error: bluetooth/bluetooth.h: No existe el fichero o el directorio
src/linux/lightblue_util.c:31:27: error: bluetooth/hci.h: No existe el fichero o el directorio
src/linux/lightblue_util.c:32:31: error: bluetooth/hci_lib.h: No existe el fichero o el directorio
src/linux/lightblue_util.c: In function ‘lb_hci_read_local_name’:
src/linux/lightblue_util.c:48: aviso: declaración implícita de la función ‘hci_read_local_name’
src/linux/lightblue_util.c: In function ‘lb_hci_read_bd_addr’:
src/linux/lightblue_util.c:65: error: ‘bdaddr_t’ no se declaró aquí (primer uso en esta función)
src/linux/lightblue_util.c:65: error: (Cada identificador no declarado solamente se reporta una vez
src/linux/lightblue_util.c:65: error: ara cada funcion en la que aparece.)
src/linux/lightblue_util.c:65: error: expected ‘;’ before ‘ba’
src/linux/lightblue_util.c:72: aviso: declaración implícita de la función ‘hci_read_bd_addr’
src/linux/lightblue_util.c:72: error: ‘ba’ no se declaró aquí (primer uso en esta función)
src/linux/lightblue_util.c:78: aviso: declaración implícita de la función ‘ba2str’
src/linux/lightblue_util.c: In function ‘lb_hci_read_class_of_dev’:
src/linux/lightblue_util.c:97: aviso: declaración implícita de la función ‘hci_read_class_of_dev’
error: command 'gcc' failed with exit status 1
I tried to search the openobex with yum, but it is not in the repos,
I'll search for it later, maybe I have to compile too.
I hope the log to be useful.
Thanks,
_Ricardo.
Hi Ricardo,
It looks like you're missing the bluetooth library headers. You need to install the bluez-devel package.