[vtkusers] VTK on Solaris: int64_t declaration conflict

Andriy Fedorov fedorov at bwh.harvard.edu
Wed Aug 5 15:52:29 EDT 2009


Hi,

I followed the advice of Francois, and tried to compile 5.4 branch
instead. I have a totally different unrelated error for 5.4:

[  4%] Building C object
Utilities/vtklibproj4/CMakeFiles/vtkproj4.dir/proj_ftmerc.o
cd /sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/vtklibproj4
&& /usr/sfw/bin/gcc  -Dvtkproj4_EXPORTS -DVTK_IN_VTK -m64   -g -fPIC
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Common
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/VolumeRendering
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Rendering
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/vtkalglib
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Infovis
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Geovis
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Views
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Parallel
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/VolumeRendering
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Hybrid
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Widgets
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Rendering
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Rendering/Testing/Cxx
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/IO
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Imaging
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Graphics
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/GenericFiltering
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Filtering
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Common
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Common/Testing/Cxx
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/vtklibproj4
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtklibproj4
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/DICOMParser
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/DICOMParser
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/vtkfreetype/include
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtkfreetype/include
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/vtknetcdf
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtknetcdf
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/vtkexodus2/include
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtkexodus2/include
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/MaterialLibrary
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/MaterialLibrary
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/verdict
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/verdict
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtkalglib
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/ftgl/src
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/ftgl
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/TclTk/internals/tk8.5
-I/usr/local/include -I/usr/X11R6/include
-I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3/../Slicer3-lib/tcl-build/include
  -o CMakeFiles/vtkproj4.dir/proj_ftmerc.o   -c
/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtklibproj4/proj_ftmerc.c
/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtklibproj4/proj_ftmerc.c:
In function `e_forward':
/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtklibproj4/proj_ftmerc.c:116:
error: `_Imaginary_I' undeclared (first use in this function)
/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtklibproj4/proj_ftmerc.c:116:
error: (Each undeclared identifier is reported only once
/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtklibproj4/proj_ftmerc.c:116:
error: for each function it appears in.)
/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtklibproj4/proj_ftmerc.c:
In function `e_inverse':
/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtklibproj4/proj_ftmerc.c:128:
error: `_Imaginary_I' undeclared (first use in this function)
gmake[2]: *** [Utilities/vtklibproj4/CMakeFiles/vtkproj4.dir/proj_ftmerc.o]
Error 1


On Wed, Aug 5, 2009 at 10:05 AM, Andriy Fedorov<fedorov at bwh.harvard.edu> wrote:
> Hi,
>
> I am trying to compile VTK 5.2 on a Solaris system
>
> SunOS 5.10 Generic_118855-36 i86pc i386 i86pc
>
> I have the following compilation problem. Is this a known/resolvable
> issue? Is there a workaround?
>
> [ 67%] Building CXX object
> Rendering/CMakeFiles/vtkRendering.dir/vtkOpenGLExtensionManager.o
> cd /sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Rendering
> && /usr/sfw/bin/g++   -DvtkRendering_EXPORTS -DVTK_IN_VTK -m64
> -Wno-deprecated -g -fPIC
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Common
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/VolumeRendering
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Rendering
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Infovis
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Views
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Parallel
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/VolumeRendering
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Hybrid
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Widgets
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Rendering
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Rendering/Testing/Cxx
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/IO
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Imaging
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Graphics
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/GenericFiltering
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Filtering
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Common
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Common/Testing/Cxx
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/DICOMParser
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/DICOMParser
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/vtkfreetype/include
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtkfreetype/include
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/vtknetcdf
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtknetcdf
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/vtkexodus2/include
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/vtkexodus2/include
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/MaterialLibrary
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/MaterialLibrary
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/verdict
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/verdict
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/ftgl/src
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Utilities/ftgl
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Utilities/TclTk/internals/tk8.5
> -I/usr/local/include -I/usr/X11R6/include
> -I/sciclone/scr01/fedorov/Slicer-solaris/Slicer3/../Slicer3-lib/tcl-build/include
>  -o CMakeFiles/vtkRendering.dir/vtkOpenGLExtensionManager.o -c
> /sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Rendering/vtkOpenGLExtensionManager.cxx
> In file included from /usr/X11R6/include/GL/glx.h:117,
>                from
> /sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK-build/Rendering/vtkgl.h:32,
>                from
> /sciclone/scr01/fedorov/Slicer-solaris/Slicer3-lib/VTK/Rendering/vtkOpenGLExtensionManager.cxx:27:
> /usr/X11R6/include/GL/glxext.h:340: error: conflicting declaration
> 'typedef long long int int64_t'
> /usr/include/sys/int_types.h:64: error: 'int64_t' has a previous
> declaration as `typedef long int int64_t'
> /usr/X11R6/include/GL/glxext.h:340: error: declaration of `typedef
> long long int int64_t'
> /usr/include/sys/int_types.h:64: error: conflicts with previous
> declaration `typedef long int int64_t'
> /usr/X11R6/include/GL/glxext.h:340: error: declaration of `typedef
> long long int int64_t'
> /usr/include/sys/int_types.h:64: error: conflicts with previous
> declaration `typedef long int int64_t'
> gmake[2]: *** [Rendering/CMakeFiles/vtkRendering.dir/vtkOpenGLExtensionManager.o]
> Error 1
>
> Andriy Fedorov
>



More information about the vtkusers mailing list