Hi, I'm trying to install the python lightblue package on debian etch. I can't find a deb package for it, so am trying to compile my own.
I downloaded the lightblue-0.3.3 source and installed gcc, python-dev etc and I get the following errors which look chinese to me. Can anybody please point me in the right direction to decipher / resolve these errors? With thanks, Joe /usr/include/python2.4/fileobject.h:12: error: expected specifier-qualifier-list before âFILEâ /usr/include/python2.4/fileobject.h:38: error: expected â)â before â*â token /usr/include/python2.4/fileobject.h:40: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token /usr/include/python2.4/fileobject.h:57: error: expected declaration specifiers or â...â before âFILEâ /usr/include/python2.4/fileobject.h:58: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âPy_UniversalNewlineFreadâ In file included from /usr/include/python2.4/Python.h:112, from src/linux/lightblue_util.c:28: /usr/include/python2.4/pyerrors.h:156: warning: type defaults to âintâ in declaration of âPy_UNICODEâ /usr/include/python2.4/pyerrors.h:156: error: expected â;â, â,â or â)â before â*â token /usr/include/python2.4/pyerrors.h:160: warning: type defaults to âintâ in declaration of âPy_UNICODEâ /usr/include/python2.4/pyerrors.h:160: error: expected â;â, â,â or â)â before â*â token /usr/include/python2.4/pyerrors.h:226: error: expected declaration specifiers or â...â before âsize_tâ /usr/include/python2.4/pyerrors.h:227: error: format string argument not a string type /usr/include/python2.4/pyerrors.h:228: error: expected declaration specifiers or â...â before âsize_tâ In file included from /usr/include/python2.4/Python.h:117, from src/linux/lightblue_util.c:28: /usr/include/python2.4/pythonrun.h:32: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:33: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:35: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:36: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:40: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:41: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:42: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:43: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:44: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:45: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:46: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:49: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:55: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:59: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:60: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:64: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:66: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:82: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:123: error: expected â)â before â*â token /usr/include/python2.4/pythonrun.h:125: error: expected â)â before â*â token In file included from /usr/include/python2.4/Python.h:119, from src/linux/lightblue_util.c:28: /usr/include/python2.4/sysmodule.h:12: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token In file included from /usr/include/python2.4/Python.h:121, from src/linux/lightblue_util.c:28: /usr/include/python2.4/import.h:25: error: expected declaration specifiers or â...â before âsize_tâ /usr/include/python2.4/import.h:25: error: expected declaration specifiers or â...â before âFILEâ In file included from src/linux/lightblue_util.c:28: /usr/include/python2.4/Python.h:131: error: expected declaration specifiers or â...â before âsize_tâ src/linux/lightblue_util.c:30:33: error: bluetooth/bluetooth.h: No such file or directory src/linux/lightblue_util.c:31:27: error: bluetooth/hci.h: No such file or directory src/linux/lightblue_util.c:32:31: error: bluetooth/hci_lib.h: No such file or directory src/linux/lightblue_util.c: In function âlb_hci_read_local_nameâ: src/linux/lightblue_util.c:45: error: âNULLâ undeclared (first use in this function) src/linux/lightblue_util.c:45: error: (Each undeclared identifier is reported only once src/linux/lightblue_util.c:45: error: for each function it appears in.) src/linux/lightblue_util.c:48: warning: implicit declaration of function â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â undeclared (first use in this function) src/linux/lightblue_util.c:65: error: expected â;â before âbaâ src/linux/lightblue_util.c:69: error: âNULLâ undeclared (first use in this function) src/linux/lightblue_util.c:72: warning: implicit declaration of function âhci_read_bd_addrâ src/linux/lightblue_util.c:72: error: âbaâ undeclared (first use in this function) src/linux/lightblue_util.c:78: warning: implicit declaration of function âba2strâ src/linux/lightblue_util.c: In function âlb_hci_read_class_of_devâ: src/linux/lightblue_util.c:91: error: âuint8_tâ undeclared (first use in this function) src/linux/lightblue_util.c:91: error: expected â;â before âcodâ src/linux/lightblue_util.c:94: error: âNULLâ undeclared (first use in this function) src/linux/lightblue_util.c:97: warning: implicit declaration of function âhci_read_class_of_devâ src/linux/lightblue_util.c:97: error: âcodâ undeclared (first use in this function) src/linux/lightblue_util.c: At top level: src/linux/lightblue_util.c:111: error: âNULLâ undeclared here (not in a function) error: command 'gcc' failed with exit status 1 ----- --- Joe http://www.neosource.com.au www.neosource.com.au -- View this message in context: http://www.nabble.com/errors-trying-to-compile-lightblue-0.3.3-on-debian-etch-tp21716470p21716470.html Sent from the debian-python mailing list archive at Nabble.com. -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org