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
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
mime-types 1.23 Released
    Austin Ziegler - 2013-04-21 01:41
diff-lcs 1.2.4 Released
    Austin Ziegler - 2013-04-21 00:08

 

Forums | Admin

Discussion Forums: libxml-ruby-0.9.9

Start New Thread Start New Thread
Message: 65439
BY: Nathan Beyer (nbeyer)
DATE: 2009-03-07 02:44
SUBJECT: Update fail on Mac OS X 10.5.6

 

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/


Thread View

Thread Author Date
Update fail on Mac OS X 10.5.6Nathan Beyer2009-03-07 02:44
      RE: Update fail on Mac OS X 10.5.6Lennart Fridén2009-03-07 12:53
            RE: Update fail on Mac OS X 10.5.6Nathan Beyer2009-03-08 00:00

Post a followup to this message