9.2.2: /usr/local/include/vtk-9.2/vtksys/Status.hxx:15:1: error: declaration of anonymous class must be a definition
The opencascade-7.6.0
project that depends on VTK-9 fails to build with VTK-9.2.2:
[ 99% 5877/5879] /usr/local/libexec/ccache/c++ -DHAVE_FFMPEG -DHAVE_FREEIMAGE -DHAVE_FREETYPE -DHAVE_GLES2_EXT -DHAVE_OPENGL_EXT -DHAVE_RAPIDJSON -DHAVE_TK -DHAVE_VTK -DHAVE_XLIB -DOCC_CONVERT_SIGNALS -DTKIVtkDraw_EXPORTS -DVTK_OPENGL2_BACKEND -Dkiss_fft_scalar=double -I/usr/local/include/tcl8.6 -I/usr/local/include/tk8.6 -I/wrkdirs/usr/ports/cad/opencascade/work/.build/usr/local/include/OpenCASCADE -isystem /usr/local/include/freetype2 -isystem /usr/local/include/vtk-9.2 -std=c++0x -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fexceptions -fPIC -Wall -Wextra -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -DNo_Exception -fPIC -pthread -MD -MT src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o -MF src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o.d -o src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o -c /wrkdirs/usr/ports/cad/opencascade/work/opencascade-7.6.0/src/IVtkDraw/IVtkDraw_Interactor.cxx
FAILED: src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o
/usr/local/libexec/ccache/c++ -DHAVE_FFMPEG -DHAVE_FREEIMAGE -DHAVE_FREETYPE -DHAVE_GLES2_EXT -DHAVE_OPENGL_EXT -DHAVE_RAPIDJSON -DHAVE_TK -DHAVE_VTK -DHAVE_XLIB -DOCC_CONVERT_SIGNALS -DTKIVtkDraw_EXPORTS -DVTK_OPENGL2_BACKEND -Dkiss_fft_scalar=double -I/usr/local/include/tcl8.6 -I/usr/local/include/tk8.6 -I/wrkdirs/usr/ports/cad/opencascade/work/.build/usr/local/include/OpenCASCADE -isystem /usr/local/include/freetype2 -isystem /usr/local/include/vtk-9.2 -std=c++0x -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fexceptions -fPIC -Wall -Wextra -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -DNo_Exception -fPIC -pthread -MD -MT src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o -MF src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o.d -o src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw_Interactor.cxx.o -c /wrkdirs/usr/ports/cad/opencascade/work/opencascade-7.6.0/src/IVtkDraw/IVtkDraw_Interactor.cxx
In file included from /wrkdirs/usr/ports/cad/opencascade/work/opencascade-7.6.0/src/IVtkDraw/IVtkDraw_Interactor.cxx:30:
In file included from /usr/local/include/vtk-9.2/vtkXRenderWindowInteractor.h:35:
In file included from /usr/local/include/vtk-9.2/vtkRenderWindowInteractor.h:48:
In file included from /usr/local/include/vtk-9.2/vtkCommand.h:235:
In file included from /usr/local/include/vtk-9.2/vtkObject.h:46:
In file included from /usr/local/include/vtk-9.2/vtkSetGet.h:35:
In file included from /usr/local/include/vtk-9.2/vtksys/SystemTools.hxx:7:
/usr/local/include/vtk-9.2/vtksys/Status.hxx:15:1: error: declaration of anonymous class must be a definition
class vtksys_EXPORT Status
^
VTK-9.1.0 had no such problem.
Complete log.
clang-14 OS: FreeBSD 13.1 STABLE