[f2py] f2py linking errors on OSX
Chris Fonnesbeck
fonnesbeck at gmail.com
Mon Nov 14 16:24:47 EET 2005
Due to memory errors related to f2py in the current svn of scipy_core,
I need to go back and use the standalone f2py and scipy_distutils for
building my extensions. However, when I download, build and install
f2py and scipy_distutils from the f2py website, I get the following
linking errors when trying to build my extensions. I am using gcc 3.3
and g77 3.4 on OSX.
/usr/local/bin/g77 -lcc_dynamic -bundle
build/temp.darwin-8.3.0-Power_Macintosh-2.4/build/src/PyMC/flibmodule.o
build/temp.darwin-8.3.0-Power_Macintosh-2.4/build/src/fortranobject.o
build/temp.darwin-8.3.0-Power_Macintosh-2.4/PyMC/flib.o
build/temp.darwin-8.3.0-Power_Macintosh-2.4/build/src/PyMC/flib-f2pywrappers.o
-L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4 -lg2c -o
build/lib.darwin-8.3.0-Power_Macintosh-2.4/PyMC/flib.so
/usr/bin/ld: Undefined symbols:
_PyArg_ParseTuple
_PyArg_ParseTupleAndKeywords
_PyCObject_AsVoidPtr
_PyCObject_FromVoidPtr
_PyCObject_Type
_PyComplex_Type
_PyDict_GetItemString
_PyDict_SetItemString
_PyErr_Clear
_PyErr_NewException
_PyErr_Occurred
_PyErr_Print
_PyErr_SetString
_PyFloat_Type
_PyImport_ImportModule
_PyInt_Type
_PyModule_GetDict
_PyNumber_Float
_PyNumber_Int
_PyObject_GetAttrString
_PyObject_SetAttrString
_PySequence_Check
_PySequence_GetItem
_PyString_FromString
_PyString_Type
_PyType_IsSubtype
_PyType_Type
_Py_BuildValue
_Py_FatalError
_Py_InitModule4
__Py_NoneStruct
_PyDict_DelItemString
_PyDict_New
_PyErr_Format
_PyExc_AttributeError
_PyExc_RuntimeError
_PyExc_TypeError
_PyObject_Free
_PyString_ConcatAndDel
_Py_FindMethod
__PyObject_New
collect2: ld returned 1 exit status
/usr/bin/ld: Undefined symbols:
_PyArg_ParseTuple
_PyArg_ParseTupleAndKeywords
_PyCObject_AsVoidPtr
_PyCObject_FromVoidPtr
_PyCObject_Type
_PyComplex_Type
_PyDict_GetItemString
_PyDict_SetItemString
_PyErr_Clear
_PyErr_NewException
_PyErr_Occurred
_PyErr_Print
_PyErr_SetString
_PyFloat_Type
_PyImport_ImportModule
_PyInt_Type
_PyModule_GetDict
_PyNumber_Float
_PyNumber_Int
_PyObject_GetAttrString
_PyObject_SetAttrString
_PySequence_Check
_PySequence_GetItem
_PyString_FromString
_PyString_Type
_PyType_IsSubtype
_PyType_Type
_Py_BuildValue
_Py_FatalError
_Py_InitModule4
__Py_NoneStruct
_PyDict_DelItemString
_PyDict_New
_PyErr_Format
_PyExc_AttributeError
_PyExc_RuntimeError
_PyExc_TypeError
_PyObject_Free
_PyString_ConcatAndDel
_Py_FindMethod
__PyObject_New
collect2: ld returned 1 exit status
error: Command "/usr/local/bin/g77 -lcc_dynamic -bundle
build/temp.darwin-8.3.0-Power_Macintosh-2.4/build/src/PyMC/flibmodule.o
build/temp.darwin-8.3.0-Power_Macintosh-2.4/build/src/fortranobject.o
build/temp.darwin-8.3.0-Power_Macintosh-2.4/PyMC/flib.o
build/temp.darwin-8.3.0-Power_Macintosh-2.4/build/src/PyMC/flib-f2pywrappers.o
-L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4 -lg2c -o
build/lib.darwin-8.3.0-Power_Macintosh-2.4/PyMC/flib.so" failed with
exit status 1
--
Chris Fonnesbeck
Atlanta, GA
More information about the f2py-users
mailing list