[vtkusers] Make Error on Solaris Unix system

John-Edward Kind john at cbiol.leeds.ac.uk
Mon Sep 27 10:47:53 EDT 2004


Replacing vtkBMPReader.cxx with a newer version stopped my initial 
error.  However he compiler then threw a very similar error for 
vtkImageReader.cxx.  I replaced that with a more recent version but the 
problem didn't solve itself.  I have now downloaded the complete source 
code for version 4.4 (I was compiling from the 4.2 code).  Now I'm 
getting the error message shown below for vtkPLYReader.cxx.  I've also 
started getting an error log again complaining that sys/prctl.h does not 
exist (as before which I thought I'd fixed).  I'm starting to think the 
problem must be in my system, but being relatively new to Solaris I 
don't really know where to start looking for the problem.  Can anyone 
help me with this?

Thanks

John


/sundisk7/john/VTK/IO/vtkPLYReader.cxx: In member function `virtual void 
vtkPLYReader::Execute()':
/sundisk7/john/VTK/IO/vtkPLYReader.cxx:72: error: an array reference 
cannot appear in a constant-expression
/sundisk7/john/VTK/IO/vtkPLYReader.cxx:74: error: an array reference 
cannot appear in a constant-expression
/sundisk7/john/VTK/IO/vtkPLYReader.cxx:76: error: an array reference 
cannot appear in a constant-expression
make[3]: *** [vtkPLYReader.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_IO] Error 2
make: *** [default_target] Error 2


Mathieu Malaterre wrote:

> John-Edward,
>
>     I quickly look at the CVS history and found that this line was 
> changed :
>
> http://public.kitware.com/cgi-bin/viewcvs.cgi/IO/vtkBMPReader.cxx?r1=1.44&r2=1.45 
>
>
>     Try applying this fix and let us know how it works.
>
> HTH
> Mathieu
>
> John-Edward Kind wrote:
>
>> Sorry to reply to myself but I don't think the CMakeError.log I 
>> included is relavent.  I have solved that issue.  I hadn't copied the 
>> .h file to all the places I thought I had.  I'm still getting the 
>> same vtkBMPReader.cxx compile error though.
>>
>> John
>>
>> John-Edward Kind wrote:
>>
>>> I think I may be having the same problem, certainly a related one. 
>>> Assuming it si the same I have also noticed that a CMakeError.log is 
>>> being generated which I have included.  I have found the source code 
>>> for the prctl.h header on the internet and have tried putting it in 
>>> all the various shared include directories and /sys directories and 
>>> the problem is still being reported.
>>> Hope someone can help with this
>>> John
>>>
>>>
>>> Darshan Pai wrote:
>>>
>>>> I tried to compile vtk 4.2 on Solaris 9 .
>>>> Every thing was running good until it encountered an error trying to
>>>> compile vtkBMPREADER.o
>>>>
>>>> this is the error /export/home/../VTK/IO/vtkBMPReader.cxx:569:   
>>>> instantiated from here
>>>> /export/home/../VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that
>>>> these are ambiguous, even though the worst conversion for the first is
>>>> better than the worst conversion for the second:
>>>>
>>>>
>>>> ANy help appreciated
>>>> _______________________________________________
>>>> This is the private VTK discussion list. Please keep messages 
>>>> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>  
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> Determining if the include file sys/prctl.h exists failed with the 
>>> following output:
>>> Building object file CheckIncludeFile.o...
>>> /sundisk1/winnie/bin/gcc -o CheckIncludeFile.o           
>>> -I/sundisk7/john/VTK/CMakeTmp    -c 
>>> /sundisk7/john/VTK/CMakeTmp/CheckIncludeFile.c
>>> /sundisk7/john/VTK/CMakeTmp/CheckIncludeFile.c:1:23: sys/prctl.h: No 
>>> such file or directory
>>> make: *** [CheckIncludeFile.o] Error 1
>>>
>>>
>>> Determining the endianes of the system passed. The system is big 
>>> endianTest produced following output:
>>> Building object file TestBigEndian.o...
>>> /sundisk1/winnie/bin/gcc -o TestBigEndian.o           
>>> -I/sundisk7/john/VTK/CMakeTmp    -c 
>>> /sundisk1/winnie/share/CMake/Modules/TestBigEndian.c
>>> Building executable /sundisk7/john/VTK/CMakeTmp/cmTryCompileExec...
>>> /sundisk1/winnie/bin/gcc             -fPIC  TestBigEndian.o    -o 
>>> /sundisk7/john/VTK/CMakeTmp/cmTryCompileExec
>>> Determining if the function gethostbyname exists failed with the 
>>> following output:
>>> Building object file CheckFunctionExists.o...
>>> /sundisk1/winnie/bin/gcc -o CheckFunctionExists.o          
>>> -DCHECK_FUNCTION_EXISTS=gethostbyname 
>>> -I/sundisk7/john/VTK/CMakeTmp    -c 
>>> /sundisk1/winnie/share/CMake/Modules/CheckFunctionExists.c
>>> Building executable /sundisk7/john/VTK/CMakeTmp/cmTryCompileExec...
>>> /sundisk1/winnie/bin/gcc            
>>> -DCHECK_FUNCTION_EXISTS=gethostbyname -fPIC  
>>> CheckFunctionExists.o    -o 
>>> /sundisk7/john/VTK/CMakeTmp/cmTryCompileExec  Undefined            
>>> first referenced
>>> symbol                  in file
>>> gethostbyname                       CheckFunctionExists.o
>>> ld: fatal: Symbol referencing errors. No output written to 
>>> /sundisk7/john/VTK/CMakeTmp/cmTryCompileExec
>>> collect2: ld returned 1 exit status
>>> make: *** [/sundisk7/john/VTK/CMakeTmp/cmTryCompileExec] Error 1
>>>
>>>
>>> Determining if the function connect exists failed with the following 
>>> output:
>>> Building object file CheckFunctionExists.o...
>>> /sundisk1/winnie/bin/gcc -o CheckFunctionExists.o          
>>> -DCHECK_FUNCTION_EXISTS=connect -I/sundisk7/john/VTK/CMakeTmp    -c 
>>> /sundisk1/winnie/share/CMake/Modules/CheckFunctionExists.c
>>> Building executable /sundisk7/john/VTK/CMakeTmp/cmTryCompileExec...
>>> /sundisk1/winnie/bin/gcc            -DCHECK_FUNCTION_EXISTS=connect 
>>> -fPIC  CheckFunctionExists.o    -o 
>>> /sundisk7/john/VTK/CMakeTmp/cmTryCompileExec  Undefined            
>>> first referenced
>>> symbol                  in file
>>> connect                             CheckFunctionExists.o
>>> ld: fatal: Symbol referencing errors. No output written to 
>>> /sundisk7/john/VTK/CMakeTmp/cmTryCompileExec
>>> collect2: ld returned 1 exit status
>>> make: *** [/sundisk7/john/VTK/CMakeTmp/cmTryCompileExec] Error 1
>>>
>>>
>>> Determining if the function pthread_create exists in the pthreads 
>>> failed with the following output:
>>> Building object file CheckFunctionExists.o...
>>> /sundisk1/winnie/bin/gcc -o CheckFunctionExists.o          
>>> -DCHECK_FUNCTION_EXISTS=pthread_create 
>>> -I/sundisk7/john/VTK/CMakeTmp    -c 
>>> /sundisk1/winnie/share/CMake/Modules/CheckFunctionExists.c
>>> Building executable /sundisk7/john/VTK/CMakeTmp/cmTryCompileExec...
>>> /sundisk1/winnie/bin/gcc            
>>> -DCHECK_FUNCTION_EXISTS=pthread_create -fPIC  
>>> CheckFunctionExists.o    -o 
>>> /sundisk7/john/VTK/CMakeTmp/cmTryCompileExec  -lpthreads ld: fatal: 
>>> library -lpthreads: not found
>>> ld: fatal: File processing errors. No output written to 
>>> /sundisk7/john/VTK/CMakeTmp/cmTryCompileExec
>>> collect2: ld returned 1 exit status
>>> make: *** [/sundisk7/john/VTK/CMakeTmp/cmTryCompileExec] Error 1
>>>
>>>
>>> Determining if the include file strstrea.h exists failed with the 
>>> following output:
>>> Building object file CheckIncludeFile.o...
>>> /sundisk1/winnie/bin/g++ -o CheckIncludeFile.o           
>>> -I/sundisk7/john/VTK/CMakeTmp    -c 
>>> /sundisk7/john/VTK/CMakeTmp/CheckIncludeFile.cxx
>>> /sundisk7/john/VTK/CMakeTmp/CheckIncludeFile.cxx:1:22: strstrea.h: 
>>> No such file or directory
>>> make: *** [CheckIncludeFile.o] Error 1
>>>
>>>
>>> Determining if the include file strstream.h exists failed with the 
>>> following output:
>>> Building object file CheckIncludeFile.o...
>>> /sundisk1/winnie/bin/g++ -o CheckIncludeFile.o           
>>> -I/sundisk7/john/VTK/CMakeTmp    -c 
>>> /sundisk7/john/VTK/CMakeTmp/CheckIncludeFile.cxx
>>> /sundisk7/john/VTK/CMakeTmp/CheckIncludeFile.cxx:1:23: strstream.h: 
>>> No such file or directory
>>> make: *** [CheckIncludeFile.o] Error 1
>>>
>>>
>>>  
>>>
>>
>>
>>
>> _______________________________________________
>> This is the private VTK discussion list. Please keep messages 
>> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
>






More information about the vtkusers mailing list