Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
4.7.0
-
None
-
OpenSolaris b134
Sun Studio 12u1
-
5d9fb4b86ffd604e65ade61a252037dca224af53
Description
the qobject autotest fails to build with the below error.
Attached patch fixed it for me
this is in current git, but was the case way back in 4.6.2 as well
cd qobject/ && /export/home/test/tmp/qt/bin/qmake /export/home/test/tmp/qt/tests/auto/qobject/qobject.pro -o Makefile.corelib
cd qobject/ && /usr/bin/gmake -f Makefile.corelib
gmake[3]: Entering directory `/export/home/test/tmp/qt/tests/auto/qobject'
/export/home/test/tmp/qt/bin/qmake /export/home/test/tmp/qt/tests/auto/qobject/tst_qobject.pro -o Makefile.corelib.tst_qobject
/usr/bin/gmake -f Makefile.corelib.tst_qobject
gmake[4]: Entering directory `/export/home/test/tmp/qt/tests/auto/qobject'
/export/home/test/tmp/qt/bin/moc -DQT_HAS_QT3SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/usr/local/Trolltech/Qt-4.7.0/mkspecs/solaris-cc -I. -I../../../include/QtCore -I../../../include/QtNetwork -I../../../include/QtGui -I../../../include -I../../../include/QtTest -I.moc/release-shared -I/usr/sfw/include tst_qobject.cpp -o .moc/release-shared/tst_qobject.moc
/usr/bin/CC -c -features=extensions -library=no%Cstd -library=Crun -lstdcxx4 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/stdcxx4/ -I/usr/include/stdcxx4/ansi -I/opt/kde4/include -O2 -mt -DQT_HAS_QT3SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/usr/local/Trolltech/Qt-4.7.0/mkspecs/solaris-cc -I. -I../../../include/QtCore -I../../../include/QtNetwork -I../../../include/QtGui -I../../../include -I../../../include/QtTest -I.moc/release-shared -I/usr/sfw/include -o .obj/release-shared/tst_qobject.o tst_qobject.cpp
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Warning: Initializing const QObject& to a NULL value.
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: While instantiating "QObject::qt_check_for_QOBJECT_macro<QObject>(const QObject&) const".
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: Instantiated from qobject_cast<QObject*>(QObject*).
"tst_qobject.cpp", line 530: Where: Instantiated from non-template code.
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Warning: Initializing const SenderObject& to a NULL value.
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: While instantiating "SenderObject::qt_check_for_QOBJECT_macro<SenderObject>(const SenderObject&) const".
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: Instantiated from qobject_cast<SenderObject*>(QObject*).
"tst_qobject.cpp", line 533: Where: Instantiated from non-template code.
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Warning: Initializing const QObject& to a NULL value.
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: While instantiating "QObject::qt_check_for_QOBJECT_macro<QObject>(const QObject&) const".
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: Instantiated from qobject_cast<QObject*>(QObject*).
"tst_qobject.cpp", line 534: Where: Instantiated from non-template code.
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Warning: Initializing const ReceiverObject& to a NULL value.
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: While instantiating "ReceiverObject::qt_check_for_QOBJECT_macro<ReceiverObject>(const ReceiverObject&) const".
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: Instantiated from qobject_cast<ReceiverObject*>(QObject*).
"tst_qobject.cpp", line 535: Where: Instantiated from non-template code.
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Warning: Initializing const FooObject& to a NULL value.
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: While instantiating "FooObject::qt_check_for_QOBJECT_macro<FooObject>(const FooObject&) const".
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: Instantiated from qobject_cast<FooObject*>(QObject*).
"tst_qobject.cpp", line 3076: Where: Instantiated from non-template code.
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 466: Warning: Initializing const FooObject& to a NULL value.
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 466: Where: While instantiating "FooObject::qt_check_for_QOBJECT_macro<FooObject>(const FooObject&) const".
"../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 466: Where: Instantiated from qobject_cast<const FooObject*>(const QObject*).
"tst_qobject.cpp", line 3077: Where: Instantiated from non-template code.
"tst_qobject.cpp", line 3246: Error: Could not find a match for QTest::qCompare<QTest::T>(QObject*, OverloadObject*, const char[12], const char[6], const char[16], int) needed in tst_QObject::overloads().
"tst_qobject.cpp", line 3249: Error: Could not find a match for QTest::qCompare<QTest::T>(QObject*, QApplication*, const char[12], const char[5], const char[16], int) needed in tst_QObject::overloads().
"tst_qobject.cpp", line 3252: Error: Could not find a match for QTest::qCompare<QTest::T>(QObject*, OverloadObject*, const char[12], const char[6], const char[16], int) needed in tst_QObject::overloads().
"tst_qobject.cpp", line 3255: Error: Could not find a match for QTest::qCompare<QTest::T>(QObject*, QApplication*, const char[12], const char[5], const char[16], int) needed in tst_QObject::overloads().
4 Error(s) and 6 Warning(s) detected.
gmake[4]: *** [.obj/release-shared/tst_qobject.o] Error 4
gmake[4]: Leaving directory `/export/home/test/tmp/qt/tests/auto/qobject'
gmake[3]: *** [sub-tst_qobject-pro-make_default] Error 2
gmake[3]: Leaving directory `/export/home/test/tmp/qt/tests/auto/qobject'
gmake[2]: *** [sub-qobject-make_default] Error 2
gmake[2]: Leaving directory `/export/home/test/tmp/qt/tests/auto'
gmake[1]: *** [sub-corelib-pro-make_default] Error 2
gmake[1]: Leaving directory `/export/home/test/tmp/qt/tests/auto'
gmake: *** [sub-auto-make_default] Error 2