[DRE-maint] Bug#676207: ruby-nokogiri: FTBFS: xml_xpath_context.c:189:3: error: format not a string literal and no format arguments [-Werror=format-security]

Lucas Nussbaum lucas at lucas-nussbaum.net
Tue Jun 5 11:54:48 UTC 2012


Source: ruby-nokogiri
Version: 1.5.2-1
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20120605 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> make[1]: Entering directory `/«PKGBUILDDIR»/ext/nokogiri'
> make[1]: Leaving directory `/«PKGBUILDDIR»/ext/nokogiri'
> /usr/lib/ruby/1.9.1/rubygems/ext/builder.rb:37:in `block in make': make failed: (Gem::InstallError)
> 
> ["/usr/bin/ruby1.9.1 extconf.rb", "extconf.rb:10: Use RbConfig instead of obsolete and deprecated Config.\nchecking for libxml/parser.h... yes\nchecking for libxslt/xslt.h... yes\nchecking for libexslt/exslt.h... yes\nchecking for iconv_open() in iconv.h... yes\nchecking for xmlParseDoc() in -lxml2... yes\nchecking for xsltParseStylesheetDoc() in -lxslt... yes\nchecking for exsltFuncRegister() in -lexslt... yes\nchecking for xmlHasFeature()... yes\nchecking for xmlFirstElementChild()... yes\nchecking for xmlRelaxNGSetParserStructuredErrors()... yes\nchecking for xmlRelaxNGSetParserStructuredErrors()... yes\nchecking for xmlRelaxNGSetValidStructuredErrors()... yes\nchecking for xmlSchemaSetValidStructuredErrors()... yes\nchecking for xmlSchemaSetParserStructuredErrors()... yes\ncreating Makefile\n", "make", "make[1]: Entering directory `/«PKGBUILDDIR»/ext/nokogiri'\ncompiling xml_processing_instruction.c\ncompiling xml_document_fragment.c\ncompiling xml_dtd.c\ncompiling xslt_stylesheet.c\ncompiling xml_schema.c\ncompiling xml_node.c\ncompiling nokogiri.c\ncompiling html_entity_lookup.c\ncompiling xml_relax_ng.c\ncompiling xml_attr.c\ncompiling xml_element_content.c\ncompiling xml_entity_decl.c\ncompiling xml_sax_push_parser.c\ncompiling xml_reader.c\ncompiling html_sax_push_parser.c\ncompiling xml_element_decl.c\ncompiling html_document.c\ncompiling xml_io.c\nxml_io.c: In function 'io_read_callback':\nxml_io.c:28:3: warning: conversion to 'int' from 'size_t' may alter its value [-Wconversion]\ncompiling xml_comment.c\ncompiling xml_sax_parser.c\ncompiling xml_encoding_handler.c\ncompiling xml_sax_parser_context.c\ncompiling xml_xpath_context.c\nxml_xpath_context.c: In function 'xpath_generic_exception_handler':\nxml_xpath_context.c:189:3: error: format not a string literal and no format arguments [-Werror=format-security]\ncc1: some warnings being treated as errors\nmake[1]: *** [xml_xpath_context.o] Error 1\nmake[1]: Leaving directory `/«PKGBUILDDIR»/ext/nokogiri'\n"]
> 	from /usr/lib/ruby/1.9.1/rubygems/ext/builder.rb:32:in `each'
> 	from /usr/lib/ruby/1.9.1/rubygems/ext/builder.rb:32:in `make'
> 	from /usr/lib/ruby/1.9.1/rubygems/ext/ext_conf_builder.rb:18:in `build'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:62:in `block in build_and_install'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:61:in `chdir'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:61:in `build_and_install'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:75:in `block in build_all_extensions'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:72:in `each'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:72:in `build_all_extensions'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:88:in `<main>'
> /usr/bin/ruby1.9.1 extconf.rb
> extconf.rb:10: Use RbConfig instead of obsolete and deprecated Config.
> checking for libxml/parser.h... yes
> checking for libxslt/xslt.h... yes
> checking for libexslt/exslt.h... yes
> checking for iconv_open() in iconv.h... yes
> checking for xmlParseDoc() in -lxml2... yes
> checking for xsltParseStylesheetDoc() in -lxslt... yes
> checking for exsltFuncRegister() in -lexslt... yes
> checking for xmlHasFeature()... yes
> checking for xmlFirstElementChild()... yes
> checking for xmlRelaxNGSetParserStructuredErrors()... yes
> checking for xmlRelaxNGSetParserStructuredErrors()... yes
> checking for xmlRelaxNGSetValidStructuredErrors()... yes
> checking for xmlSchemaSetValidStructuredErrors()... yes
> checking for xmlSchemaSetParserStructuredErrors()... yes
> creating Makefile
> make
> make[1]: Entering directory `/«PKGBUILDDIR»/ext/nokogiri'
> compiling xml_processing_instruction.c
> compiling xml_document_fragment.c
> compiling xml_dtd.c
> compiling xslt_stylesheet.c
> compiling xml_schema.c
> compiling xml_node.c
> compiling nokogiri.c
> compiling html_entity_lookup.c
> compiling xml_relax_ng.c
> compiling xml_attr.c
> compiling xml_element_content.c
> compiling xml_entity_decl.c
> compiling xml_sax_push_parser.c
> compiling xml_reader.c
> compiling html_sax_push_parser.c
> compiling xml_element_decl.c
> compiling html_document.c
> compiling xml_io.c
> xml_io.c: In function 'io_read_callback':
> xml_io.c:28:3: warning: conversion to 'int' from 'size_t' may alter its value [-Wconversion]
> compiling xml_comment.c
> compiling xml_sax_parser.c
> compiling xml_encoding_handler.c
> compiling xml_sax_parser_context.c
> compiling xml_xpath_context.c
> xml_xpath_context.c: In function 'xpath_generic_exception_handler':
> xml_xpath_context.c:189:3: error: format not a string literal and no format arguments [-Werror=format-security]
> cc1: some warnings being treated as errors
> make[1]: *** [xml_xpath_context.o] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2012/06/05/ruby-nokogiri_1.5.2-1_unstable.log

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.





More information about the Pkg-ruby-extras-maintainers mailing list