jasonroelofs/rbgccxml

Does not install correctly because of dependencies

Closed this issue · 4 comments

I am trying to install rbgccxml because another gem needs it.

It seems that rbgccxml cannot be installed because of the dependency to the "old" nokogiri v 1.4.7.

Here is the log:

Building native extensions.  This could take a while...
ERROR:  Error installing rbgccxml:
    ERROR: Failed to build gem native extension.

        /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 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
compiling xml_node_set.c
compiling xml_cdata.c
compiling xml_sax_push_parser.c
compiling xml_processing_instruction.c
compiling xml_document_fragment.c
compiling xml_schema.c
compiling html_entity_lookup.c
compiling xml_xpath_context.c
xml_xpath_context.c: In function ‘xpath_generic_exception_handler’:
xml_xpath_context.c:184:3: error: format not a string literal and no format arguments [-Werror=format-security]
cc1: some warnings being treated as errors
make: *** [xml_xpath_context.o] Error 1


Gem files will remain installed in /var/lib/gems/1.9.1/gems/nokogiri-1.4.7 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/nokogiri-1.4.7/ext/nokogiri/gem_make.out

What can i do to fix it?

Yeah I need to update this library to use a newer nokogiri, though I would think the old nokogiri would still install properly, though maybe not given how old it is. You could try cloning, updating the version dependency in the gemspec and see if it installs locally. Otherwise I hope to spend some time this weekend updating this and other related libraries.

i managed to install your rbgccxml the way you describe with nokogiri 1.6.1
Thx for the fast help.

I hope everything runs without problems now.

I'll have a new version out next week with an updated and relaxed requirement on nokogiri.

Rbgccxml 1.0.4 is out with updated nokogiri dependencies.