[Paraview] Compile problem on Fedora Development on x86_64

Brad King brad.king at kitware.com
Thu Mar 9 10:47:38 EST 2006


Orion Poplawski wrote:
> I'm trying to compile on a Fedora Development (pre-FC5) x86_64 and 
> getting the following error:
> 
> Building CXX object 
> VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkSocketController.o
> /scratch/orion/redhat/paraview-2.4.2/paraview-2.4.2/VTK/Parallel/vtkSocketCommunicator.cxx: 
> In member function 'virtual int vtkSocketCommunicator::GetPort(int)':
> /scratch/orion/redhat/paraview-2.4.2/paraview-2.4.2/VTK/Parallel/vtkSocketCommunicator.cxx:303: 
> error: invalid conversion from 'int*' to 'socklen_t*'
> /scratch/orion/redhat/paraview-2.4.2/paraview-2.4.2/VTK/Parallel/vtkSocketCommunicator.cxx:303: 
> error:   initializing argument 3 of 'int getsockname(int, sockaddr*, 
> socklen_t*)'
> 
> Code is:
> 
> #if defined(VTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T)
>   socklen_t sizebuf = sizeof(sockinfo);
> #else
>   int sizebuf = sizeof(sockinfo);
> #endif
>   if(getsockname(sock, reinterpret_cast<sockaddr*>(&sockinfo), &sizebuf) 
> != 0)
> 
> Now, I don't understand why VTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T is not 
> defined:
> 
> paraview-2.4.2/fedora/VTK/vtkConfigure.h:/* #undef 
> VTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T */
> 
> it seems to see it:
> 
> checking for socklen_t... yes
> -- Checking for getsockname with socklen_t
> -- Checking for getsockname with socklen_t -- yes
> -- Performing Other Test HAVE_SOCKLEN_T
> -- Performing Other Test HAVE_SOCKLEN_T - Success
> 
> paraview-2.4.2/fedora/CMakeCache.txt:VTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T:INTERNAL=1 

I think I know what is wrong but I'll need your help to confirm my 
hypothesis.  Please go to the build tree and run "cmake ." to 
reconfigure the project.  I bet the setting in vtkConfigure.h will 
magically change and the macro will be defined.

Let me know whether that works.  If it does then I should be able to fix 
things so the problem does not happen again.

Thanks,
-Brad


More information about the ParaView mailing list