qttools compile error¶
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O1 -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.7 -I/usr/share/qt3/mkspecs/default -I/usr/share/qt3/include -I/usr/X11R6/include -o qttools_qttools.o qttools_qttools.cpp
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O1 -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.7 -I/usr/share/qt3/mkspecs/default -I/usr/share/qt3/include -I/usr/X11R6/include -o moc_qtxembed.o moc_qtxembed.cpp
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O1 -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.7 -I/usr/share/qt3/mkspecs/default -I/usr/share/qt3/include -I/usr/X11R6/include -o qtxembed.o qtxembed.cpp
qtxembed.cpp: In member function ‘void QtXEmbedContainer::acceptClient(WId)’:
qtxembed.cpp:1383:10: warning: variable ‘useXEmbedInfo’ set but not used [-Wunused-but-set-variable]
qtxembed.cpp:1384:18: warning: variable ‘clientflags’ set but not used [-Wunused-but-set-variable]
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O1 -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.7 -I/usr/share/qt3/mkspecs/default -I/usr/share/qt3/include -I/usr/X11R6/include -o qubimage.o qubimage.cpp
In file included from qubimage.h:1:0,
from qubimage.cpp:2:
/usr/share/qt3/include/qimage.h: In member function ‘bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/usr/share/qt3/include/qimage.h:61:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O1 -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.7 -I/usr/share/qt3/mkspecs/default -I/usr/share/qt3/include -I/usr/X11R6/include -o qttools_mmap.o qttools_mmap.cpp
In file included from qttools_mmap.h:1:0,
from qttools_mmap.cpp:9:
/usr/share/qt3/include/qimage.h: In member function ‘bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/usr/share/qt3/include/qimage.h:61:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O1 -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.7 -I/usr/share/qt3/mkspecs/default -I/usr/share/qt3/include -I/usr/X11R6/include -o sipqttoolscmodule.o sipqttoolscmodule.cpp
In file included from ./qubimage.h:1:0,
from qttools.sip:105:
/usr/share/qt3/include/qimage.h: In member function ‘bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/usr/share/qt3/include/qimage.h:61:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O1 -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.7 -I/usr/share/qt3/mkspecs/default -I/usr/share/qt3/include -I/usr/X11R6/include -o sipqttoolsBgrImageMmap.o sipqttoolsBgrImageMmap.cpp
In file included from qttools_mmap.h:1:0,
from qttools.sip:128:
/usr/share/qt3/include/qimage.h: In member function ‘bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/usr/share/qt3/include/qimage.h:61:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O1 -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.7 -I/usr/share/qt3/mkspecs/default -I/usr/share/qt3/include -I/usr/X11R6/include -o sipqttoolsQubImage.o sipqttoolsQubImage.cpp
In file included from ./qubimage.h:1:0,
from qttools.sip:105:
/usr/share/qt3/include/qimage.h: In member function ‘bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/usr/share/qt3/include/qimage.h:61:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O1 -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.7 -I/usr/share/qt3/mkspecs/default -I/usr/share/qt3/include -I/usr/X11R6/include -o sipqttoolsQtXEmbedContainer.o sipqttoolsQtXEmbedContainer.cpp
In file included from /usr/share/sip/qt/qt/qvariant.sip:201:0:
/usr/share/qt3/include/qvariant.h:111:2: error: expected identifier before ‘int’
/usr/share/qt3/include/qvariant.h:111:2: error: expected ‘}’ before ‘int’
/usr/share/qt3/include/qvariant.h:111:6: error: expected unqualified-id before ‘,’ token
/usr/share/qt3/include/qvariant.h:130:14: error: expected unqualified-id before ‘)’ token
/usr/share/qt3/include/qvariant.h:131:16: error: expected constructor, destructor, or type conversion before ‘;’ token
/usr/share/qt3/include/qvariant.h:132:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:132:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:134:26: error: expected ‘)’ before ‘&’ token
/usr/share/qt3/include/qvariant.h:136:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:136:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:137:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:137:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:138:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:138:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:140:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:140:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:142:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:142:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:143:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:143:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:144:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:144:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:145:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:145:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:146:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:146:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:147:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:147:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:148:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:148:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:149:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:149:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:150:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:150:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:151:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:151:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:152:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:152:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:153:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:153:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:154:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:154:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:155:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:155:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:156:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:156:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:157:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:157:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:158:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:158:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:159:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:159:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:160:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:160:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:161:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:161:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:163:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:163:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:165:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:165:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:167:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:167:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:168:15: error: expected unqualified-id before ‘const’
/usr/share/qt3/include/qvariant.h:168:15: error: expected ‘)’ before ‘const’
/usr/share/qt3/include/qvariant.h:170:15: error: expected unqualified-id before ‘int’
/usr/share/qt3/include/qvariant.h:170:15: error: expected ‘)’ before ‘int’
/usr/share/qt3/include/qvariant.h:171:20: error: ‘QVariant uint’ redeclared as different kind of symbol
/usr/share/qt3/include/qglobal.h:631:18: error: previous declaration of ‘typedef unsigned int uint’
/usr/share/qt3/include/qvariant.h:172:23: error: ‘QVariant Q_LLONG’ redeclared as different kind of symbol
/usr/share/qt3/include/qglobal.h:737:19: error: previous declaration of ‘typedef Q_INT64 Q_LLONG’
/usr/share/qt3/include/qvariant.h:173:24: error: ‘QVariant Q_ULLONG’ redeclared as different kind of symbol
/usr/share/qt3/include/qglobal.h:738:19: error: previous declaration of ‘typedef Q_UINT64 Q_ULLONG’
/usr/share/qt3/include/qvariant.h:175:15: error: expected unqualified-id before ‘bool’
/usr/share/qt3/include/qvariant.h:175:15: error: expected ‘)’ before ‘bool’
/usr/share/qt3/include/qvariant.h:176:15: error: expected unqualified-id before ‘double’
/usr/share/qt3/include/qvariant.h:176:15: error: expected ‘)’ before ‘double’
/usr/share/qt3/include/qvariant.h:179:43: error: ‘QVariant& operator=(const QVariant&)’ must be a nonstatic member function
/usr/share/qt3/include/qvariant.h:180:40: error: non-member function ‘bool operator==(const QVariant&)’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:180:40: error: ‘bool operator==(const QVariant&)’ must take exactly two arguments
/usr/share/qt3/include/qvariant.h:181:40: error: non-member function ‘bool operator!=(const QVariant&)’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:181:40: error: ‘bool operator!=(const QVariant&)’ must take exactly two arguments
/usr/share/qt3/include/qvariant.h:183:5: error: ‘Type’ does not name a type
/usr/share/qt3/include/qvariant.h:184:28: error: non-member function ‘const char* typeName()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:186:19: error: ‘Type’ was not declared in this scope
/usr/share/qt3/include/qvariant.h:186:26: error: expected ‘,’ or ‘;’ before ‘const’
/usr/share/qt3/include/qvariant.h:187:16: error: ‘Type’ was not declared in this scope
/usr/share/qt3/include/qvariant.h:189:20: error: non-member function ‘bool isValid()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:190:19: error: non-member function ‘bool isNull()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:194:30: error: non-member function ‘const QString toString()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:195:32: error: non-member function ‘const QCString toCString()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:197:38: error: non-member function ‘const QStringList toStringList()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:199:26: error: non-member function ‘const QFont toFont()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:200:30: error: non-member function ‘const QPixmap toPixmap()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:201:28: error: non-member function ‘const QImage toImage()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:202:28: error: non-member function ‘const QBrush toBrush()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:203:28: error: non-member function ‘const QPoint toPoint()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:204:26: error: non-member function ‘const QRect toRect()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:205:26: error: non-member function ‘const QSize toSize()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:206:28: error: non-member function ‘const QColor toColor()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:207:32: error: non-member function ‘const QPalette toPalette()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:208:38: error: non-member function ‘const QColorGroup toColorGroup()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:209:32: error: non-member function ‘const QIconSet toIconSet()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:210:38: error: non-member function ‘const QPointArray toPointArray()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:211:30: error: non-member function ‘const QBitmap toBitmap()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:212:30: error: non-member function ‘const QRegion toRegion()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:213:30: error: non-member function ‘const QCursor toCursor()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:214:26: error: non-member function ‘const QDate toDate()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:215:26: error: non-member function ‘const QTime toTime()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:216:34: error: non-member function ‘const QDateTime toDateTime()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:217:36: error: non-member function ‘const QByteArray toByteArray()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:218:34: error: non-member function ‘const QBitArray toBitArray()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:220:40: error: non-member function ‘const QKeySequence toKeySequence()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:222:24: error: non-member function ‘const QPen toPen()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:223:30: error: non-member function ‘int toInt(bool*)’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:224:32: error: non-member function ‘uint toUInt(bool*)’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:225:39: error: non-member function ‘Q_LLONG toLongLong(bool*)’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:226:41: error: non-member function ‘Q_ULLONG toULongLong(bool*)’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:227:19: error: non-member function ‘bool toBool()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:228:36: error: non-member function ‘double toDouble(bool*)’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:230:41: error: non-member function ‘const QValueList<QVariant> toList()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:231:42: error: non-member function ‘const QMap<QString, QVariant> toMap()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:233:5: error: ‘QSizePolicy’ does not name a type
/usr/share/qt3/include/qvariant.h:236:56: error: non-member function ‘QValueListConstIterator<QString> stringListBegin()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:237:54: error: non-member function ‘QValueListConstIterator<QString> stringListEnd()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:238:51: error: non-member function ‘QValueListConstIterator<QVariant> listBegin()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:239:49: error: non-member function ‘QValueListConstIterator<QVariant> listEnd()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:240:52: error: non-member function ‘QMapConstIterator<QString, QVariant> mapBegin()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:241:50: error: non-member function ‘QMapConstIterator<QString, QVariant> mapEnd()’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:242:67: error: non-member function ‘QMapConstIterator<QString, QVariant> mapFind(const QString&)’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:283:5: error: ‘QSizePolicy’ does not name a type
/usr/share/qt3/include/qvariant.h:287:31: error: non-member function ‘void save(QDataStream&)’ cannot have cv-qualifier
/usr/share/qt3/include/qvariant.h:289:36: error: ‘Type’ was not declared in this scope
/usr/share/qt3/include/qvariant.h:290:12: error: ‘Type’ does not name a type
/usr/share/qt3/include/qvariant.h:292:1: error: expected unqualified-id before ‘private’
/usr/share/qt3/include/qvariant.h:304:2: error: ‘Type’ does not name a type
/usr/share/qt3/include/qvariant.h:320:1: error: expected unqualified-id before ‘public’
/usr/share/qt3/include/qvariant.h:322:1: error: expected declaration before ‘}’ token
/usr/share/qt3/include/qvariant.h:289:24: warning: ‘typeToName’ defined but not used [-Wunused-variable]
make: *** [sipqttoolsQtXEmbedContainer.o] Error 1