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

Cannot build Qt: "error: redefinition of 'struct'"

    XMLWordPrintable

Details

    • d432123cec9ac927ec9162fa8b3d16684483f994

    Description

      Hi, configure part of Qt 4.7.0 Technology Preview goes ok, also make runs quite long time,
      but then crashes to this error message:

      g++ -c -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_DECLARATIVE_LIB -DQT_NO_URL_CAST_FROM_STRING -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtNetwork -I../../include/QtGui -I../../include/QtOpenGL -I../../include/QtXml -I../../include/QtXmlPatterns -I../../include/QtSql -I../../include/QtSvg -I../../include/QtScript -I../../include/QtWebKit -I../../include -I../../include/QtDeclarative -I.rcc/release-shared -I3rdparty -Iutil -Igraphicsitems -Iqml -Iqml/parser -Iqml/rewriter -Idebugger -I/usr/X11R6/include -I.moc/release-shared -o .obj/release-shared/qdeclarativepixmapcache.o util/qdeclarativepixmapcache.cpp
      In file included from /usr/include/linux/sched.h:65,
                       from util/qdeclarativepixmapcache.cpp:67:
      /usr/include/linux/time.h:9: error: redefinition of 'struct timespec'
      /usr/include/time.h:119: error: previous definition of 'struct timespec'
      /usr/include/linux/time.h:17: error: redefinition of 'struct timeval'
      /usr/include/bits/time.h:70: error: previous definition of 'struct timeval'
      /usr/include/linux/time.h:43: error: redefinition of 'struct itimerspec'
      /usr/include/time.h:160: error: previous definition of 'struct itimerspec'
      In file included from util/qdeclarativepixmapcache.cpp:67:
      /usr/include/linux/sched.h:91: error: redefinition of 'struct sched_param'
      /usr/include/bits/sched.h:63: error: previous definition of 'struct sched_param'
      make[1]: *** [.obj/release-shared/qdeclarativepixmapcache.o] Error 1
      make[1]: Leaving directory `/x/y/e/r/teeharju/qt-everywhere-opensource-src-4.7.0-tp/src/declarative'
      make: *** [sub-declarative-make_default-ordered] Error 2
      

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            teeharju Teemu S. Harju
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes