[vtkusers] Errors compiling VTK 4.2 on SuSE OSS 10 - gcc 4.0.2

Wagner Sales wsalles2003 at yahoo.com.br
Fri Dec 9 14:17:04 EST 2005


Hi all,

I was compiled VTK 5.0 on my SuSE linux box whitout problems. But, when
I was tried to compile VTK 4.2, a lot of errors was showed, and
compilation has been failed. Anyone was experienced these problem? gcc
version, errors and cmake params are above.

Thks

Wagner Sales


- GCC VERSION OUTPUT:
gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- CMAKE OPTIONS:

BUILD_EXAMPLES OFF
BUILD_SHARED_LIBS ON
CMAKE_BACKWARDS_COMPATIBILITY 2.2
CMAKE_BUILD_TYPE
CMAKE_INSTALL_PREFIX /workspace/usr
VTK_DATA_ROOT VTK_DATA_ROOT-NOTFOUND
VTK_USE_HYBRID ON
VTK_USE_PARALLEL ON
VTK_USE_PATENTED ON
VTK_USE_RENDERING ON
VTK_WRAP_JAVA OFF
VTK_WRAP_PYTHON OFF
VTK_WRAP_TCL OFF


-- ERRORS:




Building CXX object IO/CMakeFiles/vtkIO.dir/vtkBMPReader.o
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx: In function ‘void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = double]’:
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:545: instantiated from
here
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:545: instantiated from
here
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx: In function ‘void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = float]’:
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:548: instantiated from
here
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx: In function ‘void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = long
unsigned int]’:
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:551: instantiated from
here
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx: In function ‘void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = long
int]’:
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:554: instantiated from
here
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx: In function ‘void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT =
unsigned int]’:
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:557: instantiated from
here
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx: In function ‘void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = int]’:
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:560: instantiated from
here
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx: In function ‘void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = short
int]’:
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:563: instantiated from
here
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx: In function ‘void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = short
unsigned int]’:
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:566: instantiated from
here
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx: In function ‘void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT =
unsigned char]’:
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:569: instantiated from
here
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx: In function ‘void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = char]’:
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:572: instantiated from
here
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:507: note: candidate
2: operator+(std::streamoff, long int) <built-in>
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++
says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second:
/usr/include/c++/4.0.2/bits/postypes.h:175: note: candidate 1:
std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const
[with _StateT = mbstate_t]
/home/wsales/wr/mitkDevel/VTK/IO/vtkBMPReader.cxx:511: note: candidate
2: operator+(std::streamoff, long int) <built-in>
make[2]: *** [IO/CMakeFiles/vtkIO.dir/vtkBMPReader.o] Error 1
make[1]: *** [IO/CMakeFiles/vtkIO.dir/all] Error 2
make: *** [all] Error 2





More information about the vtkusers mailing list