View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013597VTK(No Category)public2012-11-01 11:052013-12-30 12:07
ReporterMatthew McCormick 
Assigned ToDave DeMarle 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version6.1.0Fixed in Version6.1.0 
Summary0013597: Does not link with CMAKE_BUILD_TYPE=Debug, VTK_USE_SYSTEM_HDF5=ON
DescriptionOn Linux, using the system install hdf5:

[11/327] Linking CXX executable bin/vtkIOGeometryCxxTests
FAILED: : && /home/matt/bin/c++ -g -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,--fatal-warnings -Wl,--no-undefined -lc IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/vtkIOGeometryCxxTests.cxx.o IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestProStarReader.cxx.o IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestSimplePointsReaderWriter.cxx.o IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestTecplotReader.cxx.o IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestAMRReadWrite.cxx.o -o bin/vtkIOGeometryCxxTests -rdynamic lib/libvtkFiltersGeometry-6.0.so.1 lib/libvtkFiltersCore-6.0.so.1 lib/libvtkCommonExecutionModel-6.0.so.1 lib/libvtkCommonDataModel-6.0.so.1 lib/libvtkCommonMath-6.0.so.1 lib/libvtkCommonCore-6.0.so.1 lib/libvtksys-6.0.so.1 lib/libvtkCommonMisc-6.0.so.1 lib/libvtkCommonSystem-6.0.so.1 lib/libvtkCommonTransforms-6.0.so.1 lib/libvtkIOAMR-6.0.so.1 lib/libvtkFiltersAMR-6.0.so.1 lib/libvtkFiltersGeneral-6.0.so.1 lib/libvtkCommonComputationalGeometry-6.0.so.1 lib/libvtkParallelCore-6.0.so.1 lib/libvtkIOLegacy-6.0.so.1 lib/libvtkIOCore-6.0.so.1 lib/libvtkzlib-6.0.so.1 -lz -lrt -lm -lhdf5_hl -lhdf5 lib/libvtkRenderingOpenGL-6.0.so.1 lib/libvtkImagingHybrid-6.0.so.1 lib/libvtkIOImage-6.0.so.1 lib/libvtkDICOMParser-6.0.so.1 lib/libvtkmetaio-6.0.so.1 lib/libvtkjpeg-6.0.so.1 lib/libvtkpng-6.0.so.1 lib/libvtktiff-6.0.so.1 lib/libvtkImagingCore-6.0.so.1 lib/libvtkRenderingCore-6.0.so.1 lib/libvtkFiltersExtraction-6.0.so.1 lib/libvtkFiltersSources-6.0.so.1 lib/libvtkIOXMLParser-6.0.so.1 lib/libvtkexpat-6.0.so.1 lib/libvtkTestingRendering-6.0.so.1 -lGLU -lGL -lSM -lICE -lX11 -lXext -lSM -lICE -lX11 -lXext -lXt lib/libvtkImagingCore-6.0.so.1 lib/libvtkRenderingCore-6.0.so.1 lib/libvtkFiltersGeometry-6.0.so.1 lib/libvtkIOImage-6.0.so.1 lib/libvtkDICOMParser-6.0.so.1 lib/libvtkmetaio-6.0.so.1 lib/libvtkpng-6.0.so.1 lib/libvtktiff-6.0.so.1 lib/libvtkjpeg-6.0.so.1 -lm lib/libvtkFiltersExtraction-6.0.so.1 lib/libvtkFiltersSources-6.0.so.1 lib/libvtkFiltersGeneral-6.0.so.1 lib/libvtkFiltersCore-6.0.so.1 lib/libvtkCommonComputationalGeometry-6.0.so.1 lib/libvtkIOXMLParser-6.0.so.1 lib/libvtkIOCore-6.0.so.1 lib/libvtkCommonExecutionModel-6.0.so.1 lib/libvtkCommonDataModel-6.0.so.1 lib/libvtkCommonSystem-6.0.so.1 lib/libvtkCommonTransforms-6.0.so.1 lib/libvtkCommonMisc-6.0.so.1 lib/libvtkCommonMath-6.0.so.1 lib/libvtkCommonCore-6.0.so.1 lib/libvtksys-6.0.so.1 -ldl lib/libvtkzlib-6.0.so.1 lib/libvtkexpat-6.0.so.1 -Wl,-rpath,/home/matt/apps/vtk_gcc_db/lib && :
IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestProStarReader.cxx.o: In function `vtkSmartPointer<vtkProStarReader>::New()':
/home/matt/apps/vtk_gcc_db/../../progs/VTK/Common/Core/vtkSmartPointer.h:113: undefined reference to `vtkProStarReader::New()'
IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestTecplotReader.cxx.o: In function `TestTecplotReader(int, char**)':
/home/matt/apps/vtk_gcc_db/../../progs/VTK/IO/Geometry/Testing/Cxx/TestTecplotReader.cxx:55: undefined reference to `vtkTecplotReader::SetFileName(char const*)'
/home/matt/apps/vtk_gcc_db/../../progs/VTK/IO/Geometry/Testing/Cxx/TestTecplotReader.cxx:56: undefined reference to `vtkTecplotReader::SetDataArrayStatus(char const*, int)'
/home/matt/apps/vtk_gcc_db/../../progs/VTK/IO/Geometry/Testing/Cxx/TestTecplotReader.cxx:84: undefined reference to `vtkTecplotReader::SetFileName(char const*)'
/home/matt/apps/vtk_gcc_db/../../progs/VTK/IO/Geometry/Testing/Cxx/TestTecplotReader.cxx:85: undefined reference to `vtkTecplotReader::SetDataArrayStatus(char const*, int)'
/home/matt/apps/vtk_gcc_db/../../progs/VTK/IO/Geometry/Testing/Cxx/TestTecplotReader.cxx:113: undefined reference to `vtkTecplotReader::SetFileName(char const*)'
/home/matt/apps/vtk_gcc_db/../../progs/VTK/IO/Geometry/Testing/Cxx/TestTecplotReader.cxx:114: undefined reference to `vtkTecplotReader::SetDataArrayStatus(char const*, int)'
IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestTecplotReader.cxx.o: In function `vtkSmartPointer<vtkTecplotReader>::New()':
/home/matt/apps/vtk_gcc_db/../../progs/VTK/Common/Core/vtkSmartPointer.h:113: undefined reference to `vtkTecplotReader::New()'
collect2: ld returned 1 exit status

Compilation completes with CMAKE_BUILD_TYPE=RelWithDebInfo
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0029791)
Orion Poplawski (reporter)
2012-11-26 23:42

I see the same thing with my build for Fedora.
(0032020)
Dave DeMarle (administrator)
2013-12-18 11:10

reproduced, looking in to fix before 6.1
(0032022)
Dave DeMarle (administrator)
2013-12-18 14:26

Problem is in cmake's FindHDF5 module.

It outputs debug;${hdf5debuglibs};optimized;${hdf5optimizedlibs}" and when hdf5optimizedlibs is not defined the next library, which happens to be vtkIOGeometry, is not used in debug builds.

Working on a cmake patch and workaround in VTK. This might wait for 6.2.1.
(0032029)
Dave DeMarle (administrator)
2013-12-19 11:10

A workaround is to use more recent CMake. Went to apply my patch and the code in question had already been fixed.
(0032082)
Dave DeMarle (administrator)
2013-12-28 02:48

http://review.source.kitware.com/#/c/13918/ [^]
(0032090)
Dave DeMarle (administrator)
2013-12-30 12:07

merged into master

 Issue History
Date Modified Username Field Change
2012-11-01 11:05 Matthew McCormick New Issue
2012-11-26 23:42 Orion Poplawski Note Added: 0029791
2013-06-25 14:01 Dave DeMarle Assigned To => Dave DeMarle
2013-06-25 14:01 Dave DeMarle Status backlog => todo
2013-07-22 20:07 Dave DeMarle Status todo => backlog
2013-12-18 11:10 Dave DeMarle Note Added: 0032020
2013-12-18 11:10 Dave DeMarle Status backlog => active development
2013-12-18 11:11 Dave DeMarle Target Version => 6.1.0
2013-12-18 14:26 Dave DeMarle Note Added: 0032022
2013-12-19 11:10 Dave DeMarle Note Added: 0032029
2013-12-28 02:48 Dave DeMarle Note Added: 0032082
2013-12-28 02:48 Dave DeMarle Status active development => gerrit review
2013-12-30 12:07 Dave DeMarle Note Added: 0032090
2013-12-30 12:07 Dave DeMarle Status gerrit review => closed
2013-12-30 12:07 Dave DeMarle Resolution open => fixed
2013-12-30 12:07 Dave DeMarle Fixed in Version => 6.1.0


Copyright © 2000 - 2018 MantisBT Team