Opened 16 years ago

Closed 15 years ago

#18696 closed defect (fixed)

vtk fails to build

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: david.trem@…
Port: vtk

Description

Linking CXX shared library ../bin/libvtkCommon.dylib
cd /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_graphics_vtk/work/VTK/Common && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/vtkCommon.dir/link.txt --verbose=1
/usr/bin/c++    -Wno-deprecated -no-cpp-precomp -dynamiclib -headerpad_max_install_names -init _oft_initCom -o ../bin/libvtkCommon.dylib -install_name /opt/local/lib/vtk/libvtkCommon.dylib CMakeFiles/vtkCommon.dir/vtkAbstractMapper.o CMakeFiles/vtkCommon.dir/vtkAbstractTransform.o CMakeFiles/vtkCommon.dir/vtkActor2D.o CMakeFiles/vtkCommon.dir/vtkActor2DCollection.o CMakeFiles/vtkCommon.dir/vtkAmoebaMinimizer.o CMakeFiles/vtkCommon.dir/vtkAssemblyNode.o CMakeFiles/vtkCommon.dir/vtkAssemblyPath.o CMakeFiles/vtkCommon.dir/vtkAssemblyPaths.o CMakeFiles/vtkCommon.dir/vtkBitArray.o CMakeFiles/vtkCommon.dir/vtkByteSwap.o CMakeFiles/vtkCommon.dir/vtkCallbackCommand.o CMakeFiles/vtkCommon.dir/vtkCell.o CMakeFiles/vtkCommon.dir/vtkCell3D.o CMakeFiles/vtkCommon.dir/vtkCellArray.o CMakeFiles/vtkCommon.dir/vtkCellData.o CMakeFiles/vtkCommon.dir/vtkCellLinks.o CMakeFiles/vtkCommon.dir/vtkCellTypes.o CMakeFiles/vtkCommon.dir/vtkCharArray.o CMakeFiles/vtkCommon.dir/vtkCollection.o CMakeFiles/vtkCommon.dir/vtkCollectionIterator.o CMakeFiles/vtkCommon.dir/vtkCommand.o CMakeFiles/vtkCommon.dir/vtkContourValues.o CMakeFiles/vtkCommon.dir/vtkConvexPointSet.o CMakeFiles/vtkCommon.dir/vtkCoordinate.o CMakeFiles/vtkCommon.dir/vtkCriticalSection.o CMakeFiles/vtkCommon.dir/vtkCylindricalTransform.o CMakeFiles/vtkCommon.dir/vtkDataArray.o CMakeFiles/vtkCommon.dir/vtkDataArrayCollection.o CMakeFiles/vtkCommon.dir/vtkDataArrayCollectionIterator.o CMakeFiles/vtkCommon.dir/vtkDataArraySelection.o CMakeFiles/vtkCommon.dir/vtkDataObject.o CMakeFiles/vtkCommon.dir/vtkDataObjectCollection.o CMakeFiles/vtkCommon.dir/vtkDataSet.o CMakeFiles/vtkCommon.dir/vtkDataSetAttributes.o CMakeFiles/vtkCommon.dir/vtkDataSetCollection.o CMakeFiles/vtkCommon.dir/vtkDebugLeaks.o CMakeFiles/vtkCommon.dir/vtkDebugLeaksManager.o CMakeFiles/vtkCommon.dir/vtkDirectory.o CMakeFiles/vtkCommon.dir/vtkDoubleArray.o CMakeFiles/vtkCommon.dir/vtkDynamicLoader.o CMakeFiles/vtkCommon.dir/vtkEdgeTable.o CMakeFiles/vtkCommon.dir/vtkEmptyCell.o CMakeFiles/vtkCommon.dir/vtkErrorCode.o CMakeFiles/vtkCommon.dir/vtkExplicitCell.o CMakeFiles/vtkCommon.dir/vtkExtentTranslator.o CMakeFiles/vtkCommon.dir/vtkFieldData.o CMakeFiles/vtkCommon.dir/vtkFileOutputWindow.o CMakeFiles/vtkCommon.dir/vtkFloatArray.o CMakeFiles/vtkCommon.dir/vtkFunctionParser.o CMakeFiles/vtkCommon.dir/vtkFunctionSet.o CMakeFiles/vtkCommon.dir/vtkGeneralTransform.o CMakeFiles/vtkCommon.dir/vtkGenericCell.o CMakeFiles/vtkCommon.dir/vtkHeap.o CMakeFiles/vtkCommon.dir/vtkHexahedron.o CMakeFiles/vtkCommon.dir/vtkHomogeneousTransform.o CMakeFiles/vtkCommon.dir/vtkIdList.o CMakeFiles/vtkCommon.dir/vtkIdListCollection.o CMakeFiles/vtkCommon.dir/vtkIdType.o CMakeFiles/vtkCommon.dir/vtkIdTypeArray.o CMakeFiles/vtkCommon.dir/vtkIdentityTransform.o CMakeFiles/vtkCommon.dir/vtkImageData.o CMakeFiles/vtkCommon.dir/vtkImageIterator.o CMakeFiles/vtkCommon.dir/vtkImageProgressIterator.o CMakeFiles/vtkCommon.dir/vtkImplicitFunction.o CMakeFiles/vtkCommon.dir/vtkImplicitFunctionCollection.o CMakeFiles/vtkCommon.dir/vtkIndent.o CMakeFiles/vtkCommon.dir/vtkInitialValueProblemSolver.o CMakeFiles/vtkCommon.dir/vtkInstantiator.o CMakeFiles/vtkCommon.dir/vtkIntArray.o CMakeFiles/vtkCommon.dir/vtkInterpolatedVelocityField.o CMakeFiles/vtkCommon.dir/vtkLargeInteger.o CMakeFiles/vtkCommon.dir/vtkLine.o CMakeFiles/vtkCommon.dir/vtkLinearTransform.o CMakeFiles/vtkCommon.dir/vtkLocator.o CMakeFiles/vtkCommon.dir/vtkLogLookupTable.o CMakeFiles/vtkCommon.dir/vtkLongArray.o CMakeFiles/vtkCommon.dir/vtkLookupTable.o CMakeFiles/vtkCommon.dir/vtkMapper2D.o CMakeFiles/vtkCommon.dir/vtkMath.o CMakeFiles/vtkCommon.dir/vtkMatrix4x4.o CMakeFiles/vtkCommon.dir/vtkMatrixToHomogeneousTransform.o CMakeFiles/vtkCommon.dir/vtkMatrixToLinearTransform.o CMakeFiles/vtkCommon.dir/vtkMultiPartExtentTranslator.o CMakeFiles/vtkCommon.dir/vtkMultiThreader.o CMakeFiles/vtkCommon.dir/vtkMutexLock.o CMakeFiles/vtkCommon.dir/vtkNonLinearCell.o CMakeFiles/vtkCommon.dir/vtkOStrStreamWrapper.o CMakeFiles/vtkCommon.dir/vtkOStreamWrapper.o CMakeFiles/vtkCommon.dir/vtkObject.o CMakeFiles/vtkCommon.dir/vtkObjectBase.o CMakeFiles/vtkCommon.dir/vtkObjectFactory.o CMakeFiles/vtkCommon.dir/vtkObjectFactoryCollection.o CMakeFiles/vtkCommon.dir/vtkOldStyleCallbackCommand.o CMakeFiles/vtkCommon.dir/vtkOrderedTriangulator.o CMakeFiles/vtkCommon.dir/vtkOutputWindow.o CMakeFiles/vtkCommon.dir/vtkOverrideInformation.o CMakeFiles/vtkCommon.dir/vtkOverrideInformationCollection.o CMakeFiles/vtkCommon.dir/vtkPerspectiveTransform.o CMakeFiles/vtkCommon.dir/vtkPixel.o CMakeFiles/vtkCommon.dir/vtkPlane.o CMakeFiles/vtkCommon.dir/vtkPlaneCollection.o CMakeFiles/vtkCommon.dir/vtkPlanes.o CMakeFiles/vtkCommon.dir/vtkPointData.o CMakeFiles/vtkCommon.dir/vtkPointLocator.o CMakeFiles/vtkCommon.dir/vtkPointSet.o CMakeFiles/vtkCommon.dir/vtkPoints.o CMakeFiles/vtkCommon.dir/vtkPolyData.o CMakeFiles/vtkCommon.dir/vtkPolyLine.o CMakeFiles/vtkCommon.dir/vtkPolyVertex.o CMakeFiles/vtkCommon.dir/vtkPolygon.o CMakeFiles/vtkCommon.dir/vtkPriorityQueue.o CMakeFiles/vtkCommon.dir/vtkProcessObject.o CMakeFiles/vtkCommon.dir/vtkProp.o CMakeFiles/vtkCommon.dir/vtkPropAssembly.o CMakeFiles/vtkCommon.dir/vtkPropCollection.o CMakeFiles/vtkCommon.dir/vtkProperty2D.o CMakeFiles/vtkCommon.dir/vtkPyramid.o CMakeFiles/vtkCommon.dir/vtkQuad.o CMakeFiles/vtkCommon.dir/vtkQuadraticEdge.o CMakeFiles/vtkCommon.dir/vtkQuadraticHexahedron.o CMakeFiles/vtkCommon.dir/vtkQuadraticQuad.o CMakeFiles/vtkCommon.dir/vtkQuadraticTetra.o CMakeFiles/vtkCommon.dir/vtkQuadraticTriangle.o CMakeFiles/vtkCommon.dir/vtkQuadric.o CMakeFiles/vtkCommon.dir/vtkRectilinearGrid.o CMakeFiles/vtkCommon.dir/vtkReferenceCount.o CMakeFiles/vtkCommon.dir/vtkRungeKutta2.o CMakeFiles/vtkCommon.dir/vtkRungeKutta4.o CMakeFiles/vtkCommon.dir/vtkRungeKutta45.o CMakeFiles/vtkCommon.dir/vtkScalarsToColors.o CMakeFiles/vtkCommon.dir/vtkShortArray.o CMakeFiles/vtkCommon.dir/vtkSmartPointerBase.o CMakeFiles/vtkCommon.dir/vtkSource.o CMakeFiles/vtkCommon.dir/vtkSphericalTransform.o CMakeFiles/vtkCommon.dir/vtkStructuredData.o CMakeFiles/vtkCommon.dir/vtkStructuredGrid.o CMakeFiles/vtkCommon.dir/vtkStructuredPoints.o CMakeFiles/vtkCommon.dir/vtkTableExtentTranslator.o CMakeFiles/vtkCommon.dir/vtkTensor.o CMakeFiles/vtkCommon.dir/vtkTetra.o CMakeFiles/vtkCommon.dir/vtkTimeStamp.o CMakeFiles/vtkCommon.dir/vtkTimerLog.o CMakeFiles/vtkCommon.dir/vtkTransform.o CMakeFiles/vtkCommon.dir/vtkTransformCollection.o CMakeFiles/vtkCommon.dir/vtkTriangle.o CMakeFiles/vtkCommon.dir/vtkTriangleStrip.o CMakeFiles/vtkCommon.dir/vtkUnsignedCharArray.o CMakeFiles/vtkCommon.dir/vtkUnsignedIntArray.o CMakeFiles/vtkCommon.dir/vtkUnsignedLongArray.o CMakeFiles/vtkCommon.dir/vtkUnsignedShortArray.o CMakeFiles/vtkCommon.dir/vtkUnstructuredGrid.o CMakeFiles/vtkCommon.dir/vtkVersion.o CMakeFiles/vtkCommon.dir/vtkVertex.o CMakeFiles/vtkCommon.dir/vtkViewport.o CMakeFiles/vtkCommon.dir/vtkVoidArray.o CMakeFiles/vtkCommon.dir/vtkVoxel.o CMakeFiles/vtkCommon.dir/vtkWarpTransform.o CMakeFiles/vtkCommon.dir/vtkWedge.o CMakeFiles/vtkCommon.dir/vtkWindow.o CMakeFiles/vtkCommon.dir/vtkWindowLevelLookupTable.o CMakeFiles/vtkCommon.dir/vtkXMLFileOutputWindow.o CMakeFiles/vtkCommon.dir/vtkCommonInstantiator.o -L. -framework AppKit -lpthread -lm 
Undefined symbols:
  "__ZNSt8ios_base4InitC4Ev", referenced from:
      _oft_initCom in vtkAbstractMapper.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [bin/libvtkCommon.dylib] Error 1
