ports/73607: math/vtk: C++ ambiguity compile error

TAOKA Fumiyoshi fmysh at iijmio-mail.jp
Sat Nov 6 11:00:48 UTC 2004

>Number:         73607
>Category:       ports
>Synopsis:       math/vtk: C++ ambiguity compile error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 06 11:00:47 GMT 2004
>Originator:     TAOKA Fumiyoshi
>Release:        FreeBSD 5.3-STABLE i386
FreeBSD 5.3-STABLE, gcc version 3.4.2 [FreeBSD] 20040728
	Building vtk fails due to C++ ambiguity compile errers
	in IO/vtkBMPReader.cxx and IO/vtkImageReader.cxx.


	Building shared library /usr/ports/math/vtk/work/vtk-build/bin/libvtkGraphics.so...
	/usr/ports/math/vtk/work/vtk-build/IO: building default_target
	building dependencies. cmake.depends...
	Building object file vtkBMPReader.o...
	/usr/ports/math/vtk/work/VTK/IO/vtkBMPReader.cxx: In function `void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = double]':
	/usr/ports/math/vtk/work/VTK/IO/vtkBMPReader.cxx:545:   instantiated from here
	/usr/ports/math/vtk/work/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++/3.4/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t]
/usr/ports/math/vtk/work/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2: operator+(std::streamoff, long int) <built-in>


	Patches below from VTK cvs fixes the issue but the port
	did not apply them by simply putting them into vtk/files



More information about the freebsd-ports-bugs mailing list