`vtkInformationDataObjectKey::Get` causes link error building with UBSan
Building with clang with -fsanitize=undefined
gets me:
[ 49%] Linking CXX shared library ../../lib/libvtkCommonCore-9.2.dylib
Undefined symbols for architecture x86_64:
"typeinfo for vtkDataObject", referenced from:
l___unnamed_20 in vtkInformationDataObjectKey.cxx.o
If I change vtkInformationDataObjectKey::Get to return 0
it links.
I think this is due to libvtkCommonCore
not linking against libvtkCommonDataModel
, and from their names that sounds like it'd be backwards anyway. Yet vtkInformationDataObjectKey.cxx
is clearly using vtkDataObject
, so...
git blame suggests @ben.boeckel might know something about this...
Edited by Sean McBride