GNOME Bugzilla – Bug 733692
Compiling error (OpenEXR)
Last modified: 2014-07-24 18:21:42 UTC
Commands used to compile gst-plugins-bad : LDFLAGS='-L/opt/vc/lib' CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux' ./autogen.sh make -> Error here. ### DETAILS make[3]: entrant dans le répertoire « /home/pi/GST/gst-plugins-bad/ext/openexr » CXX libgstopenexr_la-gstopenexrdec.lo In file included from /usr/include/OpenEXR/ImfHeader.h:51:0, from /usr/include/OpenEXR/ImfRgbaFile.h:50, from gstopenexrdec.cpp:30: /usr/include/OpenEXR/ImathVec.h:488:24: error: redundant redeclaration of 'T Imath::Vec2<T>::length() const [with T = short int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:216:9: error: previous declaration of 'T Imath::Vec2<T>::length() const [with T = short int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:491:25: error: redundant redeclaration of 'const Imath::Vec2<T>& Imath::Vec2<T>::normalize() [with T = short int, Imath::Vec2<T> = Imath::Vec2<short int>]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:219:18: error: previous declaration of 'const Imath::Vec2<T>& Imath::Vec2<T>::normalize() [with T = short int, Imath::Vec2<T> = Imath::Vec2<short int>]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:494:49: error: redundant redeclaration of 'const Imath::Vec2<T>& Imath::Vec2<T>::normalizeExc() [with T = short int, Imath::Vec2<T> = Imath::Vec2<short int>]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:220:18: error: previous declaration of 'const Imath::Vec2<T>& Imath::Vec2<T>::normalizeExc() [with T = short int, Imath::Vec2<T> = Imath::Vec2<short int>]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:497:32: error: redundant redeclaration of 'const Imath::Vec2<T>& Imath::Vec2<T>::normalizeNonNull() [with T = short int, Imath::Vec2<T> = Imath::Vec2<short int>]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:221:18: error: previous declaration of 'const Imath::Vec2<T>& Imath::Vec2<T>::normalizeNonNull() [with T = short int, Imath::Vec2<T> = Imath::Vec2<short int>]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:500:28: error: redundant redeclaration of 'Imath::Vec2<T> Imath::Vec2<T>::normalized() const [with T = short int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:223:14: error: previous declaration of 'Imath::Vec2<T> Imath::Vec2<T>::normalized() const [with T = short int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:503:56: error: redundant redeclaration of 'Imath::Vec2<T> Imath::Vec2<T>::normalizedExc() const [with T = short int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:224:14: error: previous declaration of 'Imath::Vec2<T> Imath::Vec2<T>::normalizedExc() const [with T = short int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:506:35: error: redundant redeclaration of 'Imath::Vec2<T> Imath::Vec2<T>::normalizedNonNull() const [with T = short int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:225:14: error: previous declaration of 'Imath::Vec2<T> Imath::Vec2<T>::normalizedNonNull() const [with T = short int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:512:22: error: redundant redeclaration of 'T Imath::Vec2<T>::length() const [with T = int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:216:9: error: previous declaration of 'T Imath::Vec2<T>::length() const [with T = int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:515:23: error: redundant redeclaration of 'const Imath::Vec2<T>& Imath::Vec2<T>::normalize() [with T = int, Imath::Vec2<T> = Imath::Vec2<int>]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:219:18: error: previous declaration of 'const Imath::Vec2<T>& Imath::Vec2<T>::normalize() [with T = int, Imath::Vec2<T> = Imath::Vec2<int>]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:518:47: error: redundant redeclaration of 'const Imath::Vec2<T>& Imath::Vec2<T>::normalizeExc() [with T = int, Imath::Vec2<T> = Imath::Vec2<int>]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:220:18: error: previous declaration of 'const Imath::Vec2<T>& Imath::Vec2<T>::normalizeExc() [with T = int, Imath::Vec2<T> = Imath::Vec2<int>]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:521:30: error: redundant redeclaration of 'const Imath::Vec2<T>& Imath::Vec2<T>::normalizeNonNull() [with T = int, Imath::Vec2<T> = Imath::Vec2<int>]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:221:18: error: previous declaration of 'const Imath::Vec2<T>& Imath::Vec2<T>::normalizeNonNull() [with T = int, Imath::Vec2<T> = Imath::Vec2<int>]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:524:26: error: redundant redeclaration of 'Imath::Vec2<T> Imath::Vec2<T>::normalized() const [with T = int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:223:14: error: previous declaration of 'Imath::Vec2<T> Imath::Vec2<T>::normalized() const [with T = int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:527:54: error: redundant redeclaration of 'Imath::Vec2<T> Imath::Vec2<T>::normalizedExc() const [with T = int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:224:14: error: previous declaration of 'Imath::Vec2<T> Imath::Vec2<T>::normalizedExc() const [with T = int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:530:33: error: redundant redeclaration of 'Imath::Vec2<T> Imath::Vec2<T>::normalizedNonNull() const [with T = int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:225:14: error: previous declaration of 'Imath::Vec2<T> Imath::Vec2<T>::normalizedNonNull() const [with T = int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:536:24: error: redundant redeclaration of 'T Imath::Vec3<T>::length() const [with T = short int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:409:9: error: previous declaration of 'T Imath::Vec3<T>::length() const [with T = short int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:539:25: error: redundant redeclaration of 'const Imath::Vec3<T>& Imath::Vec3<T>::normalize() [with T = short int, Imath::Vec3<T> = Imath::Vec3<short int>]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:412:18: error: previous declaration of 'const Imath::Vec3<T>& Imath::Vec3<T>::normalize() [with T = short int, Imath::Vec3<T> = Imath::Vec3<short int>]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:542:49: error: redundant redeclaration of 'const Imath::Vec3<T>& Imath::Vec3<T>::normalizeExc() [with T = short int, Imath::Vec3<T> = Imath::Vec3<short int>]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:413:18: error: previous declaration of 'const Imath::Vec3<T>& Imath::Vec3<T>::normalizeExc() [with T = short int, Imath::Vec3<T> = Imath::Vec3<short int>]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:545:32: error: redundant redeclaration of 'const Imath::Vec3<T>& Imath::Vec3<T>::normalizeNonNull() [with T = short int, Imath::Vec3<T> = Imath::Vec3<short int>]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:414:18: error: previous declaration of 'const Imath::Vec3<T>& Imath::Vec3<T>::normalizeNonNull() [with T = short int, Imath::Vec3<T> = Imath::Vec3<short int>]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:548:28: error: redundant redeclaration of 'Imath::Vec3<T> Imath::Vec3<T>::normalized() const [with T = short int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:416:14: error: previous declaration of 'Imath::Vec3<T> Imath::Vec3<T>::normalized() const [with T = short int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:551:56: error: redundant redeclaration of 'Imath::Vec3<T> Imath::Vec3<T>::normalizedExc() const [with T = short int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:417:14: error: previous declaration of 'Imath::Vec3<T> Imath::Vec3<T>::normalizedExc() const [with T = short int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:554:35: error: redundant redeclaration of 'Imath::Vec3<T> Imath::Vec3<T>::normalizedNonNull() const [with T = short int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:418:14: error: previous declaration of 'Imath::Vec3<T> Imath::Vec3<T>::normalizedNonNull() const [with T = short int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:560:22: error: redundant redeclaration of 'T Imath::Vec3<T>::length() const [with T = int]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:409:9: error: previous declaration of 'T Imath::Vec3<T>::length() const [with T = int]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:563:23: error: redundant redeclaration of 'const Imath::Vec3<T>& Imath::Vec3<T>::normalize() [with T = int, Imath::Vec3<T> = Imath::Vec3<int>]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:412:18: error: previous declaration of 'const Imath::Vec3<T>& Imath::Vec3<T>::normalize() [with T = int, Imath::Vec3<T> = Imath::Vec3<int>]' [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:566:47: error: redundant redeclaration of 'const Imath::Vec3<T>& Imath::Vec3<T>::normalizeExc() [with T = int, Imath::Vec3<T> = Imath::Vec3<int>]' in same scope [-Werror=redundant-decls] /usr/include/OpenEXR/ImathVec.h:413:18: error: previous declaration of 'const Imath::Vec3<T>& Imath::Vec3<T>::normalizeExc() [with T = int, Imath::Vec3<T> = Imath::Vec3<int>]' [-Werror=redundant-decls]
That's a bug in the OpenEXR headers on your system. If you compile with -Wno-error they might become just warnings, or when you update OpenEXR they will go away completely.