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

Clinton Stimpson clinton at elemtech.com
Tue Feb 21 11:50:38 EST 2006


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, whereas the CMakeCache.txt file doesn't change at all.

Clint

William A. Hoffman wrote:

>This means a trycompile was bad.  Can you look at CMakeOutput.log
>and CMakeError.log and find the place where socken_t was incorrectly
>determined.
>
>-Bill
>
>
>At 03:08 PM 2/17/2006, Kent Eschenberg wrote:
>  
>
>>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
>>
>>_______________________________________________
>>ParaView mailing list
>>ParaView at paraview.org
>>http://www.paraview.org/mailman/listinfo/paraview
>>    
>>
>
>_______________________________________________
>ParaView mailing list
>ParaView at paraview.org
>http://www.paraview.org/mailman/listinfo/paraview
>  
>



More information about the ParaView mailing list