FreeEMS Issues - EMStudio
View Issue Details
0000771EMStudioBuild Systemspublic2012-12-17 17:292012-12-17 22:04
sean94z 
sean94z 
highblockhave not tried
closedfixed 
x86LinuxUjunktoo 12.10
ASAP 
ASAP 
Bug
0000771: Error when building ‘read’ was not declared in this scope.
As reported by Ari

This one came first:

g++ -c -pipe -Wall -Werror -O2 -D_REENTRANT -Wall -W -fPIC -DQT_WEBKIT -DQT_NO_WARNING_OUTPUT -DQT_NO_DEBUG_OUTPUT -DSERIALIO_LIB -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -Isrc -Isrc/inc -Isrc/inc/public -I. -o AsyncRead.o src/AsyncRead.cpp
src/AsyncRead.cpp: In member function ‘virtual void IPDS::AsyncRead::run()’:
src/AsyncRead.cpp:68:33: error: ‘read’ was not declared in this scope
make: *** [AsyncRead.o] Error 1

Added unit.h into inc/AsyncRead.h and then it stopped here:

g++ -c -pipe -Wall -Werror -O2 -D_REENTRANT -Wall -W -fPIC -DQT_WEBKIT -DQT_NO_WARNING_OUTPUT -DQT_NO_DEBUG_OUTPUT -DSERIALIO_LIB -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -Isrc -Isrc/inc -Isrc/inc/public -I. -o AsyncWrite.o src/AsyncWrite.cpp
src/AsyncWrite.cpp: In member function ‘virtual void IPDS::AsyncWrite::run()’:
src/AsyncWrite.cpp:44:33: error: ‘write’ was not declared in this scope
make: *** [AsyncWrite.o] Error 1

Did same thing with inc/AsyncWrite.h and voila.

Hope this helps!
No tags attached.

Notes
(0002483)
sean94z   
2012-12-17 22:03   
<MrOnion> seank-efi: the serialio compiles ok now on my ubuntu
<seank-efi> sweet, thx for taking the time to follow up with it
<seank-efi> ill close the issue
(0002484)
sean94z   
2012-12-17 22:04   
commit 8111db7dc8a8cbb28e39dd0d1c02b098083f8a03
Author: Sean Keys <skeys@ipdatasys.com>
Date: Mon Dec 17 10:51:14 2012 -0700

    [0000771] It seems some gcc enviornments dont automatically include the unistd.h header.