[Gdal-dev] Compliation error with 1.2.0 on Linux

Frank Warmerdam warmerdam at pobox.com
Fri Mar 12 23:32:17 EST 2004


Susumu TANIMURA wrote:
> Hi, there.
> 
> Compilation with gdal 1.2.0 was failed on VineLinux2.6r4.
> Dose anyone give me some advices?
> 
> The version of compilor is:
> gcc-2.95.3-2vl22
> gcc-cpp-2.95.3-2vl22
> gcc-c++-2.95.3-2vl22
> 
> The error messages are followed.
> 
> g++ -Wall -O2 -m486 -fno-strength-reduce -I/usr/include -I/usr/include/include -I/usr/include -I/usr/include/include -I/usr/include -I/usr/include/include -I../port -I../gcore -I../ogr -I../port -c gdal_misc.cpp  -fPIC -DPIC -DPIC -o gdal_misc.o
> gdal_misc.cpp: In function `double GDALPackedDMSToDec(double)':
> gdal_misc.cpp:1543: implicit declaration of function `int CPLPackedDMSToDec(...)'
> gdal_misc.cpp: In function `double GDALDecToPackedDMS(double)':
> gdal_misc.cpp:1559: implicit declaration of function `int CPLDecToPackedDMS(...)'
> make[1]: *** [gdal_misc.o] Error 1
> make[1]: Leaving directory `/home/hoge/rpm/BUILD/gdal-1.2.0/gcore'
> make: *** [core-target] Error 2
> Bad exit status from /var/tmp/rpm-tmp.71895 (%build)
> 
> Since I joined this mailing-list today, I apologize if there is
> something imperfect.  When further information is required, please
> tell me.

Susumu,

It would appear you have an older gdal.h in /usr/local/include and that
is being used in preference to the copy in the ../gcore.  Hmm, when I build
the include path looks like " -I../port -I../gcore -I../ogr -I../port".  I
wonder how all that extra stuff about -I/usr/include and so forth got in
there.  Anything special about how you configured?

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