I can't compile umtsmon-0.10alpha using pBuilder on Ubuntu 10.10 maverick Meerkaat.
Build-Depends: debhelper (>= 7.0.50~), libqt3-mt-dev, libusb-dev, qt3-dev-tools
g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT -DQT_NO_ASCII_CAST -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -Isrc/model -Isrc/view -Isrc/base -Isrc/controller -I/usr/include/qt3 -I.ui/ -I. -I.moc/ -o .obj/SerialPort.o src/base/SerialPort.cpp
src/base/SerialPort.cpp: In member function 'virtual bool SerialPort::openDev(const QString&, int, long int)':
src/base/SerialPort.cpp:89: error: 'fstat' was not declared in this scope
src/base/SerialPort.cpp:96: error: 'S_ISCHR' was not declared in this scope
make[2]: *** [.obj/SerialPort.o] Error 1
make[2]: Leaving directory `/tmp/buildd/umtsmon-0.10alpha'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/umtsmon-0.10alpha'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
The fstat man page (http://linux.die.net/man/2/fstat) claim that additional include files are necessary. Apparently someone changed the interdependency of include files so these are no longer automatically included. Sigh.
It's not that hard to fix: just add the missing includes in the top of the src/base/SerialPort.cpp file...