[Gdal-dev] build errors on host's debian

Frank Warmerdam fwarmerdam at gmail.com
Sun Aug 21 16:50:32 EDT 2005


On 8/21/05, William Kyngesburye <woklist at kyngchaos.com> wrote:
> up to here it's fine, then:
> 
> (cd gcore; make)
> make[1]: Entering directory `/home/kyngchaos/src/gdal-1.3.0/gcore'
> /bin/sh ../libtool --mode=compile g++ -DHAVE_MITAB -Wall  -I/home/
> kyngchaos/sw/include   -I../port -I../gcore -I../alg -I../ogr -I../
> ogr/ogrsf_frmts -I/home/kyngchaos/sw/include -I../port -I/home/
> kyngchaos/sw -I/home/kyngchaos/sw/include -I/home/kyngchaos/sw -I/
> home/kyngchaos/sw/include -I/home/kyngchaos/sw -I/home/kyngchaos/sw/
> include -I/home/kyngchaos/sw/include -I/home/kyngchaos/sw/include -I/
> home/kyngchaos/sw -I/home/kyngchaos/sw/include  -c -o gdalopeninfo.o
> gdalopeninfo.cpp
> mkdir .libs
> g++ -DHAVE_MITAB -Wall -I/home/kyngchaos/sw/include -I../port -I../
> gcore -I../alg -I../ogr -I../ogr/ogrsf_frmts -I/home/kyngchaos/sw/
> include -I../port -I/home/kyngchaos/sw -I/home/kyngchaos/sw/include -
> I/home/kyngchaos/sw -I/home/kyngchaos/sw/include -I/home/kyngchaos/sw
> -I/home/kyngchaos/sw/include -I/home/kyngchaos/sw/include -I/home/
> kyngchaos/sw/include -I/home/kyngchaos/sw -I/home/kyngchaos/sw/
> include -c gdalopeninfo.cpp  -fPIC -DPIC -o .libs/gdalopeninfo.o
> In file included from gdal_priv.h:237,
>                   from gdalopeninfo.cpp:36:
> gdal.h:234: syntax error before `('
> gdal.h:235: syntax error before `('
> gdal.h:236: syntax error before `('
> gdal.h:237: syntax error before `('
> gdal.h:238: syntax error before `('
> gdal.h:317: parse error before `*'

William, 

My guess would be that you have an older version of gdal 
in /home/kyngchaos/sw and it's include files are getting used
in preference to the newer version.  Is there any chance you
are using --with-local=/home/kyngchaos/sw configuration option?

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list