<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi.<div><br class="webkit-block-placeholder"></div><div>I've been struggling to get gdalimport.py to run and first thought that I didn't have python support included. I've built the latest source using the following configure setup:</div><div><br class="webkit-block-placeholder"></div><div><div>./configure --prefix=/usr/local/gdal-1.4.4 \ </div><div> --libdir=/usr/local/lib \ </div><div> --with-netcdf=/usr/local/netcdf-3.6.1 \ </div><div> --with-jpeg=internal \ </div><div> --with-png=internal \ </div><div> --with-libtiff=internal \ </div><div> --with-geotiff=internal \ </div><div> --with-geos=yes \ </div><div> --with-perl \ </div><div> --with-php \ </div><div> --with-python </div></div><div><br class="webkit-block-placeholder"></div><div>This seems to build ok but when I run 'sudo make install', the install blows up. This occurs apparently at the php, perl install part, after python</div><div><br class="webkit-block-placeholder"></div><div><div># ugh! spurius relinking leaves a file owned by root into .libs/.</div><div>rm -f .libs/*.soT</div><div>(cd swig; make install)</div><div>for dir in php perl ; do (cd $dir; make install) || exit; done</div><div>g++ -I../../port -I../../gcore -I../../alg -I../../ogr `php-config --includes` -fpic -c gdal_wrap.cpp</div><div>gdal_wrap.cpp:1: warning: -fpic is not supported; -fPIC assumed</div><div>gdal_wrap.cpp:1040: error: ‘zend_property_reference’ was not declared in this scope</div><div>gdal_wrap.cpp:1040: error: ‘property_reference’ was not declared in this scope</div><div>gdal_wrap.cpp:1040: error: expected primary-expression before ‘*’ token</div><div>gdal_wrap.cpp:1040: error: ‘value’ was not declared in this scope</div><div>gdal_wrap.cpp:1040: error: initializer expression list treated as compound expression</div><div>gdal_wrap.cpp:1041: error: ‘zend_property_reference’ was not declared in this scope</div><div>gdal_wrap.cpp:1041: error: ‘property_reference’ was not declared in this scope</div><div>gdal_wrap.cpp:1041: error: expected primary-expression before ‘*’ token</div><div>gdal_wrap.cpp:1041: error: ‘value’ was not declared in this scope</div><div>gdal_wrap.cpp:1041: error: initializer expression list treated as compound expression</div><div>gdal_wrap.cpp:1042: error: ‘zend_property_reference’ was not declared in this scope</div><div><br class="webkit-block-placeholder"></div><div>..... long list of stuff like this then</div><div><br class="webkit-block-placeholder"></div><div><div>gdal_wrap.cpp: In function ‘int zm_startup_gdal(int, int)’:</div><div>gdal_wrap.cpp:8127: error: cannot convert ‘pval’ to ‘_zend_function*’ in assignment</div><div>gdal_wrap.cpp:8127: error: invalid conversion from ‘int’ to ‘_zend_function*’</div><div>gdal_wrap.cpp:8131: error: cannot convert ‘pval’ to ‘_zend_function*’ in assignment</div><div>gdal_wrap.cpp:8131: error: invalid conversion from ‘int’ to ‘_zend_function*’</div><div>gdal_wrap.cpp:8135: error: cannot convert ‘pval’ to ‘_zend_function*’ in assignment</div><div>gdal_wrap.cpp:8135: error: invalid conversion from ‘int’ to ‘_zend_function*’</div><div>gdal_wrap.cpp:8139: error: cannot convert ‘pval’ to ‘_zend_function*’ in assignment</div><div>gdal_wrap.cpp:8139: error: invalid conversion from ‘int’ to ‘_zend_function*’</div><div>gdal_wrap.cpp:8143: error: cannot convert ‘pval’ to ‘_zend_function*’ in assignment</div><div>gdal_wrap.cpp:8143: error: invalid conversion from ‘int’ to ‘_zend_function*’</div><div>gdal_wrap.cpp:8147: error: cannot convert ‘pval’ to ‘_zend_function*’ in assignment</div><div>gdal_wrap.cpp:8147: error: invalid conversion from ‘int’ to ‘_zend_function*’</div><div>make[2]: *** [gdal_wrap.o] Error 1</div><div>make[1]: *** [install] Error 2</div><div>make: *** [install-actions] Error 2</div><div>Neptune-2:gdal-1.4.4 hellyj$ </div></div></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>When I look at the install directory, there are executables there and I can run gdalimport.py but still get the error:</div><div><br class="webkit-block-placeholder"></div><div><div>Neptune-2:~ hellyj$ gdalimport.py</div><div>Traceback (most recent call last):</div><div> File "/usr/local/gdal-1.4.1/bin/gdalimport.py", line 49, in <module></div><div> import gdal</div><div>ImportError: No module named gdal</div><div>Neptune-2:~ hellyj$ </div><div><br class="webkit-block-placeholder"></div></div><div><br class="webkit-block-placeholder"></div><div>This is what I originally was trying to solve by rebuilding using the --with-python argument. Any ideas what's going wrong?</div><div><br class="webkit-block-placeholder"></div><div><br></div><div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Courier New; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">Cheers.</span></div><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">--------------</span></div><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">John Helly, University of California, San Diego</span></div><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">San Diego Supercomputer Center 9500 Gilman Dr. Mail Code 0527, La Jolla CA 92093-0505</span></div><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">Phone: Voice +01 760 840 8660 mobile / stonesteps (Skype) / stonesteps7 (iChat)</span></div><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; "><a href="http://www.sdsc.edu/~hellyj">http://www.sdsc.edu/~hellyj</a></span></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></div></body></html>