Bugs item #28432, was opened at 2010-07-30 23:18
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=28432&group_id=494
Category: General
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Fred Wild (fredwild)
>Assigned to: Charlie Savage (cfis)
Summary: gem install libxml-ruby <= on windows using Ruby 1.9.1 -- broken
Initial Comment:
Shouldn't the GEM be fairly self contained, or cite its dependent gems in the
event there are any, or cite which compiler and version is needed to
successfully build it under major Ruby releases e.g. 1.9.1
Any help greatly appreciated.
Thanks;
C:\>gem install libxml-ruby
Building native extensions. This could take a while...
ERROR: Error installing libxml-ruby:
ERROR: Failed to build gem native extension.
c:/ruby/bin/ruby.exe extconf.rb
checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... no
checking for atan() in -lm... yes
checking for inflate() in -lz... yes
checking for iconv_open() in -liconv... no
checking for libiconv_open() in -liconv... yes
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... yes
checking for libxml/xmlversion.h... yes
creating extconf.h
creating Makefile
make
gcc -shared -s -o libxml_ruby.so libxml.o ruby_xml.o ruby_xml_attr.o
ruby_xml_attributes.o ruby_xml_attr_decl.o ruby_xml_cbg.o ruby_xml_document.o
ruby_xml_dtd.o ruby_xml_encoding.o ruby_x
ruby_xml_attr.o: In function `rxml_attr_value_get':
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_attr.c:308: undefined
reference to `_imp__xmlFree'
ruby_xml_document.o: In function `rxml_document_encoding_set':
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_document.c:311: undefined
reference to `_imp__xmlFree'
ruby_xml_document.o: In function `rxml_document_to_s':
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_document.c:668: undefined
reference to `_imp__xmlFree'
ruby_xml_dtd.o: In function `rxml_dtd_initialize':
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_dtd.c:234: undefined
reference to `_imp__xmlFree'
ruby_xml_namespaces.o: In function `rxml_namespaces_each':
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_namespaces.c:134: undefined
reference to `_imp__xmlFree'
ruby_xml_node.o:c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_node.c:283:
more undefined references to `_imp__xmlFree' follow
ruby_xml_node.o: In function `rxml_node_output_escaping_q':
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_node.c:1144: undefined
reference to `_imp__xmlStringTextNoenc'
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_node.c:1163: undefined
reference to `_imp__xmlStringTextNoenc'
ruby_xml_node.o: In function `rxml_node_output_escaping_set':
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_node.c:1196: undefined
reference to `_imp__xmlStringText'
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_node.c:1196: undefined
reference to `_imp__xmlStringTextNoenc'
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_node.c:1191: undefined
reference to `_imp__xmlStringText'
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_node.c:1191: undefined
reference to `_imp__xmlStringTextNoenc'
ruby_xml_parser_context.o: In function `rxml_parser_context_encoding_set':
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_parser_context.c:364:
undefined reference to `_imp__xmlFree'
ruby_xml_sax_parser.o: In function `rxml_sax_parser_parse':
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_sax_parser.c:103: undefined
reference to `_imp__xmlFree'
ruby_xml_xpath_context.o: In function
`rxml_xpath_context_register_namespaces_from_node':
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_xpath_context.c:164:
undefined reference to `_imp__xmlFree'
ruby_xml_xpath_object.o: In function `rxml_xpath_object_free':
c:/Development/src/libxml-ruby/ext/libxml/ruby_xml_xpath_object.c:40: undefined
reference to `_imp__xmlFree'
collect2: ld returned 1 exit status
make: *** [libxml_ruby.so] Error 1
Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.4 for inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.4/ext/libxml/gem_make.out
----------------------------------------------------------------------
>Comment By: Charlie Savage (cfis)
Date: 2011-04-22 21:40
Message:
Hi Fred,
Looks like the build isn't finding the location of libxml2 libraries. User
--with-libxml-lib to specify them. Or install the binary version.
Thanks - Charlie
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=28432&group_id=494
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel