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
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 06 11:00:47 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: TAOKA Fumiyoshi
>Release: FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
FreeBSD 5.3-STABLE, gcc version 3.4.2 [FreeBSD] 20040728
>Description:
Building vtk fails due to C++ ambiguity compile errers
in IO/vtkBMPReader.cxx and IO/vtkImageReader.cxx.
>How-To-Repeat:
#make
(snip)
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>
(snip)
>Fix:
Patches below from VTK cvs fixes the issue but the port
did not apply them by simply putting them into vtk/files
directory.
http://public.kitware.com/cgi-bin/viewcvs.cgi/IO/vtkBMPReader.cxx?r1=1.44&r2=1.45&makepatch=1&diff_format=u
http://public.kitware.com/cgi-bin/viewcvs.cgi/IO/vtkImageReader.cxx?r1=1.109&r2=1.110&makepatch=1&diff_format=u
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list