View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000621VTK(No Category)public2004-02-23 10:482004-02-23 13:23
ReporterAllen Zhao 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000621: vtkDataArraySelection.o failed to compile on Solaris 8
DescriptionThe same file is doing ok on both Solaris 7/9. But on Solaris 8, using either Forte 6 update 2 or Sun ONE Studio 8, the native CC will fail:

echo "Building object file vtkDataArraySelection.o..."
Building object file vtkDataArraySelection.o...
/opt2/SUNWspro/bin/CC -o vtkDataArraySelection.o -DvtkCommon_EXPORTS -I/usr/openwin/share/include -KPIC -I/User0/allen/src/VTK-4.2.2-sun8/Common -I/User0/allen/src/VTK-4.2.2-sun8 -I/User0/allen/src/VTK-4.2.2-sun8/Parallel -I/User0/allen/src/VTK-4.2.2-sun8/Hybrid -I/User0/allen/src/VTK-4.2.2-sun8/Rendering -I/User0/allen/src/VTK-4.2.2-sun8/IO -I/User0/allen/src/VTK-4.2.2-sun8/Imaging -I/User0/allen/src/VTK-4.2.2-sun8/Graphics -I/User0/allen/src/VTK-4.2.2-sun8/Filtering -I/User0/allen/src/VTK-4.2.2-sun8/Common -I/User0/allen/src/VTK-4.2.2-sun8/Common/Testing/Cxx -I/User0/allen/src/VTK-4.2.2-sun8/Utilities/zlib -I/User0/allen/src/VTK-4.2.2-sun8/Utilities/jpeg -I/User0/allen/src/VTK-4.2.2-sun8/Utilities/png -I/User0/allen/src/VTK-4.2.2-sun8/Utilities/tiff -I/User0/allen/src/VTK-4.2.2-sun8/Utilities/expat -I/User0/allen/src/VTK-4.2.2-sun8/Utilities/freetype/include -I/User0/allen/src/VTK-4.2.2-sun8/Utilities/freetype -I/User0/allen/src/VTK-4.2.2-sun8/Utilities/ftgl/src -I/User0/allen/src/VTK-4.2.2-sun8/Utilities/ftgl -I/usr/java/include -I/usr/java/include/solaris -c /User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 36: Error: vector is not defined.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 36: Error: "," expected instead of "<".
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 36: Error: Use ";" to terminate declarations.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 36: Error: A declaration was expected instead of "<".
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 36: Error: "," expected instead of ">".
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 37: Error: vector is not defined.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 37: Error: "," expected instead of "<".
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 37: Error: Use ";" to terminate declarations.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 37: Error: A declaration was expected instead of "<".
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 37: Error: A declaration does not specify a tag or an identifier.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 37: Error: Use ";" to terminate declarations.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 37: Error: A declaration was expected instead of ">".
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 42: Error: The type "vtkDataArraySelectionArrayNamesType" is incomplete.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 43: Error: The type "vtkDataArraySelectionArraySettingsType" is incomplete.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 49: Warning: The type "vtkDataArraySelectionArraySettingsType", used in delete, is incomplete.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 50: Warning: The type "vtkDataArraySelectionArrayNamesType", used in delete, is incomplete.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 63: Error: vector is not defined.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 63: Error: iterator is not defined.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 63: Error: i is not defined.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 64: Error: find is not a member of file level.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 63: Error: Badly formed expression.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 65: Error: i is not defined.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 65: Error: The type "vtkDataArraySelectionArrayNamesType" is incomplete.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 67: Error: i is not defined.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 67: Error: The type "vtkDataArraySelectionArrayNamesType" is incomplete.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 76: Error: The type "vtkDataArraySelectionArrayNamesType" is incomplete.
"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 77: Error: The type "vtkDataArraySelectionArraySettingsType" is incomplete.
Compilation aborted, too many Error messages.
make[3]: *** [vtkDataArraySelection.o] Error 1
make[3]: Leaving directory `/User0/allen/src/VTK-4.2.2-sun8/Common'
make[2]: *** [default_target] Error 2
make[2]: Leaving directory `/User0/allen/src/VTK-4.2.2-sun8/Common'
make[1]: *** [default_target_Common] Error 2
make[1]: Leaving directory `/User0/allen/src/VTK-4.2.2-sun8'
make: *** [default_target] Error 2
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0000693)
Brad King (developer)
2004-02-23 11:40

The first error is this:

"/User0/allen/src/VTK-4.2.2-sun8/Common/vtkDataArraySelection.cxx", line 36: Error: vector is not defined.

This means that the test VTK uses to decide whether STL classes (like vector) are in the std:: or global namespace is failing. Please post the values of

CMAKE_NO_STD_NAMESPACE and CMAKE_STD_NAMESPACE from your CMakeCache.txt file.
(0000694)
Allen Zhao (reporter)
2004-02-23 12:29

Here we go:

//Does the compiler support std::.
CMAKE_NO_STD_NAMESPACE:INTERNAL=1

//Result of TRY_COMPILE
CMAKE_STD_NAMESPACE:INTERNAL=FALSE


The other 2 successful compilation have both opposite. Shall I manually do that?
(0000695)
Allen Zhao (reporter)
2004-02-23 13:00

By turning off the ANSI STD on ccmake, the compilation is fine.

So, Sun's own CC (up to Studio 8) does not support ANSI namespace standard?

Well, C'est la vie.
(0000696)
Brad King (developer)
2004-02-23 13:23

You are correct, Sun CC does not have STL in the std:: namespace. However, VTK_USE_ANSI_STDLIB only affects the use of std:: for streams, not for STL. I do not think this is a VTK bug, so I'm closing the issue. If you still have a problem to resolve, please post it to the vtkusers list.

 Issue History
Date Modified Username Field Change
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team