I read all the other Q&A about the stray error, but I couldn't find anything similar to my issue...
So: I need to add BLE support to pybluez on Raspberry Pi 3 Model B (running on Raspbian Jessie Lite kernel v.4.4) and, when it comes to build gattlib, I got a huge list of these errors (here's an extended copy-paste of console output: https://pastebin.com/KjRB5rB7):
/usr/include/boost/python.hpp:5:1: error: stray ‘\2’ in program
/usr/include/boost/python.hpp:5:1: error: stray ‘\264’ in program
/usr/include/boost/python.hpp:5:1: error: stray ‘\334’ in program
/usr/include/boost/python.hpp:5:1: error: stray ‘\354’ in program
/usr/include/boost/python.hpp:5:1: error: stray ‘\377’ in program
/usr/include/boost/python.hpp:5:1: error: stray ‘\3’ in program
I know it's a problem of character encoding, but it looks very strange to me that this happens on downloaded code.
Is there a way to fix this and proceed with installation?
I'm connected in SSH through a MacBook Pro running on Mac OS X v10.10.5 (Yosemite) and the charset of the hpp file is binary.