[vtkusers] Patch for vtk 5.2.0 (regarding tiff library name mangling)
Mathieu Malaterre
mathieu.malaterre at gmail.com
Fri Nov 7 04:36:14 EST 2008
On Fri, Nov 7, 2008 at 3:18 AM, Kleistereimer <kleistereimer at gmx.de> wrote:
> hi!
>
> vtk links in a copy of the tiff lib and to not collide with other tiff
> libraries it mangles names exported from this tiff library using defines
> in the file 'vtk_tiff_mangle.h'.
>
> this mangling header file is automaticaly created but is incomplete.
> thus it does not works.
>
> this bug shows if another (vanilla) tiff library is linked in directly
> or indirectly (like ImageMagic). the linker complains about symbols
> being already defined.
>
>
> the following patch corrects this problem:
>
> vtk_tiff_mangle.h
> + #define _TIFFerrorHandlerExt vtk__TIFFerrorHandlerExt
> + #define _TIFFwarningHandlerExt vtk__TIFFwarningHandlerExt
> + #define TIFFOpenW vtk_TIFFOpenW
>
>
> below is the patch for VTK 5.0.1 for comparison:
>
> vtk_tiff_mangle.h
> + #define _TIFFBuiltinCODECS vtk__TIFFBuiltinCODECS
Could you please report the bug + attach your patch at:
http://vtk.org/Bug/
Thanks !
--
Mathieu
More information about the vtkusers
mailing list