Moligaloo/QSanguosha — Issue #76: 编译通不过。
Author: yangtsesu
Created: 2011-12-04 02:04:04+00:00
State: open

Arch x86_64
原先能的，最新的git。出现下列错误。
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -Wall -W -D_REENTRANT -DAUDIO_SUPPORT -DJOYSTICK_SUPPORT -DQT_NO_DEBUG -DQT_PHONON_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtSql -I/usr/include/phonon -I/usr/include -Iinclude/lua -Iinclude -Isrc/client -Isrc/core -Isrc/dialog -Isrc/package -Isrc/scenario -Isrc/server -Isrc/ui -Isrc/util -Iinclude/irrKlang -I/usr/include/phonon_compat -I. -I. -o thicket.o src/package/thicket.cpp
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -Wall -W -D_REENTRANT -DAUDIO_SUPPORT -DJOYSTICK_SUPPORT -DQT_NO_DEBUG -DQT_PHONON_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtSql -I/usr/include/phonon -I/usr/include -Iinclude/lua -Iinclude -Isrc/client -Isrc/core -Isrc/dialog -Isrc/package -Isrc/scenario -Isrc/server -Isrc/ui -Isrc/util -Iinclude/irrKlang -I/usr/include/phonon_compat -I. -I. -o contestdb.o src/server/contestdb.cpp
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -Wall -W -D_REENTRANT -DAUDIO_SUPPORT -DJOYSTICK_SUPPORT -DQT_NO_DEBUG -DQT_PHONON_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtSql -I/usr/include/phonon -I/usr/include -Iinclude/lua -Iinclude -Isrc/client -Isrc/core -Isrc/dialog -Isrc/package -Isrc/scenario -Isrc/server -Isrc/ui -Isrc/util -Iinclude/irrKlang -I/usr/include/phonon_compat -I. -I. -o gamerule.o src/server/gamerule.cpp
src/package/thicket.cpp:99:18: warning: unused parameter 'damage' [-Wunused-parameter]
src/package/thicket.cpp:165:18: warning: unused parameter 'event' [-Wunused-parameter]
src/package/thicket.cpp: In member function 'virtual bool Lieren::trigger(TriggerEvent, ServerPlayer*, QVariant&) const':
src/package/thicket.cpp:235:73: error: conversion from 'long int' to 'const QVariant' is ambiguous
src/package/thicket.cpp:235:73: note: candidates are:
/usr/include/QtCore/qvariant.h:433:12: note: QVariant::QVariant(void*)
/usr/include/QtCore/qvariant.h:227:5: note: QVariant::QVariant(Qt::GlobalColor)
/usr/include/QtCore/qvariant.h:227:5: note: no known conversion for argument 1 from 'long int' to 'Qt::GlobalColor'
/usr/include/QtCore/qvariant.h:194:5: note: QVariant::QVariant(const char*)
/usr/include/QtCore/qvariant.h:192:5: note: QVariant::QVariant(float)
/usr/include/QtCore/qvariant.h:191:5: note: QVariant::QVariant(double)
/usr/include/QtCore/qvariant.h:190:5: note: QVariant::QVariant(bool)
/usr/include/QtCore/qvariant.h:189:5: note: QVariant::QVariant(qulonglong)
/usr/include/QtCore/qvariant.h:188:5: note: QVariant::QVariant(qlonglong)
/usr/include/QtCore/qvariant.h:187:5: note: QVariant::QVariant(uint)
/usr/include/QtCore/qvariant.h:186:5: note: QVariant::QVariant(int)
/usr/include/QtCore/qvariant.h:177:5: note: QVariant::QVariant(QVariant::Type)
/usr/include/QtCore/qvariant.h:177:5: note: no known conversion for argument 1 from 'long int' to 'QVariant::Type'
/usr/include/QtCore/qmap.h:507:16: error: initializing argument 2 of 'const T QMap::value(const Key&, const T&) const [with Key = QString, T = QVariant]'
src/package/thicket.cpp:235:94: error: expected primary-expression before '*' token
src/package/thicket.cpp:235:95: error: expected primary-expression before '>' token
src/package/thicket.cpp:235:97: error: expected primary-expression before ')' token
src/package/thicket.cpp:259:40: error: conversion from 'long int' to 'const QVariant' is ambiguous
src/package/thicket.cpp:259:40: note: candidates are:
/usr/include/QtCore/qvariant.h:433:12: note: QVariant::QVariant(void*)
/usr/include/QtCore/qvariant.h:227:5: note: QVariant::QVariant(Qt::GlobalColor)
/usr/include/QtCore/qvariant.h:227:5: note: no known conversion for argument 1 from 'long int' to 'Qt::GlobalColor'
/usr/include/QtCore/qvariant.h:194:5: note: QVariant::QVariant(const char*)
/usr/include/QtCore/qvariant.h:192:5: note: QVariant::QVariant(float)
/usr/include/QtCore/qvariant.h:191:5: note: QVariant::QVariant(double)
/usr/include/QtCore/qvariant.h:190:5: note: QVariant::QVariant(bool)
/usr/include/QtCore/qvariant.h:189:5: note: QVariant::QVariant(qulonglong)
/usr/include/QtCore/qvariant.h:188:5: note: QVariant::QVariant(qlonglong)
/usr/include/QtCore/qvariant.h:187:5: note: QVariant::QVariant(uint)
/usr/include/QtCore/qvariant.h:186:5: note: QVariant::QVariant(int)
/usr/include/QtCore/qvariant.h:177:5: note: QVariant::QVariant(QVariant::Type)
/usr/include/QtCore/qvariant.h:177:5: note: no known conversion for argument 1 from 'long int' to 'QVariant::Type'
/usr/include/QtCore/qvariant.h:229:15: error: initializing argument 1 of 'QVariant& QVariant::operator=(const QVariant&)'
src/package/thicket.cpp: At global scope:
src/package/thicket.cpp:465:18: warning: unused parameter 'player' [-Wunused-parameter]
src/package/thicket.cpp:562:6: warning: unused parameter 'Self' [-Wunused-parameter]
src/package/thicket.cpp:692:18: warning: unused parameter 'from' [-Wunused-parameter]
src/package/thicket.cpp:692:18: warning: unused parameter 'to' [-Wunused-parameter]
src/package/thicket.cpp:706:18: warning: unused parameter 'player' [-Wunused-parameter]
make: *** [thicket.o] Error 1
make: *** Waiting for unfinished jobs....
src/server/gamerule.cpp: In member function 'virtual bool HulaoPassMode::trigger(TriggerEvent, ServerPlayer*, QVariant&) const':
src/server/gamerule.cpp:701:6: warning: argument 'player' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]