[boxit-server] add compatibility for Manjaro 15.12
Created by: philmmanjaro
We coded boxit-server in mind of working just with debian. Therefor it seems not to compile under newer distribution releases like Manjaro 15.12. Currently we have followed errors:
==> build boxit-server
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -o main.o main.cpp
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -o boxitthread.o network/boxitthread.cpp
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -o boxitsocket.o network/boxitsocket.cpp
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -o boxitserver.o network/boxitserver.cpp
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -o boxitinstance.o boxitinstance.cpp
In file included from db/branch.h:35:0,
from db/database.h:34,
from boxitinstance.h:39,
from boxitinstance.cpp:21:
db/repo.h:97:5: error: 'repoFiles' does not name a type
repoFiles, repoFilesLink, QString state, lockedUsername, threadUsername, threadErrorString;
^
db/repo.h: In member function 'QString Repo::getLockedUsername()':
db/repo.h:64:42: error: 'lockedUsername' was not declared in this scope
QString getLockedUsername() { return lockedUsername; }
^
db/repo.h: In member function 'QString Repo::getState()':
db/repo.h:70:101: error: 'state' was not declared in this scope
QString getState() { QMutexLocker locker(&mutexUpdatingRepoAttributes); return state; }
^
In file included from ./db/branch.h:35:0,
from ./db/database.h:34,
from ./boxitinstance.h:39,
from network/boxitthread.h:27,
from network/boxitthread.cpp:21:
./db/repo.h:97:5: error: 'repoFiles' does not name a type
repoFiles, repoFilesLink, QString state, lockedUsername, threadUsername, threadErrorString;
^
./db/repo.h: In member function 'QString Repo::getLockedUsername()':
./db/repo.h:64:42: error: 'lockedUsername' was not declared in this scope
QString getLockedUsername() { return lockedUsername; }
^
./db/repo.h: In member function 'QString Repo::getState()':
./db/repo.h:70:101: error: 'state' was not declared in this scope
QString getState() { QMutexLocker locker(&mutexUpdatingRepoAttributes); return state; }
^
In file included from ./db/branch.h:35:0,
from ./db/database.h:34,
from ./boxitinstance.h:39,
from network/boxitthread.h:27,
from network/boxitserver.h:29,
from main.cpp:27:
./db/repo.h:97:5: error: 'repoFiles' does not name a type
repoFiles, repoFilesLink, QString state, lockedUsername, threadUsername, th
^
./db/repo.h: In member function 'QString Repo::getLockedUsername()':
./db/repo.h:64:42: error: 'lockedUsername' was not declared in this scope
QString getLockedUsername() { return lockedUsername; }
^
./db/repo.h: In member function 'QString Repo::getState()':
./db/repo.h:70:101: error: 'state' was not declared in this scope
{ QMutexLocker locker(&mutexUpdatingRepoAttributes); return state; }
^
Makefile:434: recipe for target 'boxitinstance.o' failed
make: *** [boxitinstance.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile:396: recipe for target 'boxitthread.o' failed
make: *** [boxitthread.o] Error 1
Makefile:379: recipe for target 'main.o' failed
make: *** [main.o] Error 1
In file included from ./db/branch.h:35:0,
from ./db/database.h:34,
from ./boxitinstance.h:39,
from network/boxitthread.h:27,
from network/boxitserver.h:29,
from network/boxitserver.cpp:21:
./db/repo.h:97:5: error: 'repoFiles' does not name a type
repoFiles, repoFilesLink, QString state, lockedUsername, threadUsername, threadErrorString;
^
./db/repo.h: In member function 'QString Repo::getLockedUsername()':
./db/repo.h:64:42: error: 'lockedUsername' was not declared in this scope
QString getLockedUsername() { return lockedUsername; }
^
./db/repo.h: In member function 'QString Repo::getState()':
./db/repo.h:70:101: error: 'state' was not declared in this scope
QString getState() { QMutexLocker locker(&mutexUpdatingRepoAttributes); return state; }
^
Makefile:418: recipe for target 'boxitserver.o' failed
make: *** [boxitserver.o] Error 1