Bug#667247: libkml: ftbfs with GCC-4.7
Matthias Klose
doko at debian.org
Tue Apr 3 23:10:17 UTC 2012
Package: libkml
Version: 1.3.0~r863-4
Severity: important
Tags: sid wheezy
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.7
The package fails to build in a test rebuild on at least amd64 with
gcc-4.7/g++-4.7, but succeeds to build with gcc-4.6/g++-4.6. The
severity of this report may be raised before the wheezy release.
file_posix.cc:56:33: error: 'unlink' was not declared in this scope
The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/libkml_1.3.0~r863-4_unstable-gcc47.log
The last lines of the build log are at the end of this report.
Some hints on fixing these issues can be found at
http://gcc.gnu.org/gcc-4.7/porting_to.html
To build with GCC 4.7, either set CC=gcc-4.7 CXX=g++-4.7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
[...]
libtool: compile: g++ -DHAVE_CONFIG_H -I. "-I/«PKGBUILDDIR»/./src/kml/base" -I../../.. "-I/«PKGBUILDDIR»/./src" "-I/«PKGBUILDDIR»/./third_party/boost_1_34_1" "-I/«PKGBUILDDIR»/./third_party/googletest-r108/include" "-I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib" -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c "/«PKGBUILDDIR»/./src/kml/base/csv_splitter.cc" -fPIC -DPIC -o .libs/csv_splitter.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. "-I/«PKGBUILDDIR»/./src/kml/base" -I../../.. "-I/«PKGBUILDDIR»/./src" "-I/«PKGBUILDDIR»/./third_party/boost_1_34_1" "-I/«PKGBUILDDIR»/./third_party/googletest-r108/include" "-I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib" -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c "/«PKGBUILDDIR»/./src/kml/base/csv_splitter.cc" -o csv_splitter.o >/dev/null 2>&1
/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I/«PKGBUILDDIR»/./src/kml/base -I../../.. -I/«PKGBUILDDIR»/./src -I/«PKGBUILDDIR»/./third_party/boost_1_34_1 -I/«PKGBUILDDIR»/./third_party/googletest-r108/include -I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c -o date_time.lo /«PKGBUILDDIR»/./src/kml/base/date_time.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. "-I/«PKGBUILDDIR»/./src/kml/base" -I../../.. "-I/«PKGBUILDDIR»/./src" "-I/«PKGBUILDDIR»/./third_party/boost_1_34_1" "-I/«PKGBUILDDIR»/./third_party/googletest-r108/include" "-I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib" -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c "/«PKGBUILDDIR»/./src/kml/base/date_time.cc" -fPIC -DPIC -o .libs/date_time.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. "-I/«PKGBUILDDIR»/./src/kml/base" -I../../.. "-I/«PKGBUILDDIR»/./src" "-I/«PKGBUILDDIR»/./third_party/boost_1_34_1" "-I/«PKGBUILDDIR»/./third_party/googletest-r108/include" "-I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib" -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c "/«PKGBUILDDIR»/./src/kml/base/date_time.cc" -o date_time.o >/dev/null 2>&1
/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I/«PKGBUILDDIR»/./src/kml/base -I../../.. -I/«PKGBUILDDIR»/./src -I/«PKGBUILDDIR»/./third_party/boost_1_34_1 -I/«PKGBUILDDIR»/./third_party/googletest-r108/include -I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c -o expat_handler_ns.lo /«PKGBUILDDIR»/./src/kml/base/expat_handler_ns.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. "-I/«PKGBUILDDIR»/./src/kml/base" -I../../.. "-I/«PKGBUILDDIR»/./src" "-I/«PKGBUILDDIR»/./third_party/boost_1_34_1" "-I/«PKGBUILDDIR»/./third_party/googletest-r108/include" "-I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib" -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c "/«PKGBUILDDIR»/./src/kml/base/expat_handler_ns.cc" -fPIC -DPIC -o .libs/expat_handler_ns.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. "-I/«PKGBUILDDIR»/./src/kml/base" -I../../.. "-I/«PKGBUILDDIR»/./src" "-I/«PKGBUILDDIR»/./third_party/boost_1_34_1" "-I/«PKGBUILDDIR»/./third_party/googletest-r108/include" "-I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib" -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c "/«PKGBUILDDIR»/./src/kml/base/expat_handler_ns.cc" -o expat_handler_ns.o >/dev/null 2>&1
/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I/«PKGBUILDDIR»/./src/kml/base -I../../.. -I/«PKGBUILDDIR»/./src -I/«PKGBUILDDIR»/./third_party/boost_1_34_1 -I/«PKGBUILDDIR»/./third_party/googletest-r108/include -I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c -o expat_parser.lo /«PKGBUILDDIR»/./src/kml/base/expat_parser.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. "-I/«PKGBUILDDIR»/./src/kml/base" -I../../.. "-I/«PKGBUILDDIR»/./src" "-I/«PKGBUILDDIR»/./third_party/boost_1_34_1" "-I/«PKGBUILDDIR»/./third_party/googletest-r108/include" "-I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib" -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c "/«PKGBUILDDIR»/./src/kml/base/expat_parser.cc" -fPIC -DPIC -o .libs/expat_parser.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. "-I/«PKGBUILDDIR»/./src/kml/base" -I../../.. "-I/«PKGBUILDDIR»/./src" "-I/«PKGBUILDDIR»/./third_party/boost_1_34_1" "-I/«PKGBUILDDIR»/./third_party/googletest-r108/include" "-I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib" -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c "/«PKGBUILDDIR»/./src/kml/base/expat_parser.cc" -o expat_parser.o >/dev/null 2>&1
/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I/«PKGBUILDDIR»/./src/kml/base -I../../.. -I/«PKGBUILDDIR»/./src -I/«PKGBUILDDIR»/./third_party/boost_1_34_1 -I/«PKGBUILDDIR»/./third_party/googletest-r108/include -I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c -o file.lo /«PKGBUILDDIR»/./src/kml/base/file.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. "-I/«PKGBUILDDIR»/./src/kml/base" -I../../.. "-I/«PKGBUILDDIR»/./src" "-I/«PKGBUILDDIR»/./third_party/boost_1_34_1" "-I/«PKGBUILDDIR»/./third_party/googletest-r108/include" "-I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib" -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c "/«PKGBUILDDIR»/./src/kml/base/file.cc" -fPIC -DPIC -o .libs/file.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. "-I/«PKGBUILDDIR»/./src/kml/base" -I../../.. "-I/«PKGBUILDDIR»/./src" "-I/«PKGBUILDDIR»/./third_party/boost_1_34_1" "-I/«PKGBUILDDIR»/./third_party/googletest-r108/include" "-I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib" -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c "/«PKGBUILDDIR»/./src/kml/base/file.cc" -o file.o >/dev/null 2>&1
/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I/«PKGBUILDDIR»/./src/kml/base -I../../.. -I/«PKGBUILDDIR»/./src -I/«PKGBUILDDIR»/./third_party/boost_1_34_1 -I/«PKGBUILDDIR»/./third_party/googletest-r108/include -I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c -o file_posix.lo /«PKGBUILDDIR»/./src/kml/base/file_posix.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. "-I/«PKGBUILDDIR»/./src/kml/base" -I../../.. "-I/«PKGBUILDDIR»/./src" "-I/«PKGBUILDDIR»/./third_party/boost_1_34_1" "-I/«PKGBUILDDIR»/./third_party/googletest-r108/include" "-I/«PKGBUILDDIR»/./third_party/zlib-1.2.3/contrib" -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -ansi -pedantic -fno-rtti -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c "/«PKGBUILDDIR»/./src/kml/base/file_posix.cc" -fPIC -DPIC -o .libs/file_posix.o
/«PKGBUILDDIR»/./src/kml/base/file_posix.cc: In static member function 'static bool kmlbase::File::Delete(const string&)':
/«PKGBUILDDIR»/./src/kml/base/file_posix.cc:56:33: error: 'unlink' was not declared in this scope
/«PKGBUILDDIR»/./src/kml/base/file_posix.cc: In static member function 'static bool kmlbase::File::CreateNewTempFile(std::string*)':
/«PKGBUILDDIR»/./src/kml/base/file_posix.cc:68:11: error: 'close' was not declared in this scope
/«PKGBUILDDIR»/./src/kml/base/file_posix.cc: In static member function 'static bool kmlbase::File::Delete(const string&)':
/«PKGBUILDDIR»/./src/kml/base/file_posix.cc:57:1: warning: control reaches end of non-void function [-Wreturn-type]
make[5]: *** [file_posix.lo] Error 1
make[5]: Leaving directory `/«PKGBUILDDIR»/build/src/kml/base'
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
More information about the Pkg-grass-devel
mailing list