8000 ERROR: Failed to build gem native extension · Issue #3 · coreyhaines/ShoppingCart · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ERROR: Failed to build gem native extension  #3
Open
@flik

Description

@flik

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 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_entity_decl.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_relax_ng.c
compiling xml_attr.c
compiling html_sax_parser_context.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_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 xslt_stylesheet.c
compiling xml_node.c
compiling xml_node_set.c
compiling xml_text.c
compiling xml_entity_reference.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 /var/lib/gems/1.9.1/gems/nokogiri-1.5.0 for inspection.
Results logged to /var/lib/gems/1.9.1/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0