Compile Fails Due to CMake Error
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
After downloading a fresh copy of 2.4.2 and running CMake, make yields this error:
.../VTK/Parallel/vtkSocketCommunicator.cxx: In member function virtual int vtkSocketCommunicator::GetPort(int): error: invalid conversion from int* to socklen_t*
However, after running CMake and make a second time, everything works.
One part of the problem is that the flag VTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T is not defined in vtkConfigure.h the first time but is the second time.
clinton@elemtech.com offered this explaination: "I think it is because the vtkConfigure.h is written out before CMake has a chance to go in the Parallel directory to find out whether to use socklen_t or int. A second run of cmake updates the vtkConfigure.h file with the right stuff."
This happens on a Redhat Fedora Core 4 system (cmake 2.2-patch 2, gcc 4.0.2); I don't know about other systems so the OS in this report only says Linux.
I don't know if the bug is in CMake or in one of the Paraview files used by CMake so this report is filed under Paraview.