google-code-export / photivo

Automatically exported from code.google.com/p/photivo
GNU General Public License v3.0
3 stars 0 forks source link

compilation error with gcc 4.7.2 #99

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
GCC 4.7.0 no longer automatically includes unistd.h. This causes problems when 
compiling "qtsingleapplication/src/qtlocalpeer.cpp" Adding #include <unistd.h> 
fixes the problem.

qtsingleapplication/src/qtlocalpeer.cpp: In constructor 
‘QtLocalPeer::QtLocalPeer(QObject*, const QString&)’:
qtsingleapplication/src/qtlocalpeer.cpp:96:54: error: ‘::getuid’ has not 
been declared
qtsingleapplication/src/qtlocalpeer.cpp:96:54: note: suggested alternative:
In file included from qtsingleapplication/src/qtlockedfile_unix.cpp:42:0,
                 from qtsingleapplication/src/qtlocalpeer.cpp:60:
/usr/include/unistd.h:697:16: note:   ‘QtLP_Private::getuid’
make[2]: *** [stuff/qtlocalpeer.o] Error 1
make[2]: Leaving directory `/home/trashman/lightpack/src/lightpack/Software/src'
make[1]: *** [release-all] Error 2
make[1]: Leaving directory `/home/trashman/lightpack/src/lightpack/Software/src'
make: *** [sub-src-make_default] Error 2

Original issue reported on code.google.com by Krasnov.Arseniy on 3 Nov 2012 at 10:54