Posted By: Charlie Savage
Date: 2009-03-06 17:01
Summary: libxml-ruby-0.9.9
Project: LibXML

We're happy to announce the release of libxml-ruby 0.9.9. This release is chock full of goodies:

* Ruby 1.9.1 support
* Much reduced memory usage
* Better OS X 10.5 and MacPorts support
* Tons of bug fixes (see changelog)

At this point, the libxml-ruby bindings are in great shape. They are fast, stable, have a clean api and are reasonably well documented (see the latest RDocs).

Next up is the 1.0 release. So install the bindings, make sure the test suite passes, and run them with your applications. Make sure to report any issues you find on RubyForge:

http://rubyforge.org/tracker/?atid=1971&group_id=494&func=browse

Thanks,

Charlie

Latest News
icalendar 1.4.0 Released
    Ryan Ahearn - 2013-05-21 23:17
BinData 1.5.0 - source moved to github
    Dion Mendel - 2013-05-21 11:10
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28
Runt v0.9.0 Released
    Matthew Lipper - 2013-05-17 00:11
kramdown 1.0.2 released
    Thomas Leitner - 2013-05-09 06:58

 

Forums | Admin

Discussion Forums: libxml-ruby-0.9.9

Start New Thread Start New Thread

 

By: Nathan Beyer
RE: Update fail on Mac OS X 10.5.6 [ reply ]  
2009-03-08 00:00
Everything seems okay with the 1.0.0 version that just showed up.

By: Lennart Fridén
RE: Update fail on Mac OS X 10.5.6 [ reply ]  
2009-03-07 12:53
It also fails with the standard Ruby install. Logged in as root (sudo su):

sh-3.2# gem update libxml-ruby
Updating installed gems
Updating libxml-ruby
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update libxml-ruby
checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... no
checking for atan() in -lm... no
checking for atan() in -lm... yes
checking for inflate() in -lz... yes
checking for iconv_open() in -liconv... yes
checking for libxml/xmlversion.h... yes
checking for xmlDocFormatDump()... yes
checking for docbCreateFileParserCtxt()... yes
creating extconf.h
creating Makefile

make
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c cbg.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c libxml.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml.c
ruby_xml.c: In function 'rxml_default_tree_indent_string_set':
ruby_xml.c:575: warning: pointer targets in assignment differ in signedness
ruby_xml.c: In function 'rxml_default_tree_indent_string_set':
ruby_xml.c:575: warning: pointer targets in assignment differ in signedness
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_attr.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_attr_decl.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_attributes.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_document.c
ruby_xml_document.c: In function 'rxml_document_save':
ruby_xml_document.c:552: warning: pointer targets in assignment differ in signedness
ruby_xml_document.c: In function 'rxml_document_save':
ruby_xml_document.c:552: warning: pointer targets in assignment differ in signedness
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_dtd.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_encoding.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_error.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_html_parser.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_html_parser_context.c
ruby_xml_html_parser_context.c: In function 'rxml_html_parser_context_io':
ruby_xml_html_parser_context.c:68: warning: assignment makes pointer from integer without a cast
ruby_xml_html_parser_context.c: In function 'rxml_html_parser_context_io':
ruby_xml_html_parser_context.c:68: warning: assignment makes pointer from integer without a cast
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_html_parser_options.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_input_cbg.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_io.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_namespace.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_namespaces.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_node.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_parser.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_parser_context.c
ruby_xml_parser_context.c: In function 'rxml_parser_context_document':
ruby_xml_parser_context.c:55: warning: pointer targets in passing argument 4 of 'xmlDocDumpFormatMemoryEnc' differ in signedness
ruby_xml_parser_context.c: In function 'rxml_parser_context_base_uri_set':
ruby_xml_parser_context.c:183: warning: pointer targets in initialization differ in signedness
ruby_xml_parser_context.c: In function 'rxml_parser_context_encoding_get':
ruby_xml_parser_context.c:308: warning: pointer targets in passing argument 1 of 'xmlParseCharEncoding' differ in signedness
ruby_xml_parser_context.c: In function 'rxml_parser_context_document':
ruby_xml_parser_context.c:55: warning: pointer targets in passing argument 4 of 'xmlDocDumpFormatMemoryEnc' differ in signedness
ruby_xml_parser_context.c: In function 'rxml_parser_context_base_uri_set':
ruby_xml_parser_context.c:183: warning: pointer targets in initialization differ in signedness
ruby_xml_parser_context.c: In function 'rxml_parser_context_encoding_get':
ruby_xml_parser_context.c:308: warning: pointer targets in passing argument 1 of 'xmlParseCharEncoding' differ in signedness
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_parser_options.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_reader.c
ruby_xml_reader.c: In function 'rxml_reader_encoding':
ruby_xml_reader.c:600: warning: pointer targets in passing argument 1 of 'xmlParseCharEncoding' differ in signedness
ruby_xml_reader.c: In function 'rxml_reader_encoding':
ruby_xml_reader.c:600: warning: pointer targets in passing argument 1 of 'xmlParseCharEncoding' differ in signedness
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_relaxng.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_sax2_handler.c
ruby_xml_sax2_handler.c: In function 'end_element_ns_callback':
ruby_xml_sax2_handler.c:86: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:88: warning: pointer targets in passing argument 2 of 'rb_str_cat2' differ in signedness
ruby_xml_sax2_handler.c:92: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:98: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:99: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:100: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c: In function 'start_element_ns_callback':
ruby_xml_sax2_handler.c:209: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:210: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness
ruby_xml_sax2_handler.c:223: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:224: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:235: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:237: warning: pointer targets in passing argument 2 of 'rb_str_cat2' differ in signedness
ruby_xml_sax2_handler.c:241: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:247: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:249: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:250: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c: In function 'end_element_ns_callback':
ruby_xml_sax2_handler.c:86: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:88: warning: pointer targets in passing argument 2 of 'rb_str_cat2' differ in signedness
ruby_xml_sax2_handler.c:92: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:98: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:99: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:100: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c: In function 'start_element_ns_callback':
ruby_xml_sax2_handler.c:209: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:210: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness
ruby_xml_sax2_handler.c:223: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:224: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:235: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:237: warning: pointer targets in passing argument 2 of 'rb_str_cat2' differ in signedness
ruby_xml_sax2_handler.c:241: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:247: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:249: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
ruby_xml_sax2_handler.c:250: warning: pointer targets in passing argument 1 of 'rb_str_new2' differ in signedness
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_sax_parser.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_schema.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_xinclude.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_xpath.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_xpath_context.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_xpath_expression.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_xpath_object.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I/usr/include/libxml2 -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/local/include -c ruby_xml_xpointer.c
cc -arch ppc -arch i386 -pipe -bundle -undefined dynamic_lookup -o libxml_ruby.bundle cbg.o libxml.o ruby_xml.o ruby_xml_attr.o ruby_xml_attr_decl.o ruby_xml_attributes.o ruby_xml_document.o ruby_xml_dtd.o ruby_xml_encoding.o ruby_xml_error.o ruby_xml_html_parser.o ruby_xml_html_parser_context.o ruby_xml_html_parser_options.o ruby_xml_input_cbg.o ruby_xml_io.o ruby_xml_namespace.o ruby_xml_namespaces.o ruby_xml_node.o ruby_xml_parser.o ruby_xml_parser_context.o ruby_xml_parser_options.o ruby_xml_reader.o ruby_xml_relaxng.o ruby_xml_sax2_handler.o ruby_xml_sax_parser.o ruby_xml_schema.o ruby_xml_xinclude.o ruby_xml_xpath.o ruby_xml_xpath_context.o ruby_xml_xpath_expression.o ruby_xml_xpath_object.o ruby_xml_xpointer.o -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -lruby -L/usr/lib -lxml2 -lz -lpthread -licucore -lm -liconv -lz -lm -lpthread -ldl -lm
ld: duplicate symbol _IO_ATTR in ruby_xml_parser_context.o and ruby_xml_html_parser_context.o
for architecture i386
collect2: ld returned 1 exit status
ld: duplicate symbol _IO_ATTR in ruby_xml_parser_context.o and ruby_xml_html_parser_context.o
for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccdd5xNf.out (No such file or directory)
make: *** [libxml_ruby.bundle] Error 1


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.9 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.9/ext/libxml/gem_make.out

