Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing nokogiri dependency fails on clean ubuntu. #520

Open
chtenb opened this issue Apr 13, 2016 · 0 comments
Open

Installing nokogiri dependency fails on clean ubuntu. #520

chtenb opened this issue Apr 13, 2016 · 0 comments

Comments

@chtenb
Copy link

chtenb commented Apr 13, 2016

When trying to install barkeep on a fresh 14.04 machine, the install script fails at the nokogiri dependency:

Installing nokogiri (1.5.0)
Gem::Installer::ExtensionBuildError: 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 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
compiling xml_cdata.c
compiling xml_namespace.c
xml_namespace.c: In function ‘prefix’:
xml_namespace.c:14:13: warning: variable ‘doc’ set but not used [-Wunused-but-set-variable]
   xmlDocPtr doc;
             ^
xml_namespace.c: In function ‘href’:
xml_namespace.c:33:13: warning: variable ‘doc’ set but not used [-Wunused-but-set-variable]
   xmlDocPtr doc;
             ^
compiling xml_comment.c
compiling html_document.c
compiling xml_libxml2_hacks.c
compiling html_element_description.c
In file included from /usr/include/ruby-1.9.1/ruby.h:32:0,
                 from ./nokogiri.h:31,
                 from ./html_element_description.h:4,
                 from html_element_description.c:1:
html_element_description.c: In function ‘get_description’:
html_element_description.c:249:40: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
   return Data_Wrap_Struct(klass, 0, 0, (void *)description);
                                        ^
/usr/include/ruby-1.9.1/ruby/ruby.h:818:35: note: in definition of macro ‘Data_Wrap_Struct’
     rb_data_object_alloc((klass),(sval),(RUBY_DATA_FUNC)(mark),(RUBY_DATA_FUNC)(free))
                                   ^
compiling xml_syntax_error.c
compiling xml_relax_ng.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]
   return safe_len;
   ^
compiling xml_document.c
compiling xml_sax_push_parser.c
compiling xml_attribute_decl.c
compiling xml_document_fragment.c
compiling xml_element_content.c
compiling xml_dtd.c
compiling xml_element_decl.c
compiling nokogiri.c
nokogiri.c: In function ‘ruby_strdup’:
nokogiri.c:43:31: warning: conversion to ‘size_t’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
   char *result = ruby_xmalloc((ssize_t) (len + 1));
                               ^
compiling xml_attr.c
compiling xml_encoding_handler.c
compiling xslt_stylesheet.c
compiling xml_reader.c
compiling xml_text.c
compiling xml_entity_decl.c
compiling xml_schema.c
compiling xml_processing_instruction.c
compiling xml_entity_reference.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:184:3: error: format not a string literal and no format arguments [-Werror=format-security]
   rb_raise(rb_eRuntimeError, message);
   ^
cc1: some warnings being treated as errors
make: *** [xml_xpath_context.o] Error 1


Gem files will remain installed in /home/chiel/.bundler/tmp/15651/gems/nokogiri-1.5.0 for inspection.
Results logged to /home/chiel/.bundler/tmp/15651/gems/nokogiri-1.5.0/ext/nokogiri/gem_make.out
An error occurred while installing nokogiri (1.5.0), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.5.0'` succeeds before bundling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant