[Paraview] Is There An Error In vtkSocketCommunicator (2.4.2)?

Kent Eschenberg eschenbe at psc.edu
Fri Feb 17 15:08:43 EST 2006


I can't tell whether this is a bug or another dumb thing I've done. 
Compiling a fresh download of 2.4.2 on a Fedora Core 4 system (cmake 
2.2-patch 2, gcc 4.0.2) with no changes yields the following error:

======
.../VTK/Parallel/vtkSocketCommunicator.cxx:
In member function
virtual int vtkSocketCommunicator::GetPort(int):
error: invalid conversion from int* to socklen_t*
======

At the top of this routine are the lines

======
#if defined(VTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T)
  socklen_t sizebuf = sizeof(sockinfo);
#else
  int sizebuf = sizeof(sockinfo);
#endif
======

and the only line in CMakeCache.txt that includes the flag is

======
VTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T:INTERNAL=1
======

So, "&sizebuf" is an "int*" and gcc doesn't know how to convert it to 
"socklen_t*".

On a hunch I tried merely re-running cmake then make. None of the files 
from the first cycle were changed. This worked without problems.

What do you think is wrong?

Thanks!
Kent
Pittsburgh Supercomputing Center



More information about the ParaView mailing list