[Buildroot] [PATCH v2] libserial: new package

Peter Korsgaard jacmet at uclibc.org
Tue Apr 23 10:25:49 UTC 2013


>>>>> "spdawson" == spdawson  <spdawson at gmail.com> writes:

 spdawson> From: Simon Dawson <spdawson at gmail.com>

 spdawson> Note that the Python binding is disabled; we can't build this
 spdawson> in Buildroot without the sipconfig Python module for the
 spdawson> host.

Thanks, looks good - But it doesn't compile :/

(default internal 4.7.3 arm toolchain):

SerialPort.cpp: In member function 'void SerialPort::SerialPortImpl::Open()':
SerialPort.cpp:643:24: error: 'getpid' was not declared in this scope
SerialPort.cpp: In member function 'void SerialPort::SerialPortImpl::Close()':
SerialPort.cpp:748:26: error: 'close' was not declared in this scope
SerialPort.cpp: In member function 'unsigned char SerialPort::SerialPortImpl::ReadByte(unsigned int)':
SerialPort.cpp:1246:37: error: 'usleep' was not declared in this scope
SerialPort.cpp: In member function 'void SerialPort::SerialPortImpl::Write(const unsigned char*, unsigned int)':
SerialPort.cpp:1427:50: error: 'write' was not declared in this scope
SerialPort.cpp: In member function 'virtual void SerialPort::SerialPortImpl::HandlePosixSignal(int)':

Looks like it's missing a #include <unistd.h>

Care to fix that with a patch (and send upstream) and resubmit?

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list