<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Built gdal with python support -
error</title></head><body>
<div>Hi everybody</div>
<div><br></div>
<div>I want to build a Python support for Gdal on OS X.</div>
<div>Python version is 2.3.</div>
<div><br></div>
<div>I have this error message in make:</div>
<div><br></div>
<blockquote>(cd pymod; make)</blockquote>
<blockquote>GNUmakefile:35: warning: overriding commands for target
`_gdalmodule.la'</blockquote>
<blockquote>GNUmakefile:29: warning: ignoring old commands for target
`_gdalmodule.la'</blockquote>
<blockquote>/bin/sh ../libtool --mode=compile gcc&nbsp;&nbsp; -Wall&nbsp;
-O3 -fno-common -no-cpp-precomp -DCPL_MULTIPROC_PTHREAD&nbsp;&nbsp;
-I../port -I../gcore -I../ogr
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3 -I../port -I/usr/local/grasslib
-I/usr/local/grasslib/include -I/usr/local/grasslib
-I/usr/local/grasslib/include&nbsp;&nbsp; -c -o gdal_wrap.o
gdal_wrap.c</blockquote>
<blockquote>&nbsp;gcc -Wall -O3 -fno-common -no-cpp-precomp
-DCPL_MULTIPROC_PTHREAD -I../port -I../gcore -I../ogr
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3 -I../port -I/usr/local/grasslib
-I/usr/local/grasslib/include -I/usr/local/grasslib
-I/usr/local/grasslib/include -c gdal_wrap.c&nbsp; -fno-common -DPIC
-o .libs/gdal_wrap.o</blockquote>
<blockquote>In file included from
/Library/Frameworks/Python.framework/Versions/Current/include/python2<span
></span>.3/Python.h:70,</blockquote>
<blockquote
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from
gdal_wrap.c:44:</blockquote>
<blockquote
>/Library/Frameworks/Python.framework/Versions/Current/include/python<span
></span>2.3/objimpl.h:255: warning: use of `long double' type; its
size may change in a future release</blockquote>
<blockquote
>/Library/Frameworks/Python.framework/Versions/Current/include/python<span
></span>2.3/objimpl.h:255: warning: (Long double usage is reported
only once for each file.</blockquote>
<blockquote
>/Library/Frameworks/Python.framework/Versions/Current/include/python<span
></span>2.3/objimpl.h:255: warning: To disable this warning, use
-Wno-long-double.)</blockquote>
<blockquote>gdal_wrap.c: In function `ptrset':</blockquote>
<blockquote>gdal_wrap.c:868: warning: unused variable
`obj'</blockquote>
<blockquote>gdal_wrap.c: In function `ptradd':</blockquote>
<blockquote>gdal_wrap.c:954: warning: `obj' might be used
uninitialized in this function</blockquote>
<blockquote>gdal_wrap.c: At top level:</blockquote>
<blockquote>gdal_wrap.c:211: warning: `SWIG_addvarlink' defined but
not used</blockquote>
<blockquote>&nbsp;gcc -Wall -O3 -fno-common -no-cpp-precomp
-DCPL_MULTIPROC_PTHREAD -I../port -I../gcore -I../ogr
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3 -I../port -I/usr/local/grasslib
-I/usr/local/grasslib/include -I/usr/local/grasslib
-I/usr/local/grasslib/include -c gdal_wrap.c -o gdal_wrap.o
&gt;/dev/null 2&gt;&amp;1</blockquote>
<blockquote>/bin/sh ../libtool --mode=compile g++&nbsp;&nbsp; -Wall&nbsp;
-O3 -fno-common -no-cpp-precomp -Wno-long-double
-DCPL_MULTIPROC_PTHREAD&nbsp;&nbsp; -I../port -I../gcore -I../ogr
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3 -I../port -I/usr/local/grasslib
-I/usr/local/grasslib/include -I/usr/local/grasslib
-I/usr/local/grasslib/include&nbsp;&nbsp; -c -o numpydataset.o
numpydataset.cpp</blockquote>
<blockquote>&nbsp;g++ -Wall -O3 -fno-common -no-cpp-precomp
-Wno-long-double -DCPL_MULTIPROC_PTHREAD -I../port -I../gcore -I../ogr
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3 -I../port -I/usr/local/grasslib
-I/usr/local/grasslib/include -I/usr/local/grasslib
-I/usr/local/grasslib/include -c numpydataset.cpp&nbsp; -fno-common
-DPIC -o .libs/numpydataset.o</blockquote>
<blockquote>&nbsp;g++ -Wall -O3 -fno-common -no-cpp-precomp
-Wno-long-double -DCPL_MULTIPROC_PTHREAD -I../port -I../gcore -I../ogr
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3 -I../port -I/usr/local/grasslib
-I/usr/local/grasslib/include -I/usr/local/grasslib
-I/usr/local/grasslib/include -c numpydataset.cpp -o numpydataset.o
&gt;/dev/null 2&gt;&amp;1</blockquote>
<blockquote>/bin/sh ../libtool --mode=compile g++&nbsp;&nbsp; -Wall&nbsp;
-O3 -fno-common -no-cpp-precomp -Wno-long-double
-DCPL_MULTIPROC_PTHREAD&nbsp;&nbsp; -I../port -I../gcore -I../ogr
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3 -I../port -I/usr/local/grasslib
-I/usr/local/grasslib/include -I/usr/local/grasslib
-I/usr/local/grasslib/include&nbsp;&nbsp; -c -o gdalnumeric.o
gdalnumeric.cpp</blockquote>
<blockquote>&nbsp;g++ -Wall -O3 -fno-common -no-cpp-precomp
-Wno-long-double -DCPL_MULTIPROC_PTHREAD -I../port -I../gcore -I../ogr
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3 -I../port -I/usr/local/grasslib
-I/usr/local/grasslib/include -I/usr/local/grasslib
-I/usr/local/grasslib/include -c gdalnumeric.cpp&nbsp; -fno-common
-DPIC -o .libs/gdalnumeric.o</blockquote>
<blockquote>&nbsp;g++ -Wall -O3 -fno-common -no-cpp-precomp
-Wno-long-double -DCPL_MULTIPROC_PTHREAD -I../port -I../gcore -I../ogr
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3
-I/Library/Frameworks/Python.framework/Versions/Current/include/pytho<span
></span>n2.3 -I../port -I/usr/local/grasslib
-I/usr/local/grasslib/include -I/usr/local/grasslib
-I/usr/local/grasslib/include -c gdalnumeric.cpp -o gdalnumeric.o
&gt;/dev/null 2&gt;&amp;1</blockquote>
<blockquote>/bin/sh ../libtool --mode=link&nbsp; g++ gdal_wrap.lo
numpydataset.lo gdalnumeric.lo
-L/Library/Frameworks/Python.framework/Versions/Current/lib/python2.3
-L/Library/Frameworks/Python.framework/Versions/Current/lib/python2.3
../libgdal.la -o _gdalmodule.la \</blockquote>
<blockquote>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -rpath
/Library/Frameworks/Python.framework/Versions/Current/lib/python2.3/s<span
></span>ite-packages \</blockquote>
<blockquote>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -no-undefined
\</blockquote>
<blockquote>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -avoid-version
\</blockquote>
<blockquote>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-module</blockquote>
<blockquote>g++ -Wl,-bind_at_load&nbsp; -o .libs/_gdalmodule.so
-bundle&nbsp; .libs/gdal_wrap.o .libs/numpydataset.o
.libs/gdalnumeric.o&nbsp; -L/usr/local/pgsql/lib
/usr/local/grasslib/lib/libdl.dylib
/usr/local/grasslib/lib/libjpeg.dylib
/usr/local/grasslib/lib/libodbc.dylib -L/usr/local/grasslib/lib
-L/usr/local/grasslib /usr/local/grasslib/lib/libproj.dylib
-L/usr/local/grasslib/src
-L/Library/Frameworks/Python.framework/Versions/Current/lib/python2.3
../.libs/libgdal.dylib</blockquote>
<blockquote>ld: Undefined symbols:</blockquote>
<blockquote>_PyArg_Parse</blockquote>
<blockquote>_PyArg_ParseTuple</blockquote>
<blockquote>_PyDict_New</blockquote>
<blockquote>_PyDict_Next</blockquote>
<blockquote>_PyDict_SetItem</blockquote>
<blockquote>_PyDict_Type</blockquote>
<blockquote>_PyErr_Clear</blockquote>
<blockquote>_PyErr_SetString</blockquote>
<blockquote>_PyEval_CallObjectWithKeywords</blockquote>
<blockquote>_PyExc_MemoryError</blockquote>
<blockquote>_PyExc_NameError</blockquote>
<blockquote>_PyExc_TypeError</blockquote>
<blockquote>_PyExc_ValueError</blockquote>
<blockquote>_PyFloat_AsDouble</blockquote>
<blockquote>_PyFloat_FromDouble</blockquote>
<blockquote>_PyInt_AsLong</blockquote>
<blockquote>_PyInt_FromLong</blockquote>
<blockquote>_PyInt_Type</blockquote>
<blockquote>_PyList_New</blockquote>
<blockquote>_PyList_SetItem</blockquote>
<blockquote>_PyList_Size</blockquote>
<blockquote>_PyList_Type</blockquote>
<blockquote>_PyModule_GetDict</blockquote>
<blockquote>_PyObject_AsWriteBuffer</blockquote>
<blockquote>_PyString_AsString</blockquote>
<blockquote>_PyString_FromString</blockquote>
<blockquote>_PyString_FromStringAndSize</blockquote>
<blockquote>_PyString_Type</blockquote>
<blockquote>_PyTuple_Size</blockquote>
<blockquote>_PyTuple_Type</blockquote>
<blockquote>_PyType_IsSubtype</blockquote>
<blockquote>_PyType_Type</blockquote>
<blockquote>_Py_BuildValue</blockquote>
<blockquote>_Py_InitModule4</blockquote>
<blockquote>__Py_NoneStruct</blockquote>
<blockquote>make[1]: *** [_gdalmodule.la] Error 1</blockquote>
<blockquote>make: *** [py-module] Error 2</blockquote>
<blockquote><br></blockquote>
<blockquote><br></blockquote>
<div>There is a problem in gdalwarp.c with some variables...</div>
<div>Thanx for help</div>
<div><br></div>
<div><br></div>
</body>
</html>