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

sys/utsname.h in not included in qfileselector.cpp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.1
    • 5.2.0
    • Core: I/O
    • None
    • Solaris 11.1 amd64
      gcc-4.8.2 (amd64) local build
    • 56ddf858f396038d8df0e25bdc3726e8d6886387

    Description

      Compiling under solaris OS failed because of function 'uname' from sys/utsname.h is used but header file is not included.

      /opt/gcc-4.8.2/bin/g++ -c -m64 -D_XOPEN_SOURCE=500 -D_EXTENSIONS_ -D_XPG6 -D_REENTRANT -D_PTHREADS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_XKB -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_USE_ICU -DPCRE_HAVE_CONFIG_H -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I../../mkspecs/solaris-g++-64 -I. -I../../include -I../../include/QtCore -I../../include/QtCore/5.2.0 -I../../include/QtCore/5.2.0/QtCore -Iglobal -I../3rdparty/pcre -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I.moc -I/usr/sfw/include -o .obj/qfileselector.o io/qfileselector.cpp
      <command-line>:0:0: warning: "_XOPEN_SOURCE" redefined [enabled by default]
      io/qfileselector.cpp:1:0: note: this is the location of the previous definition
      /***************************************************************************
      ^
      io/qfileselector.cpp: In static member function ‘static QStringList QFileSelectorPrivate::platformSelectors()’:
      io/qfileselector.cpp:371:20: error: aggregate ‘QFileSelectorPrivate::platformSelectors()::utsname u’ has incomplete type and cannot be defined
      struct utsname u;
      ^
      io/qfileselector.cpp:372:17: error: ‘uname’ was not declared in this scope
      if (uname(&u) != -1)
      ^

      Attachments

        Activity

          People

            ablasche Alex Blasche
            fidoman Sergey Dorofeev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: