libkml version 1.2.0-1ubuntu6 failed to build

Bug #1009467 reported by James Page
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libkml (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

During a rebuild test with default-jdk switched to openjdk-7 (as it is in quantal), a build failure was detected for libkml version 1.2.0-1ubuntu7.

See attached log for full build failure details.

https://wiki.ubuntu.com/JavaTeam/Java7Default contains more details of how to diagnose and resolve these types of issues.

This log snippet might also be of interest:

Making all in .
make[5]: Entering directory `/«PKGBUILDDIR»/build/src/kml'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/«PKGBUILDDIR»/build/src/kml'
Making all in base
make[5]: Entering directory `/«PKGBUILDDIR»/build/src/kml/base'
/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 attributes.lo /«PKGBUILDDIR»/./src/kml/base/attributes.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/attributes.cc -fPIC -DPIC -o .libs/attributes.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/attributes.cc -o attributes.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 csv_splitter.lo /«PKGBUILDDIR»/./src/kml/base/csv_splitter.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/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[4]: Leaving directory `/«PKGBUILDDIR»/build/src/kml'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/«PKGBUILDDIR»/build/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/«PKGBUILDDIR»/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/«PKGBUILDDIR»/build'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
────────────────────────────────────────────────────────────────────────────────
Build finished at 20120602-1540

Finished
────────

E: Build failure (dpkg-buildpackage died)

Tags: ftbfs amd64 auto

Related branches

Revision history for this message
James Page (james-page) wrote : Build log
tags: added: amd64 auto ftbfs java7-ftbfs
Revision history for this message
Logan Rosen (logan) wrote : Re: libkml version 1.2.0-1ubuntu7 failed to build with openjdk-7 as default-jdk

James, the Ubuntu version of libkml is outdated. Can you please check if the Debian version of this package (currently 1.3.0~r863-4.1) builds properly with OpenJDK 7? If so, then we might want to file a requestsync.

Revision history for this message
James Page (james-page) wrote :

Logan - that actually looks like a gcc-4.7 bug - I notice doko did a NMU in Debian as well so I'll test and see if we can just sync-up.

Revision history for this message
James Page (james-page) wrote :
Revision history for this message
James Page (james-page) wrote :

FTBFS but with a different set of errors.... might be related to the boost transition but not sure.

Revision history for this message
James Page (james-page) wrote :

As this is not a java7 related FTBFS removing tag.

tags: removed: java7-ftbfs
summary: - libkml version 1.2.0-1ubuntu7 failed to build with openjdk-7 as default-
- jdk
+ libkml version 1.2.0-1ubuntu7 failed to build
summary: - libkml version 1.2.0-1ubuntu7 failed to build
+ libkml version 1.2.0-1ubuntu6 failed to build
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libkml - 1.2.0-1ubuntu7

---------------
libkml (1.2.0-1ubuntu7) quantal; urgency=low

  * Add patch from Debian to fix FTBFS with gcc-4.7 (LP: #1009467).
 -- Ilya Barygin <email address hidden> Sun, 30 Sep 2012 09:28:52 +0400

Changed in libkml (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.