[Paraview] compilation error (typecast int* socklen_t*
in vtkSocketCommunicator.cxx)
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon Nov 21 09:21:38 EST 2005
Christoph,
Can you check you have the proper include file:
/usr/include/sys/socket.h
In case you don't have it, do `sudo apt-get install libc6-dev`.
The only case in which this error could happen would be that you
installed this package after a first configuration of ParaView. Please
delete the CMakeCache.txt and redo a cmake configure step.
Thanks
Mathieu
Christoph Moder wrote:
> 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
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list