[DebianGIS-dev] Bug#541092: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Tue Aug 11 17:18:04 UTC 2009


Package: libterralib
Version: 3.3.1-2
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4

Your package fails to build with GCC 4.4, which has cleaned up some more
C++ headers.  You always have to #include headers directly and cannot
rely for things to be included indirectly.

You can reproduce this problem with gcc-4.4/g++-4.4 from unstable.

> Automatic build of libterralib_3.3.1-2 on em64t by sbuild/amd64 0.53
...
> g++ -c -pipe -g -Wall -W -O2 -fPIC  -DPDI_AS_DLL -DNDEBUG -I/usr/share/qt3/mkspecs/default -I. -I../../src/terralib/kernel -I../../src/terralib/functions -I../../src/terralib/image_processing -I../../src/terralib/image_processing/data_structs -I/usr/include/geotiff -o ../Release/.obj/libpdi/TePDIMixModelSpectralBand.o ../../src/terralib/image_processing/TePDIMixModelSpectralBand.cpp
> g++ -c -pipe -g -Wall -W -O2 -fPIC  -DPDI_AS_DLL -DNDEBUG -I/usr/share/qt3/mkspecs/default -I. -I../../src/terralib/kernel -I../../src/terralib/functions -I../../src/terralib/image_processing -I../../src/terralib/image_processing/data_structs -I/usr/include/geotiff -o ../Release/.obj/libpdi/TePDIMixModelSpectralBandList.o ../../src/terralib/image_processing/TePDIMixModelSpectralBandList.cpp
> ../../src/terralib/image_processing/TePDIMixModelSpectralBandList.cpp: In member function 'bool TePDIMixModelSpectralBandList::loadSpectralBandsFromFile(std::string)':
> ../../src/terralib/image_processing/TePDIMixModelSpectralBandList.cpp:20: error: 'fopen' was not declared in this scope
> ../../src/terralib/image_processing/TePDIMixModelSpectralBandList.cpp:30: error: 'fscanf' was not declared in this scope
> ../../src/terralib/image_processing/TePDIMixModelSpectralBandList.cpp:34: error: 'fclose' was not declared in this scope
> make[2]: *** [../Release/.obj/libpdi/TePDIMixModelSpectralBandList.o] Error 1
> make[2]: Leaving directory `/build/tbm/libterralib-3.3.1/terralibx/image_processing'
> make[1]: *** [terralibpdi] Error 2
> make[1]: Leaving directory `/build/tbm/libterralib-3.3.1/terralibx/image_processing'
> make: *** [common-build-arch] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the Pkg-grass-devel mailing list