Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  6 Nov 2004 19:58:25 +0900 (JST)
From:      TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/73607: math/vtk: C++ ambiguity compile error
Message-ID:  <20041106105825.D644CF195A@prime.quad.dyndns.org>
Resent-Message-ID: <200411061100.iA6B0mAV089188@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041106105825.D644CF195A>