Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24048

webkit doesn't include <ctime>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P4: Low
    • None
    • 4.8.0
    • WebKit
    • None
    • Windows 7, Mingw 0.4-alpha-1

    Description

      I'm trying to compile Qt 4.8.0 on Windows 7 with MinGW 0.4-alpha-1 with the following keys:

      configure -release -opensource -static -no-exceptions -nomake demos -nomake examples -no-qt3support -no-style-plastique -no-style-cleanlooks -no-style-cde -no-style-motif -qt-style-windowsxp -qt-style-windowsvista -qt-libjpeg -qt-zlib -qt-libpng -qt-libtiff -no-stl -no-accessibility -webkit -confirm-license

      It fails to compile a webkit component with error complaining on undefined identifier "time_t" in WebCore/platform/network/ResourceResponceBase.h, line 92. The same is with page/Page.h, loader/icon/IconRecord.h.

      I've fixed that with patching ResourceResponceBase.h:

      Change

      #if OS(SOLARIS)
      #include <sys/time.h> // For time_t structure.
      #endif

      To

      #if OS(SOLARIS)
      #include <sys/time.h> // For time_t structure.
      #else
      #include <ctime>
      #endif

      JS code also gives a non-fatal warning on nullptr:

      ..\JavaScriptCore/wtf/NullPtr.h:48:1: warning: identifier 'nullptr' will become a keyword in C++0x [-Wc++0x-compat]

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            dmitry64 Dmitry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes