[Gdal-dev] undefined python objects
Christopher Fonnesbeck
chris at fonnesbeck.org
Sat Nov 29 18:44:48 EST 2003
I am trying to compile GDAL on OSX with python support, but I get the
following errors on building:
g++ -Wl,-bind_at_load -o .libs/_gdalmodule.so -bundle
.libs/gdal_wrap.o .libs/numpydataset.o .libs/gdalnumeric.o
-L/usr/local/pgsql/lib /usr/local/lib/libdl.dylib
/usr/local/lib/libpng.dylib ../.libs/libgdal.dylib
/usr/local/lib/libodbc.dylib /usr/local/lib/libjpeg.dylib -lpng -lz -lm
-ldl -lpq -L/usr/local/src/gdal/.libs
ld: Undefined symbols:
_PyArg_Parse
_PyArg_ParseTuple
_PyDict_New
_PyDict_Next
_PyDict_SetItem
_PyDict_Type
_PyErr_Clear
_PyErr_SetString
_PyEval_CallObjectWithKeywords
_PyExc_MemoryError
_PyExc_NameError
_PyExc_TypeError
_PyExc_ValueError
_PyFloat_AsDouble
_PyFloat_FromDouble
_PyInt_AsLong
_PyInt_FromLong
_PyInt_Type
_PyList_New
_PyList_SetItem
_PyList_Size
_PyList_Type
_PyModule_GetDict
_PyString_AsString
_PyString_FromString
_PyString_FromStringAndSize
_PyString_Type
_PyType_IsSubtype
_PyType_Type
_Py_BuildValue
_Py_InitModule4
__Py_NoneStruct
make[1]: *** [_gdalmodule.la] Error 1
make: *** [py-module] Error 2
The only advice I have seen so far is to compile without python
support, but thats not really a solution. Python support is the only
reason I am looking to use GDAL.
Thanks in advance,
--
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 Gdal-dev
mailing list