[libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04
noreply at rubyforge.org
noreply at rubyforge.org
Wed Nov 19 21:35:52 EST 2008
Bugs item #22877, was opened at 2008-11-18 12:54
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22877&group_id=494
Category: None
Group: None
Status: Closed
Resolution: Accepted
Priority: 3
Submitted By: Nikolay Kolev (nikolay)
Assigned to: Charlie Savage (cfis)
Summary: Gem 0.9 cannot be installed on Ubuntu 8.04
Initial Comment:
ruby_xml_error.c: In function âruby_init_xml_errorâ:
ruby_xml_error.c:207: error: âXML_FROM_SCHEMATRONVâ undeclared (first use in this function)
ruby_xml_error.c:207: error: (Each undeclared identifier is reported only once
ruby_xml_error.c:207: error: for each function it appears in.)
ruby_xml_error.c:514: error: âXML_TREE_NOT_UTF8â undeclared (first use in this function)
ruby_xml_error.c:890: error: âXML_SCHEMATRONV_ASSERTâ undeclared (first use in this function)
ruby_xml_error.c:891: error: âXML_SCHEMATRONV_REPORTâ undeclared (first use in this function)
make: *** [ruby_xml_error.o] Error 1
----------------------------------------------------------------------
>Comment By: Nikolay Kolev (nikolay)
Date: 2008-11-19 18:35
Message:
Great job, Charlie! I installed 0.9.2 and everything works
perfectly now!
----------------------------------------------------------------------
Comment By: Charlie Savage (cfis)
Date: 2008-11-19 09:40
Message:
Thanks for the update Kevin. I'll close this ticket then. If you run into other issues, go ahead and create new tickets.
The big difference in behavior is error handling - you'll have to rewrite any error handler hooks. Also, any raised exceptions have a lot more information, and are raised in a few more places. So basically the bindings tell you a lot more now about problems when they occur.
----------------------------------------------------------------------
Comment By: Kevin Menard (nirvdrum)
Date: 2008-11-19 06:13
Message:
Looks good so far. I was able to build the gem at the very least. I still need to test that no behavior was broken.
----------------------------------------------------------------------
Comment By: Charlie Savage (cfis)
Date: 2008-11-18 23:02
Message:
Nikolay and Kevin - Try the 0.9.1 release and see if that works for you.
Thanks for the quick bug report.
----------------------------------------------------------------------
Comment By: Kevin Menard (nirvdrum)
Date: 2008-11-18 13:34
Message:
Yeah. It's looking for more than just that one constant.
----------------------------------------------------------------------
Comment By: Charlie Savage (cfis)
Date: 2008-11-18 13:20
Message:
Actually, that won't work will it. Hmm, looks like there will have to be a libxml version check.
----------------------------------------------------------------------
Comment By: Charlie Savage (cfis)
Date: 2008-11-18 13:17
Message:
Kevin, Nikolay,
Looks like Ubuntu has an older version of libxml.
That constant was added here:
http://mail.gnome.org/archives/svn-commits-list/2008-March/msg05252.html
Can either of you check a fix for me?
Update ruby_xml_error.c, line 208, like this:
#ifdef XML_FROM_SCHEMATRONV /* Only present in newer versions of libxml */
rb_define_const(eXMLError, "SCHEMATRONV", INT2NUM(XML_FROM_SCHEMATRONV));
#endif
Then you should just be able to run make as root. I only have Fedora boxes lying around at the moment.....
----------------------------------------------------------------------
Comment By: Kevin Menard (nirvdrum)
Date: 2008-11-18 13:02
Message:
I can confirm. I was just about to raise the issue myself. Major deal breaker for us.
I'm trying to find a way to resolve it with the package manager, but nothing obvious is jumping out.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22877&group_id=494
More information about the libxml-devel
mailing list