By: Nathan Beyer
Update fail on Mac OS X 10.5.6 [ reply ]  
2009-03-07 02:44
Here's the failure I'm seeing -

Updating installed gems
Updating libxml-ruby
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update libxml-ruby
checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... no
checking for atan() in -lm... no
checking for atan() in -lm... yes
checking for inflate() in -lz... yes
checking for iconv_open() in -liconv... yes
checking for libxml/xmlversion.h... yes
checking for xmlDocFormatDump()... no
extconf failure: Your version of libxml2 is too old. Please upgrade.


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.9 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.9/ext/libxml/gem_make.out


I have the latest version of libxml2 from MacPorts. I think the real problem is this bit from the mkmf.log.

--------------------

have_func: checking for xmlDocFormatDump()... -------------------- no

"gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -arch ppc -arch i386 -Os -pipe -fno-common -I/opt/local/include/libxml2 conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -L/opt/local/lib -lxml2 -lz -lpthread -liconv -lm -liconv -lz -lm -lruby -L/opt/local/lib -lxml2 -lz -lpthread -liconv -lm -liconv -lz -lm -lpthread -ldl -lm "
conftest.c: In function ‘t’:
conftest.c:3: error: ‘xmlDocFormatDump’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
conftest.c: In function ‘t’:
conftest.c:3: error: ‘xmlDocFormatDump’ undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
lipo: can't figure out the architecture type of: /var/tmp//ccegPS9m.out
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))xmlDocFormatDump; return 0; }
/* end */

"gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -arch ppc -arch i386 -Os -pipe -fno-common -I/opt/local/include/libxml2 conftest.c -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -arch ppc -arch i386 -L/opt/local/lib -lxml2 -lz -lpthread -liconv -lm -liconv -lz -lm -lruby -L/opt/local/lib -lxml2 -lz -lpthread -liconv -lm -liconv -lz -lm -lpthread -ldl -lm "
ld: warning in /opt/local/lib/libxml2.dylib, file is not of required architecture
ld: warning in /opt/local/lib/libz.dylib, file is not of required architecture
ld: warning in /opt/local/lib/libiconv.dylib, file is not of required architecture
Undefined symbols for architecture ppc:
"_xmlDocFormatDump", referenced from:
_t in ccfSnjqH.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccRX83RX.out (No such file or directory)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { xmlDocFormatDump(); return 0; }
/* end */

--------------------


- Environment -
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.1
- RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-9
- GEM PATHS:
- /Library/Ruby/Gems/1.8
- /Users/nathan/.gem/ruby/1.8
- /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/