Paraview 5.11.0 build src error - vtkprotobuf

Hello,
I am trying to build paraview 5.11.0 from source but I am getting the following error:

./../../../lib64/libvtklibprotoc-pv5.11.so.5.11: undefined reference to `google::vtkprotobuf::Descriptor::FindFieldByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
../../../../lib64/libvtklibprotoc-pv5.11.so.5.11: undefined reference to `google::vtkprotobuf::StrCat[abi:cxx11](google::vtkprotobuf::strings::AlphaNum const&, google::vtkprotobuf::strings::AlphaNum const&)'
../../../../lib64/libvtklibprotoc-pv5.11.so.5.11: undefined reference to `google::vtkprotobuf::RepeatedPtrField<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::size() const'

I tried to disable the VTK_MODULE_ENABLE_ParaView_pro option, but it also fails:

CMake Error at VTK/CMake/vtkModule.cmake:1038 (message):
   The ParaView::RemotingServerManager module (enabled via `REQUEST_MODULES`)
   requires the disabled module ParaView::protobuf (disabled via a `NO`
   setting (via `VTK_MDDULE_ENABLE_ParaView_protobuf`)).

I am using gcc 10.2 on a Linux System.

Any thougths ?

Thanks.

Can you be more precise about your linux setup ?

It’s a cluster running on linux-red hat 7.9. There is a protobuf module installed but I think is an old version (3.6). I installed version 21.4 and added the lib path to LD_LIBRARY_PATH , but still getting the error.
The compilation also fails at:

libvtkCommonCore-pv5.11.so.5.11: undefined reference to vtksys::DynamicLoader::OpenLibrary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)

But I am not sure if it’s related to the protobuf issue.
Any thoughts ?

ParaView probably find the old protobuf during configuration step. Check your CMakeCache.txt