[Gdal-dev] Compiling error on Redhat 9 from gdal/ogr cvs source
nsavard at dmsolutions.ca
Fri Jan 16 16:10:10 EST 2004
Thank you. You're it was one of the problem. What files should I
delete from "/opt/mapserver/include" directory relative with "gdal"?
Frank Warmerdam wrote:
> Normand Savard wrote:
>> I trying to compile gdal/ogr from source and I got a compilation
>> error. I checked out the source code from cvs this morning.
>> My configuration setting is:
>> ./configure --prefix=/opt/mapserver/ --with-ogr
>> --with-png=/opt/mapserver/ --with-libz=/opt/mapserver/
>> --with-jpeg=/opt/mapserver/ --with-odbc=/usr/local
>> I did a "make" and I got the error below.
>> I checked in the source code and the "VSIStrerror()" is declared in
>> "cpl_vsi.h" via an "cpl_conv.h" include. The function appears in
>> "cpl_vsisimple.cpp" file.
>> The error is:
>> make: Entering directory `/home/src/gdal-cvs/frmts/hfa'
>> /bin/sh ../../libtool --mode=compile g++ -Wall -O2
>> -I/opt/mapserver/ -I/opt/mapserv
>> er//include -I/opt/mapserver/ -I/opt/mapserver//include
>> -I../../port -I../../gcore-I../../ogr -c -o ../o/hfaband.o hfaband.cpp
>> g++ -Wall -O2 -I/opt/mapserver/ -I/opt/mapserver//include
>> -I/opt/mapserver/ -I/opt/m
>> apserver//include -I../../port -I../../gcore -I../../ogr -c
>> hfaband.cpp -fPIC -DPIC-o ../o/.libs/hfaband.o
>> hfaband.cpp: In member function `CPLErr HFABand::GetRasterBlock(int,
>> hfaband.cpp:878: `VSIStrerror' undeclared (first use this function)
>> hfaband.cpp:878: (Each undeclared identifier is reported only once
>> for each
>> function it appears in.)
>> make: *** [../o/hfaband.o] Error 1
>> make: Leaving directory `/home/src/gdal-cvs/frmts/hfa'
>> make: *** [hfa-install-obj] Error 2
> Any chance you have an old cpl_vsi.h sitting around in
> or /opt/mapserver? If so, try deleting it.
> Andrey, could you review the frmts/hfa GNUmakefile and see if it needs
> the include directives reordered?
> Best regards,
More information about the Gdal-dev