[vtkusers] Problem building VTK (CVS) on Mac OS X with Python

Sander Niemeijer niemeijer at science-and-technology.nl
Mon Feb 2 06:00:53 EST 2004


I'm trying to build the CVS version of VTK with Python wrappings on Mac  
OS X (10.3 Panther) using gcc 3.3.

I have run cmake (version 1.8.1) with the following options:
---
-DCMAKE_INSTALL_PREFIX:PATH=/Users/sander/vtk -DBUILD_TESTING:BOOL=OFF  
-DCMAKE_SKIP_RPATH:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo  
-DVTK_USE_HYBRID:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON  
-DVTK_WRAP_PYTHON:BOOL=ON  
-DPYTHON_EXECUTABLE:FILEPATH=/Users/sander/python/bin/python2.3  
-DPYTHON_INCLUDE_PATH:PATH=/Users/sander/python/include/python2.3  
-DPYTHON_LIBRARY:FILEPATH=/Users/sander/python/lib/python2.3/config/ 
libpython2.3.a  
-DTK_INTERNAL_PATH:PATH=/Users/sander/Projects/VTK/VTK-cvs/Utilities/ 
TclTk/internals/tk8.4
---

Can anybody tell me how I can fix the following error?
---
Building shared library  
/Users/sander/Projects/VTK/build-cvs/bin/libvtkCommonPythonD.dylib...
ld: common symbols not allowed with MH_DYLIB output format with the  
-multi_module option
ld: common symbols not allowed with MH_DYLIB output format with the  
-multi_module option
ld: common symbols not allowed with MH_DYLIB output format with the  
-multi_module option
ld: common symbols not allowed with MH_DYLIB output format with the  
-multi_module option
ld: common symbols not allowed with MH_DYLIB output format with the  
-multi_module option
ld: common symbols not allowed with MH_DYLIB output format with the  
-multi_module option
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_TypeError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_ValueError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_AttributeError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_KeyboardInterrupt (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_RuntimeError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_Exception (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_MemoryError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_MemoryErrorInst (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_RuntimeWarning (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_SyntaxError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_SystemError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_DeprecationWarning (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_OverflowError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_ZeroDivisionError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(object.o)  
definition of common _Py_DivisionWarningFlag (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(pythonrun.o)  
definition of common _Py_VerboseFlag (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_FutureWarning (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_OverflowWarning (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_IndexError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_IOError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_KeyError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_IndentationError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_SystemExit (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_TabError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(pythonrun.o)  
definition of common _Py_DebugFlag (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(pythonrun.o)  
definition of common _Py_FrozenFlag (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(pythonrun.o)  
definition of common _Py_IgnoreEnvironmentFlag (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(pythonrun.o)  
definition of common _Py_InteractiveFlag (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(pythonrun.o)  
definition of common _Py_NoSiteFlag (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_ImportError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_NameError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_PendingDeprecationWarning (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_UnboundLocalError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_StopIteration (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_EOFError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_LookupError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_UnicodeError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_UnicodeDecodeError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_UnicodeEncodeError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_UnicodeTranslateError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_SyntaxWarning (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(parsetok.o)  
definition of common _Py_TabcheckFlag (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_ArithmeticError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_AssertionError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_EnvironmentError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_FloatingPointError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_NotImplementedError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_OSError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_ReferenceError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_StandardError (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_UserWarning (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(exceptions.o)  
definition of common _PyExc_Warning (size 4)
/Users/sander/python/lib/python2.3/config/libpython2.3.a(myreadline.o)  
definition of common _PyOS_ReadlineFunctionPointer (size 4)
/usr/bin/libtool: internal link edit command failed
make[3]: ***  
[/Users/sander/Projects/VTK/build-cvs/bin/libvtkCommonPythonD.dylib]  
Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Common] Error 2
make: *** [default_target] Error 2
---

Regards,
Sander Niemeijer




More information about the vtkusers mailing list