[DRE-maint] Bug#676194: ruby-xmlparser: FTBFS: xmlparser.c:1783:2: error: format not a string literal and no format arguments [-Werror=format-security]

Lucas Nussbaum lucas at lucas-nussbaum.net
Tue Jun 5 11:55:15 UTC 2012


Source: ruby-xmlparser
Version: 0.7.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'
> make[1]: Leaving directory `/«PKGBUILDDIR»/ext'
> /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", "checking for expat.h... yes\nchecking for XML_ParserCreate() in -lexpat... yes\nchecking for XML_SetNotStandaloneHandler()... yes\nchecking for XML_SetParamEntityParsing()... yes\nchecking for XML_SetDoctypeDeclHandler()... yes\nchecking for XML_ParserReset()... yes\nchecking for XML_SetSkippedEntityHandler()... yes\nchecking for XML_GetFeatureList()... yes\nchecking for XML_UseForeignDTD()... yes\nchecking for XML_GetIdAttributeIndex()... yes\nchecking for ntohl() in -lsocket... no\ncreating Makefile\n", "make", "make[1]: Entering directory `/«PKGBUILDDIR»/ext'\ncompiling xmlparser.c\nxmlparser.c: In function 'XMLParser_mark':\nxmlparser.c:185:16: warning: variable 'parent' set but not used [-Wunused-but-set-variable]\nxmlparser.c: In function 'iterExternalEntityRefHandler':\nxmlparser.c:372:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]\nxmlparser.c: In function 'myExternalEntityRefHandler':\nxmlparser.c:832:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]\nxmlparser.c: In function 'myStartCdataSectionHandler':\nxmlparser.c:860:14: warning: variable 'parser' set but not used [-Wunused-but-set-variable]\nxmlparser.c: In function 'myEndCdataSectionHandler':\nxmlparser.c:868:14: warning: variable 'parser' set but not used [-Wunused-but-set-variable]\nxmlparser.c: In function 'myNotStandaloneHandler':\nxmlparser.c:898:14: warning: variable 'parser' set but not used [-Wunused-but-set-variable]\nxmlparser.c: In function 'myEndDoctypeDeclHandler':\nxmlparser.c:939:14: warning: variable 'parser' set but not used [-Wunused-but-set-variable]\nxmlparser.c: In function 'XMLParser_parse':\nxmlparser.c:1783:2: error: format not a string literal and no format arguments [-Werror=format-security]\nxmlparser.c:1832:5: error: format not a string literal and no format arguments [-Werror=format-security]\ncc1: some warnings being treated as errors\nmake[1]: *** [xmlparser.o] Error 1\nmake[1]: Leaving directory `/«PKGBUILDDIR»/ext'\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
> checking for expat.h... yes
> checking for XML_ParserCreate() in -lexpat... yes
> checking for XML_SetNotStandaloneHandler()... yes
> checking for XML_SetParamEntityParsing()... yes
> checking for XML_SetDoctypeDeclHandler()... yes
> checking for XML_ParserReset()... yes
> checking for XML_SetSkippedEntityHandler()... yes
> checking for XML_GetFeatureList()... yes
> checking for XML_UseForeignDTD()... yes
> checking for XML_GetIdAttributeIndex()... yes
> checking for ntohl() in -lsocket... no
> creating Makefile
> make
> make[1]: Entering directory `/«PKGBUILDDIR»/ext'
> compiling xmlparser.c
> xmlparser.c: In function 'XMLParser_mark':
> xmlparser.c:185:16: warning: variable 'parent' set but not used [-Wunused-but-set-variable]
> xmlparser.c: In function 'iterExternalEntityRefHandler':
> xmlparser.c:372:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
> xmlparser.c: In function 'myExternalEntityRefHandler':
> xmlparser.c:832:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
> xmlparser.c: In function 'myStartCdataSectionHandler':
> xmlparser.c:860:14: warning: variable 'parser' set but not used [-Wunused-but-set-variable]
> xmlparser.c: In function 'myEndCdataSectionHandler':
> xmlparser.c:868:14: warning: variable 'parser' set but not used [-Wunused-but-set-variable]
> xmlparser.c: In function 'myNotStandaloneHandler':
> xmlparser.c:898:14: warning: variable 'parser' set but not used [-Wunused-but-set-variable]
> xmlparser.c: In function 'myEndDoctypeDeclHandler':
> xmlparser.c:939:14: warning: variable 'parser' set but not used [-Wunused-but-set-variable]
> xmlparser.c: In function 'XMLParser_parse':
> xmlparser.c:1783:2: error: format not a string literal and no format arguments [-Werror=format-security]
> xmlparser.c:1832:5: error: format not a string literal and no format arguments [-Werror=format-security]
> cc1: some warnings being treated as errors
> make[1]: *** [xmlparser.o] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2012/06/05/ruby-xmlparser_0.7.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