Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000771EMStudioBuild Systemspublic2012-12-17 17:292012-12-17 22:04
Assigned Tosean94z 
PriorityhighSeverityblockReproducibilityhave not tried
Platformx86OSLinuxOS VersionUjunktoo 12.10
Product VersionASAP 
Target VersionASAPFixed in Version 
Summary0000771: Error when building ‘read’ was not declared in this scope.
DescriptionAs 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!
TagsNo tags attached.
Issue TypeBug
Attached Files

- Relationships

-  Notes
User avatar (0002483)
sean94z (reporter)
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
User avatar (0002484)
sean94z (reporter)
2012-12-17 22:04

commit 8111db7dc8a8cbb28e39dd0d1c02b098083f8a03
Author: Sean Keys <>
Date: Mon Dec 17 10:51:14 2012 -0700

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

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker