1 Reply Latest reply: Apr 11, 2014 5:22 PM by Steve.Clamage-Oracle RSS

    Qt.GUI 4.8.5 compilation problem (present in 12.4b, absent in 12.3)

    2653080

      CC -c -xarch=generic64 -library=stlport4 -O -xldscope=hidden -mt -I/opt/csw/include -I/opt/csw/include/freetype2 -KPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_USE_BUNDLED_LIBPNG -DPNG_NO_ASSEMBLER_CODE -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/solaris-cc-64-stlport -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/xorg -Iimage -I../3rdparty/libpng -I/usr/include/freetype2 -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/openwin/share/include -I.uic/release-shared -I/usr/sfw/include -o .obj/release-shared/qapplication.o kernel/qapplication.cpp

       

      This command fails to compile with errors

       

      "../../include/QtGui/../../src/gui/dialogs/qmessagebox.h", line 140: Error: Cannot use unsigned to initialize QFlags<Qt::WindowType>.
      "../../include/QtGui/../../src/gui/dialogs/qmessagebox.h", line 215: Error: Cannot use unsigned to initialize QFlags<Qt::WindowType>.
      "../../include/QtGui/../../src/gui/dialogs/qmessagebox.h", line 295: Error: Cannot use unsigned to initialize QFlags<Qt::WindowType>.

       

      Was this behavior introduced intentionally or this is a bug in 12.4b? What option should I supply to avoid this error, if possible?

       

      Thanks in advance.