[Gdal-dev] Compilation problems on a Slack machine

Dylan Beaudette dylan at iici.no-ip.org
Fri Mar 11 18:46:09 EST 2005


Hi everyone,

GDAL 1.2.5 compiles fine on a couple of my Debian boxes - both PPC and x86.

However, on an x86 Slack box I am getting the some strange errors in the 
"make" step of compilation.

here are my configure options;
./configure --prefix=/usr --with-png=internal --with-jpeg=internal \
            --with-gif=internal --with-libtiff=internal \
            --with-geotiff=internal --with-libz=internal\
            --without-pg --without-ogdi --with-python \
     --with-threads=yes

and here are the error messages from make:
---------------------------error messages--------------------------------
dylan at atmweb:~/src/gdal-1.2.5$ make
(cd port; make)
make[1]: Entering directory `/home/dylan/src/gdal-1.2.5/port'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `/home/dylan/src/gdal-1.2.5/port'
(cd gcore; make)
make[1]: Entering directory `/home/dylan/src/gdal-1.2.5/gcore'
g++     -c -o gdalopen.o gdalopen.cpp
In file included from gdal_priv.h:190,
                 from gdalopen.cpp:94:
gdal.h:177:22: cpl_port.h: No such file or directory
gdal.h:178:23: cpl_error.h: No such file or directory
In file included from gdal_priv.h:190,
                 from gdalopen.cpp:94:
gdal.h:200: syntax error before `typedef'
....
[more and more and more syntax errors]
-------------------------------------------------------------------------------

it looks like it is breaking after not being able to find two files:
cpl_port.h
cpl_error.h

however:
dylan at atmweb:~/src/gdal-1.2.5$ locate cpl_port
/home/dylan/src/gdal-1.2.5/port/cpl_port.h
....
and
....
dylan at atmweb:~/src/gdal-1.2.5$ locate cpl_error.
/home/dylan/src/gdal-1.2.5/port/cpl_error.h

...would suggest that these files do in fact exist... 

is there something wrong with the include path, or the way in which GCC on 
this machine is looking for header files?

this is an exact copy of the source tree on a working setup.

Any ideas would be appreciated!

-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341



More information about the Gdal-dev mailing list