[Paraview] Compile problem on Fedora Development on x86_64
Orion Poplawski
orion at cora.nwra.com
Wed Mar 8 18:24:31 EST 2006
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
--
Orion Poplawski
System Administrator 303-415-9701 x222
Colorado Research Associates/NWRA FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301 http://www.co-ra.com
More information about the ParaView
mailing list