I have a problem installing libxml-ruby for ruby 1.9 on Ubuntu 8.10.
Running :
*************************************************************************************
gem1.9 install libxml-ruby
*************************************************************************************

I received an error message :
*************************************************************************************
Building native extensions. This could take a while...
ERROR: Error installing libxml-ruby:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9 extconf.rb install libxml-ruby
checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... yes
checking for atan() in -lm... 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... no
checking for libiconv_open() in -llibiconv... no
checking for iconv_open() in -llibiconv... no
checking for iconv_open() in -lc... yes
checking for xmlParseDoc() in -lxml2... yes
checking for libxml/xmlversion.h... no
checking for libxml/xmlversion.h in /usr/include,/usr/include/libxml2,/opt/include/libxml2,/usr/local/include/libxml2,/usr/include/libxml2... yes
checking for xmlDocFormatDump()... yes
checking for docbCreateFileParserCtxt()... yes
creating extconf.h
creating Makefile

make
cc -I. -I/usr/include/ruby-1.9.0/i486-linux -I/usr/include/ruby-1.9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -fno-strict-aliasing -g -g -O2 -O2 -g -Wall -Wno-parentheses -fPIC -I/usr/include/ruby-1.9.0/i486-linux -I/usr/include/ruby-1.9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -o ruby_xml_reader.o -c ruby_xml_reader.c
In file included from ruby_xml_reader.c:4:
ruby_libxml.h:10:18: error: util.h: No such file or directory
make: *** [ruby_xml_reader.o] Error 1


Gem files will remain installed in /var/lib/gems/1.9.0/gems/libxml-ruby-0.9.7 for inspection. Results logged to /var/lib/gems/1.9.0/gems/libxml-ruby-0.9.7/ext/libxml/gem_make.out
*************************************************************************************

I changed paths uf util.h and st.h to "ruby/*", anf got the next error message :
*************************************************************************************
cc -I. -I/usr/include/ruby-1.9.0/i486-linux -I/usr/include/ruby-1.9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -fno-strict-aliasing -g -g -O2 -O2 -g -Wall -Wno-parentheses -fPIC -I/usr/include/ruby-1.9.0/i486-linux -I/usr/include/ruby-1.9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -o ruby_xml_document.o -c ruby_xml_document.c
In file included from ruby_xml_document.c:57:
/usr/include/ruby-1.9.0/ruby/st.h:91: error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from /usr/include/ruby-1.9.0/ruby.h:15,
from ruby_libxml.h:8,
from ruby_xml_document.c:58:
/usr/include/ruby-1.9.0/ruby/ruby.h:1065: error: conflicting types for ‘st_strncasecmp’ /usr/include/ruby-1.9.0/ruby/st.h:91: error: previous declaration of ‘st_strncasecmp’ was here
ruby_xml_document.c: In function ‘rxml_document_save’:
ruby_xml_document.c:544: warning: pointer targets in assignment differ in signedness
make: *** [ruby_xml_document.o] Error 1
*************************************************************************************

Also i asked my friend to perform an installation on Gentoo 2008.0 i686 through the gem utility and he got the same error :
*************************************************************************************
In file included from ruby_xml_document.c:57:
/usr/include/ruby-1.9.0/ruby/backward/st.h:2:2: warning: #warning use "ruby/st.h" instead of bare "st.h"
In file included from /usr/include/ruby-1.9.0/ruby/backward/st.h:6,
from ruby_xml_document.c:57:
/usr/include/ruby-1.9.0/ruby/st.h:94: error: expected declaration specifiers or '...' before 'size_t'
In file included from /usr/include/ruby-1.9.0/ruby.h:33,
from ruby_libxml.h:8,
from ruby_xml_document.c:58:
/usr/include/ruby-1.9.0/ruby/ruby.h:1168: error: conflicting types for 'st_strncasecmp' /usr/include/ruby-1.9.0/ruby/st.h:94: error: previous declaration of 'st_strncasecmp' was here
In file included from ruby_libxml.h:10,
from ruby_xml_document.c:58:
/usr/include/ruby-1.9.0/ruby/backward/util.h:2:2: warning: #warning use "ruby/util.h" instead of bare "util.h"
ruby_xml_document.c: In function 'rxml_document_save':
ruby_xml_document.c:544: warning: pointer targets in assignment differ in signedness
make: *** [ruby_xml_document.o] Error 1
*************************************************************************************

If this is a bug or smth on my side? If not, what information can I
provide to help get it fixed?

Thanks for your help and thanks for great work with libxml for Ruby!






_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to