[SciPy-user] Error building statlib.so

Christopher Fonnesbeck chris at fonnesbeck.org
Fri Mar 12 17:07:30 CST 2004


For some reason, stats/statlib refuses to build for me anymore. I did  
not make any changes to this file, yet on the last few build attempts I  
get the error below, which is obviously related to not seeing the  
python framework. However, I have the updated gnufcompiler.py, which  
contains the following for OSX:

opt.extend(["-Wl,-framework","-Wl,Python","-lcc_dynamic","-bundle"])

So, I'm completely at a loss as to why these do not get appended to the  
compile options.

Any ideas?

Thanks,
C.

/usr/local/bin/g77 -lcc_dynamic  
build/temp.darwin-7.2.0-Power_Macintosh-2.3/usr/local/src/scipy/Lib/ 
stats/statlibmodule.o  
build/temp.darwin-7.2.0-Power_Macintosh-2.3/build/src/fortranobject.o  
-L/usr/local/lib/gcc/powerpc-apple-darwin7.0.0/3.4  
-Lbuild/temp.darwin-7.2.0-Power_Macintosh-2.3 -lstatlib -lg2c -o  
build/lib.darwin-7.2.0-Power_Macintosh-2.3/stats/statlib.so
/usr/bin/ld: Undefined symbols:
_PyArg_ParseTuple
_PyArg_ParseTupleAndKeywords
_PyCObject_AsVoidPtr
_PyCObject_Type
_PyComplex_Type
_PyDict_GetItemString
_PyDict_SetItemString
_PyErr_Clear
_PyErr_NewException
_PyErr_Occurred
_PyErr_Print
_PyErr_SetString
_PyImport_ImportModule
_PyInt_Type
_PyModule_GetDict
_PyNumber_Int
_PyObject_GetAttrString
_PyObject_IsTrue
_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
_MAIN__
collect2: ld returned 1 exit status
error: Command "/usr/local/bin/g77 -lcc_dynamic  
build/temp.darwin-7.2.0-Power_Macintosh-2.3/usr/local/src/scipy/Lib/ 
stats/statlibmodule.o  
build/temp.darwin-7.2.0-Power_Macintosh-2.3/build/src/fortranobject.o  
-L/usr/local/lib/gcc/powerpc-apple-darwin7.0.0/3.4  
-Lbuild/temp.darwin-7.2.0-Power_Macintosh-2.3 -lstatlib -lg2c -o  
build/lib.darwin-7.2.0-Power_Macintosh-2.3/stats/statlib.so" failed  
with exit status 1

C.

--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia



More information about the SciPy-user mailing list