make[1]: *** [Common/CMakeFile

Change History (10)

comment:1 Changed 16 years ago by cssdev

Status: newassigned

Mac OS X version? Intel or PPC? XCode version?

comment:2 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

OSX: 9G55 XCode: 3.1.2 both ppc and intel

comment:3 Changed 16 years ago by cssdev

I'll work on #3688, because upgrading to VTK-4.4.2 should make this easier.

comment:4 Changed 16 years ago by cssdev

The error you encountered is due to compiler incompatibility. The gcc4 patches applied for darwin 8 need to be applied on Leopard as well.

comment:5 Changed 16 years ago by cssdev

Please do a port sync a try again. r47882 upgrades the port and fixes several build issues.

comment:6 Changed 16 years ago by cssdev

Cc: david.trem@… added

It still fails when using the default Cocoa graphics:

/opt/local/var/macports/build/_Users_Shared_macports_dports_graphics_vtk/work/VTK/Rendering/vtkCocoaGLView.h:11: error: using typedef-name 'NSOpenGLPixelFormatAttribute' after 'enum'
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:90: error: 'NSOpenGLPixelFormatAttribute' has a previous declaration here
make[2]: *** [Rendering/CMakeFiles/vtkRendering.dir/vtkCocoaRenderWindowInteractor.o] Error 1
make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
make: *** [all] Error 2

comment:7 in reply to:  5 Changed 16 years ago by cssdev

Replying to css@…:

Please do a port sync a try again. r47882 upgrades the port and fixes several build issues.

It looks like I overlooked a couple required Cocoa patches during this change. I'll get restore those and verify vtk builds.

comment:8 Changed 16 years ago by cssdev

r48522 restores the patches and allows VTK to successfully build its libraries.

comment:9 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:10 Changed 15 years ago by cssdev

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.