← Back to team overview

hugin-devs team mailing list archive

[Bug 706709] Re: build fails with gcc-4.6.0

 

** Changed in: hugin
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/706709

Title:
  build fails with gcc-4.6.0

Status in Hugin - Panorama Tools GUI:
  Fix Released

Bug description:
  Fedora development just switched from gcc-4.5.1 to gcc-4.6.0, I now
  get these errors building src/foreign/vigra, building with
  -fpermissive doesn't make any difference. 4.6.0 is due to be released
  in April so this problem will effect the 2011.0.0 release.

  [  9%] Building CXX object src/hugin_base/CMakeFiles/huginbase.dir/algorithms/nona/NonaFileStitcher.cpp.o
  cd /builddir/build/BUILD/hugin-2010.5.0/src/hugin_base && /usr/lib/ccache/c++   -Dhuginbase_EXPORTS -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-siz
  e=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables  -O2 -g -fPIC -I/builddir/build/BUILD/hugin-2010.5.0/src -I/builddir/build/BUILD/hugin-2010.5.0/src/hugin_base -I/builddir/build/BUILD
  /hugin-2010.5.0/src/foreign -I/builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra -I/builddir/build/BUILD/hugin-2010.5.0/src/celeste -I/usr/include/OpenEXR   -o CMakeFiles/huginbase.dir/algorit
  hms/nona/NonaFileStitcher.cpp.o -c /builddir/build/BUILD/hugin-2010.5.0/src/hugin_base/algorithms/nona/NonaFileStitcher.cpp
  In file included from /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_array.hxx:50:0,
                   from /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/impex.hxx:75,
                   from /builddir/build/BUILD/hugin-2010.5.0/src/hugin_base/algorithm/StitcherAlgorithm.h:39,
                   from /builddir/build/BUILD/hugin-2010.5.0/src/hugin_base/algorithms/nona/NonaFileStitcher.h:35,
                   from /builddir/build/BUILD/hugin-2010.5.0/src/hugin_base/algorithms/nona/NonaFileStitcher.cpp:31:
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:498:17: error: 'ptrdiff_t' does not name a type
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:503:28: error: 'difference_type' was not declared in this scope
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:503:46: error: template argument 1 is invalid
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:531:21: error: 'difference_type' does not name a type
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:531:38: error: ISO C++ forbids declaration of 'stride' with no type [-fpermissive]
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:532:21: error: 'difference_type' does not name a type
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:532:38: error: ISO C++ forbids declaration of 'shape' with no type [-fpermissive]
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:571:28: error: declaration of 'operator+=' as non-function
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:571:24: error: expected ';' at end of member declaration
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:571:44: error: expected ')' before 'n'
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:589:28: error: declaration of 'operator-=' as non-function
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:589:24: error: expected ';' at end of member declaration
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:589:44: error: expected ')' before 'n'
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:608:9: error: 'difference_type' does not name a type
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:618:31: error: 'difference_type' has not been declared
  In file included from /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_array.hxx:50:0,
                   from /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/impex.hxx:75,
                   from /builddir/build/BUILD/hugin-2010.5.0/src/hugin_base/algorithm/StitcherAlgorithm.h:39,
                   from /builddir/build/BUILD/hugin-2010.5.0/src/hugin_base/algorithms/nona/NonaFileStitcher.h:35,
                   from /builddir/build/BUILD/hugin-2010.5.0/src/hugin_base/algorithms/nona/NonaFileStitcher.cpp:31:
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:692:9: error: 'difference_type' does not name a type
  In file included from /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_array.hxx:50:0,
                   from /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/impex.hxx:75,
                   from /builddir/build/BUILD/hugin-2010.5.0/src/hugin_base/algorithm/StitcherAlgorithm.h:39,
                   from /builddir/build/BUILD/hugin-2010.5.0/src/hugin_base/algorithms/nona/NonaFileStitcher.h:35,
                   from /builddir/build/BUILD/hugin-2010.5.0/src/hugin_base/algorithms/nona/NonaFileStitcher.cpp:31:
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx: In member function 'vigra::MultiIteratorBase<N>::type<T, REFERENCE, POINTER>& vigra::MultiIteratorBase<N>::type<T, REFERENCE, POINTER>::operator+=(const multi_difference_type&)':
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:582:43: error: request for member 'begin' in 'd', which is of non-class type 'const multi_difference_type'
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:582:50: error: there are no arguments to 'total_stride' that depend on a template parameter, so a declaration of 'total_stride' must be available [-fpermissive]
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:582:50: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx: In member function 'vigra::MultiIteratorBase<N>::type<T, REFERENCE, POINTER>& vigra::MultiIteratorBase<N>::type<T, REFERENCE, POINTER>::operator-=(const multi_difference_type&)':
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:600:43: error: request for member 'begin' in 'd', which is of non-class type 'const multi_difference_type'
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:600:50: error: there are no arguments to 'total_stride' that depend on a template parameter, so a declaration of 'total_stride' must be available [-fpermissive]
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx: In member function 'vigra::MultiIteratorBase<N>::type<T, REFERENCE, POINTER>::reference vigra::MultiIteratorBase<N>::type<T, REFERENCE, POINTER>::operator[](const multi_difference_type&) const':
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:627:48: error: request for member 'begin' in 'd', which is of non-class type 'const multi_difference_type'
  /builddir/build/BUILD/hugin-2010.5.0/src/foreign/vigra/vigra/multi_iterator.hxx:627:55: error: there are no arguments to 'total_stride' that depend on a template parameter, so a declaration of 'total_stride' must be available [-fpermissive]



References