[Paraview] compilation error (typecast int* socklen_t* in vtkSocketCommunicator.cxx)

Christoph Moder mail at christoph-moder.de
Mon Nov 21 08:23:34 EST 2005


Hello!

I am trying to compile Paraview 2.2.1 on a Debian Linux system, but it 
stops with an error:
==============
/home/moder/paraview-2.2.1/VTK/Parallel/vtkSocketCommunicator.cxx: In 
member function `virtual int vtkSocketCommunicator::GetPort(int)':
 
/home/moder/paraview-2.2.1/VTK/Parallel/vtkSocketCommunicator.cxx:302: 
error: invalid conversion from `int*' to `socklen_t*'
       make[2]: *** 
VTK/Parallel/vtkParallel.dir/vtkSocketCommunicator.o] Error 1
       make[1]: *** [VTK/Parallel/vtkParallel.dir/all] Error 2
       make: *** [all] Error 2
==============

Can anyone tell me what's wrong?

I have found a similar problem on the mailing list:
http://public.kitware.com/pipermail/paraview/2004-December/001005.html
In one of the answers it is said that in CMakeCache.txt 
VTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T:INTERNAL=0 should be changed to =1, 
but this is already the case on my system. And changing it back to =0 
does not help either.

Btw, that's what I did it (I hope there's no stupid mistake :-)
==============
~$ tar xfvz paraview-2.2.1.tar.gz
~$ mkdir paraview-2.2.1-build/
~$ cd paraview-2.2.1-build/
~/paraview-2.2.1-build$ cmake ../paraview-2.2.1/
~/paraview-2.2.1-build$ make
==============

Thanks for your suggestions, sincerely,
Christoph


More information about the ParaView mailing list