| Summary: | gcc-4.6 requires #include <cstddef> for ptrdiff_t | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Rex Dieter <rdieter> |
| Component: | opencv | Assignee: | Rakesh Pandit <rpandit> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | karlthered, kklic, kwizart, nomis80, rpandit |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-04 14:47:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Per $SUBJECT, this usually means there's a missing #include <cstddef> This is fixed already in git for rawhide, but then there is another problem with V4L1 that was removed. So It's still in FTBFS state. Do you browse cvs commit ? oh, fun. 2 levels of ftbfs. :) Just fixed - bugs are opened upstream. https://code.ros.org/trac/opencv/ticket/861 https://code.ros.org/trac/opencv/ticket/862 |
Newer gcc-4.6 in rawhide seems to dislike some of opencv's headers: [ 88%] In file included from /usr/include/opencv/cv.h:64:0, from /builddir/build/BUILD/kipi-plugins-1.8.0/removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.h:36, from /builddir/build/BUILD/kipi-plugins-1.8.0/removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.cpp:24: /usr/include/opencv2/core/core.hpp:354:13: error: 'ptrdiff_t' does not name a type Building CXX object advancedslideshow/CMakeFiles/kipiplugin_advancedslideshow.dir/maindialog.o cd /builddir/build/BUILD/kipi-plugins-1.8.0/i686-redhat-linux-gnu/advancedslideshow && /usr/bin/c++ -DMAKE_KIPIPLUGIN_ADVANCEDSLIDESHOW_LIB -D_BSD_SOURCE -DKDE_DEFAULT_DEBUG_AREA=51000 -DAREA_CODE_GENERAL=51000 -DAREA_CODE_LOADING=51001 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Werror=return-type -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC -I/builddir/build/BUILD/kipi-plugins-1.8.0/i686-redhat-linux-gnu/advancedslideshow -I/builddir/build/BUILD/kipi-plugins-1.8.0/advancedslideshow -I/builddir/build/BUILD/kipi-plugins-1.8.0/common/libkipiplugins -I/builddir/build/BUILD/kipi-plugins-1.8.0/i686-redhat-linux-gnu/common/libkipiplugins -I/builddir/build/BUILD/kipi-plugins-1.8.0/common/libkipiplugins/dialogs -I/builddir/build/BUILD/kipi-plugins-1.8.0/i686-redhat-linux-gnu/common/libkipiplugins/dialogs -I/builddir/build/BUILD/kipi-plugins-1.8.0/common/libkipiplugins/widgets -I/builddir/build/BUILD/kipi-plugins-1.8.0/i686-redhat-linux-gnu/common/libkipiplugins/widgets -I/builddir/build/BUILD/kipi-plugins-1.8.0/common/libkipiplugins/tools -I/builddir/build/BUILD/kipi-plugins-1.8.0/i686-redhat-linux-gnu/common/libkipiplugins/tools -I/usr/include/opencv -I/usr/include/kde4 -I/usr/include/kde4/KDE -I/usr/include/KDE -I/usr/include/phonon -I/usr/include/QtXmlPatterns -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include/QtUiTools -I/usr/include/QtTest -I/usr/include/QtSvg -I/usr/include/QtSql -I/usr/include/QtScriptTools -I/usr/include/QtScript -I/usr/include/QtOpenGL -I/usr/include/QtNetwork -I/usr/include/QtMultimedia -I/usr/include/QtHelp -I/usr/include/QtDesigner -I/usr/include/QtDeclarative -I/usr/include/QtDBus -I/usr/include/Qt3Support -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/Qt -I/usr/lib/qt4/mkspecs/default -o CMakeFiles/kipiplugin_advancedslideshow.dir/maindialog.o -c /builddir/build/BUILD/kipi-plugins-1.8.0/advancedslideshow/maindialog.cpp In file included from /usr/include/opencv/cv.h:64:0, from /builddir/build/BUILD/kipi-plugins-1.8.0/removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.h:36, from /builddir/build/BUILD/kipi-plugins-1.8.0/removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.cpp:24: /usr/include/opencv2/core/core.hpp:2600:13: error: 'ptrdiff_t' does not name a type /usr/include/opencv2/core/core.hpp:2623:24: error: declaration of 'operator[]' as non-function /usr/include/opencv2/core/core.hpp:2623:22: error: expected ';' at end of member declaration /usr/include/opencv2/core/core.hpp:2623:34: error: expected ')' before 'i' /usr/include/opencv2/core/core.hpp:2626:36: error: declaration of 'operator+=' as non-function /usr/include/opencv2/core/core.hpp:2626:32: error: expected ';' at end of member declaration /usr/include/opencv2/core/core.hpp:2626:46: error: expected ')' before 'ofs' /usr/include/opencv2/core/core.hpp:2628:36: error: declaration of 'operator-=' as non-function /usr/include/opencv2/core/core.hpp:2628:32: error: expected ';' at end of member declaration /usr/include/opencv2/core/core.hpp:2628:46: error: expected ')' before 'ofs' /usr/include/opencv2/core/core.hpp:2641:5: error: 'ptrdiff_t' does not name a type /usr/include/opencv2/core/core.hpp:2642:15: error: 'ptrdiff_t' has not been declared /usr/include/opencv2/core/core.hpp:2661:13: error: 'ptrdiff_t' does not name a type /usr/include/opencv2/core/core.hpp:2684:21: error: 'ptrdiff_t' has not been declared /usr/include/opencv2/core/core.hpp:2687:37: error: declaration of 'operator+=' as non-function /usr/include/opencv2/core/core.hpp:2687:33: error: expected ';' at end of member declaration /usr/include/opencv2/core/core.hpp:2687:47: error: expected ')' before 'ofs' /usr/include/opencv2/core/core.hpp:2689:37: error: declaration of 'operator-=' as non-function /usr/include/opencv2/core/core.hpp:2689:33: error: expected ';' at end of member declaration /usr/include/opencv2/core/core.hpp:2689:47: error: expected ')' before 'ofs' /usr/include/opencv2/core/core.hpp:2733:22: error: declaration of 'operator[]' as non-function /usr/include/opencv2/core/core.hpp:2733:20: error: expected ';' at end of member declaration /usr/include/opencv2/core/core.hpp:2733:32: error: expected ')' before 'i' /usr/include/opencv2/core/core.hpp:2736:32: error: declaration of 'operator+=' as non-function /usr/include/opencv2/core/core.hpp:2736:28: error: expected ';' at end of member declaration /usr/include/opencv2/core/core.hpp:2736:42: error: expected ')' before 'ofs' /usr/include/opencv2/core/core.hpp:2738:32: error: declaration of 'operator-=' as non-function /usr/include/opencv2/core/core.hpp:2738:28: error: expected ';' at end of member declaration /usr/include/opencv2/core/core.hpp:2738:42: error: expected ')' before 'ofs' In file included from /usr/include/opencv2/core/core.hpp:4047:0, from /usr/include/opencv/cv.h:64, from /builddir/build/BUILD/kipi-plugins-1.8.0/removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.h:36, from /builddir/build/BUILD/kipi-plugins-1.8.0/removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.cpp:24: /usr/include/opencv2/core/operations.hpp:2822:15: error: 'ptrdiff_t' does not name a type /usr/include/opencv2/core/operations.hpp:3383:31: error: 'ptrdiff_t' does not name a type /usr/include/opencv2/core/operations.hpp:3392:1: error: expected unqualified-id before 'template' In file included from /usr/include/opencv2/core/core.hpp:4048:0, from /usr/include/opencv/cv.h:64, from /builddir/build/BUILD/kipi-plugins-1.8.0/removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.h:36, from /builddir/build/BUILD/kipi-plugins-1.8.0/removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.cpp:24: /usr/include/opencv2/core/mat.hpp:1629:57: error: declaration of 'operator+=' as non-function /usr/include/opencv2/core/mat.hpp:1629:57: error: 'ptrdiff_t' was not declared in this scope /usr/include/opencv2/core/mat.hpp:1629:57: note: suggested alternatives: /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../../include/c++/4.6.0/i686-redhat-linux/bits/c++config.h:89:28: note: 'std::ptrdiff_t' /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../../include/c++/4.6.0/i686-redhat-linux/bits/c++config.h:89:28: note: 'std::ptrdiff_t' /builddir/build/BUILD/kipi-plugins-1.8.0/removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.cpp:390:1: error: expected '}' at end of input