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

mkspecs/common/posix: fix !largefile builds on uClibc

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 4.8.1
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:
      linux/uClibc

      Description

      uClibc doesn't even define O_LARGEFILE when not configured with large file support, so ensure this define is only used when Qt is built with -largefile, otherwise the build fails with:

          io/qtemporaryfile.cpp: In function 'bool createFileFromTemplate(
              NativeFileHandle&, QFileSystemEntry::NativePath&, size_t, size_t,
              QSystemError&)':
          io/qtemporaryfile.cpp:197:57: error: 'O_LARGEFILE' was not declared in this scope
      

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            jacmet Peter Korsgaard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes