[Paraview] building paraview-1.8.1 on sparc-solaris 2.8
Jason.Beech-Brandt at ed.ac.uk
Jason.Beech-Brandt at ed.ac.uk
Mon Dec 13 12:16:12 EST 2004
Hi Brad,
I had a look through the CMakeError.log as you suggest and found the
following,
Determining if getsockname accepts socklen_t type failed with the
following output:
Building object file vtkTestSocklenT.o...
c++ -o vtkTestSocklenT.o -Wno-deprecated -Wno-deprecated -c
/deptpc/scratch/jbbrand1/packages/paraview-1.8.1/VTK/CMake/vtkTestSocklenT.cxx
Building executable
/deptpc/scratch/jbbrand1/packages/paraview-1.8.1-solaris/VTK/CMakeTmp/SocklenT/CMakeTmp/cmTryCompileExec...
c++ -Wno-deprecated -Wno-deprecated -fPIC vtkTestSocklenT.o
-o
/deptpc/scratch/jbbrand1/packages/paraview-1.8.1-solaris/VTK/CMakeTmp/SocklenT/CMakeTmp/cmTryCompileExec
Undefined first referenced
symbol in file
getsockname vtkTestSocklenT.o
ld: fatal: Symbol referencing errors. No output written to
/deptpc/scratch/jbbrand1/packages/paraview-1.8.1-solaris/VTK/CMakeTmp/SocklenT/CMakeTmp/cmTryCompileExec
collect2: ld returned 1 exit status
gmake: ***
[/deptpc/scratch/jbbrand1/packages/paraview-1.8.1-solaris/VTK/CMakeTmp/SocklenT/CMakeTmp/cmTryCompileExec]
Error 1
So I guess the executable can't be built as getsockname is not defined.
Can this be fixed by just adding -lsocket to the compile line?
Thanks
Jason
On Mon, 13 Dec 2004, Brad King wrote:
> Jason.Beech-Brandt at ed.ac.uk wrote:
> > Hi,
> >
> > I'm attempting to compile paraview-1.8.1 on an UltraSparc Sun running
> > Solaris 2.8. My compiler is gcc-3.4.3. Everything compile fine until I
> > get to vtkSocketCommunicator.cxx, at which point I get the following
> > compile error.
> [snip]
> > /deptpc/scratch/jbbrand1/packages/paraview-1.8.1/VTK/Parallel/vtkSocketCommunicator.cxx:
> > In member function `virtual int vtkSocketCommunicator::GetPort(int)':
> > /deptpc/scratch/jbbrand1/packages/paraview-1.8.1/VTK/Parallel/vtkSocketCommunicator.cxx:295:
> > error: invalid conversion from `int*' to `socklen_t*'
> > /deptpc/scratch/jbbrand1/packages/paraview-1.8.1/VTK/Parallel/vtkSocketCommunicator.cxx:295:
> > error: initializing argument 3 of `int getsockname(int, sockaddr*,
> > socklen_t*)' gmake[5]: *** [vtkSocketCommunicator.o] Error 1 gmake[5]:
>
> Since the getsockname function takes "int" on some platforms and
> "socklen_t" on others, there is a try-compile that tests which signature
> is available on your platform. Look in CMakeError.log for text like this:
>
> "Determining if getsockname accepts socklen_t type"
>
> Somewhere after that text should be the compiler error message
> indicating why ParaView thinks your platform does not have a getsockname
> with socklen_t.
>
> -Brad
>
More information about the ParaView
mailing list