From transfire at gmail.com Sat Nov 1 14:56:50 2008 From: transfire at gmail.com (Trans) Date: Sat, 1 Nov 2008 11:56:50 -0700 (PDT) Subject: [libxml-devel] [ANN] nokogiri 1.0.0 Released In-Reply-To: <20081030171546.GA452@mac-mini.local> References: <20081030171546.GA452@mac-mini.local> Message-ID: On Oct 30, 1:15?pm, Aaron Patterson wrote: > nokogiri version 1.0.0 has been released! Very impressive project, Aaron! I've been building much the same thing myself, although built on top of libxml-ruby (or rexml as a fallback). Unfortunately, it has always been one of those back-burner projects I only have time to work on now and then, so it's remained very much beta-ware. But now with Nokogiri, it looks like I can just drop that project altogether. Yeah! I'm happy about that b/c I already have too many projects to maintain. There is one feature of my project I'd like to preserve though. I have a very elegant xml/html template engine built on top of it, somewhat like Amrita. It's a very small engine, ~100 loc. And I love the thing. So I will port it to Nokogiri instead. In any case, I have one question. It looks like there is an XML Builder in the library. I did not see any usage documentation on that. Is it working? And how does one use it? Thanks, and great work! trans. From aaron at tenderlovemaking.com Sat Nov 1 07:06:30 2008 From: aaron at tenderlovemaking.com (Aaron Patterson) Date: Sat, 1 Nov 2008 04:06:30 -0700 Subject: [libxml-devel] [ANN] nokogiri 1.0.0 Released In-Reply-To: References: <20081030171546.GA452@mac-mini.local> Message-ID: <20081101110630.GA22683@mac-mini.local> On Sat, Nov 01, 2008 at 11:56:50AM -0700, Trans wrote: > > > On Oct 30, 1:15?pm, Aaron Patterson > wrote: > > nokogiri version 1.0.0 has been released! > > Very impressive project, Aaron! > > I've been building much the same thing myself, although built on top > of libxml-ruby (or rexml as a fallback). Unfortunately, it has always > been one of those back-burner projects I only have time to work on now > and then, so it's remained very much beta-ware. But now with Nokogiri, > it looks like I can just drop that project altogether. Yeah! I'm happy > about that b/c I already have too many projects to maintain. > > There is one feature of my project I'd like to preserve though. I have > a very elegant xml/html template engine built on top of it, somewhat > like Amrita. It's a very small engine, ~100 loc. And I love the thing. > So I will port it to Nokogiri instead. > > In any case, I have one question. It looks like there is an XML > Builder in the library. I did not see any usage documentation on that. > Is it working? And how does one use it? Thanks. Yes, there is a builder. I've only shown examples for using the HTML builder, but it is basically the same as the XML builder: http://github.com/tenderlove/nokogiri/wikis/generate -- Aaron Patterson http://tenderlovemaking.com/ From fabrice.talbot at gmail.com Thu Nov 13 02:21:00 2008 From: fabrice.talbot at gmail.com (Fabrice (GMail)) Date: Wed, 12 Nov 2008 23:21:00 -0800 Subject: [libxml-devel] Ruby libxslt not working with exslt() extensions Message-ID: <000001c94560$61ad15c0$6901a8c0@ftalbot> Hi there, I installed the Windows binaries for "libxslt-ruby-0.8.2-x86-mswin32-60" gem and it is working fine (able to apply an XSLT to a XML doc). However I tried to transform a xml docbook file using Docbook xslt. The transformation fails because of a reference to a exslt() function: >> result = stylesheet.apply(xml_doc) xmlXPathCompOpEval: function node-set not found Unregistered function runtime error: file D:///docbook/xsl/xhtml/profile-docbook.xsl line 293 element variable Failed to evaluate the expression of variable 'profiled-nodes'. => Seems to be that exslt() is not working in this Windows binaries version. Does someone know more about the issue? Thanks in advance Fabrice -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfis at savagexi.com Fri Nov 14 18:09:43 2008 From: cfis at savagexi.com (Charlie Savage) Date: Fri, 14 Nov 2008 16:09:43 -0700 Subject: [libxml-devel] Ruby libxslt not working with exslt() extensions In-Reply-To: <000001c94560$61ad15c0$6901a8c0@ftalbot> References: <000001c94560$61ad15c0$6901a8c0@ftalbot> Message-ID: <491E0537.2070806@savagexi.com> Hi Fabrice, > I installed the Windows binaries for ?libxslt-ruby-0.8.2-x86-mswin32-60? > gem and it is working fine (able to apply an XSLT to a XML doc). > > However I tried to transform a xml docbook file using Docbook xslt. The > transformation fails because of a reference to a exslt() function: > >> > result = stylesheet.apply(xml_doc) > > xmlXPathCompOpEval: function node-set not found > > Unregistered function Right, if I remember correctly , the current version of libxslt doesn't link to the exslt library. Wouldn't be that hard to fix actually (some of the code is already there). Want to put together a patch? Note it means deploying an extra dll on windows, but i can live with that. Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From cfis at savagexi.com Sun Nov 16 04:56:50 2008 From: cfis at savagexi.com (Charlie Savage) Date: Sun, 16 Nov 2008 02:56:50 -0700 Subject: [libxml-devel] SAX error handling In-Reply-To: <1ce38ef40809300955i348ff34aqea76bfa0e0c53b22@mail.gmail.com> References: <1ce38ef40809300955i348ff34aqea76bfa0e0c53b22@mail.gmail.com> Message-ID: <491FEE62.90904@savagexi.com> Hey Eric, > Is there a way to get a nice useful error like you get with > XML::Parser but with XML::SaxParser? The whole on_parser_error() thing > is almost totally useless for identifying where the problem is. I need > to find the spot the error is, and cache that tag for later. The next version of the libxml-ruby bindings has totally revamped error handling. As part of that, sax errors now raise exceptions. So you now get a lot more information about what went wrong. However, libxml does not provide the actual node object (but does provide line number). Check it out - should help with what you are doing. Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From noreply at rubyforge.org Sat Nov 15 18:45:03 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Nov 2008 18:45:03 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22531 ] XML::Reader does not work with sockets Message-ID: <20081115234503.EA49D18581AE@rubyforge.org> Bugs item #22531, was opened at 2008-10-23 07:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Han Holl (hanholl) Assigned to: Nobody (None) Summary: XML::Reader does not work with sockets Initial Comment: I tried with the two following programs: A server: #!/usr/bin/ruby -w require 'rubygems' require 'xml' require 'socket' server = TCPServer.new(22222) while session = server.accept reader = XML::Reader.io(session) loop do rsl = reader.read puts rsl break if rsl != 1 puts reader.expand end session.puts 'ok' sleep 1 session.close end # end-of-server and a client: #!/usr/bin/ruby require 'socket' t = TCPSocket.new('localhost', 22222) t.puts 'k' puts t.gets # end-of-client Output from server: Entity: line 1: parser error : Extra content at the end of the document ^ -1 I tried different platforms (RH9, CentOS 5.1 and Fedora8). libxml-ruby-0.8.3 Various libxml2 versions ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-15 16:45 Message: Yes, that is not going to work. Libxml does provide its own socket implementation, but that is not exposed via the ruby bindings. Want to put together a patch? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 From noreply at rubyforge.org Sat Nov 15 18:48:28 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Nov 2008 18:48:28 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22513 ] Memory leak with Node.prev and Node.remove! Message-ID: <20081115234828.A93DA18581A2@rubyforge.org> Bugs item #22513, was opened at 2008-10-22 08:42 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22513&group_id=494 Category: memory Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Memory leak with Node.prev and Node.remove! Initial Comment: Memory usage of Ruby increases when I execute a script like below. --- require 'xml/libxml' doc = XML::Document.new() doc.root = XML::Node.new('root') root = doc.root root << child = XML::Node.new('child') (1..100000).each {|i| a = XML::Node.new('dummy') child.prev = a a.remove! if i % 100 == 0 GC.start # show memory usage in unix environment. puts `ps alx | grep #{$$} | awk '{printf ("%d\t%s\n", $8,$13)}'` end } ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-15 16:48 Message: Hmm, not seeing this on Windows. Are you taking into account that memory usage will grow until a garbage collection happens? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22513&group_id=494 From noreply at rubyforge.org Sat Nov 15 19:32:53 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Nov 2008 19:32:53 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22415 ] xml_node.attributes.each { |a| a.remove! } # stops after removing the first attribute Message-ID: <20081116003253.B210F1858197@rubyforge.org> Bugs item #22415, was opened at 2008-10-15 01:52 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22415&group_id=494 Category: General Group: None >Status: Closed Resolution: None Priority: 3 Submitted By: Elia Schito (elia) >Assigned to: Charlie Savage (cfis) Summary: xml_node.attributes.each { |a| a.remove! } # stops after removing the first attribute Initial Comment: # With the XML below the following won't work (will remove only the first attribute): xml_object.find_first('ibbas:ncsa/ibbas:mcrange').attributes.each do |xml_attribute| xml_attribute.remove! if xml_attribute.name =~ /^(addr|range)\d+$/ end # The following works: attributes = [] xml_object.find_first('ibbas:ncsa/ibbas:mcrange').attributes.each{ |a| attributes << a } attributes.each do |xml_attribute| xml_attribute.remove! if xml_attribute.name =~ /^(addr|range)\d+$/ end __DATA__ ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-15 17:32 Message: Hi Elia, I took a look at this. The issue is when you remove a node (including attributes), libxml sets the next and prev pointers of the node to nil. The way iteration works for attributes is like this: xattr = xnode->properties; while (xattr) { VALUE attr = ruby_xml_attr_wrap(xattr); rb_yield(attr); xattr = xattr->next; } So what happens is xattr->next is null, and thus only the first node is deleted. This doesn't seem worth changing to me because its easy to workaround. Just do this: attributes = [] node = xml_object.find_first('ibbas:ncsa/ibbas:mcrange') node.attributes.entries.each{ |a| a.remove!} Notice the use of entries to first collect all the attributes into an array, then they are deleted. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22415&group_id=494 From noreply at rubyforge.org Sat Nov 15 19:34:02 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Nov 2008 19:34:02 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22373 ] Corrupt Makefile Message-ID: <20081116003402.E24741858197@rubyforge.org> Bugs item #22373, was opened at 2008-10-10 09:19 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22373&group_id=494 Category: None Group: None >Status: Closed Resolution: Rejected Priority: 3 Submitted By: Avdi Grimm (avdi) >Assigned to: Charlie Savage (cfis) Summary: Corrupt Makefile Initial Comment: Installing the gem on a Mac under MacPorts, with Ruby 1.8.6, I get the following error while the extension is building: Makefile:106: *** missing separator (did you mean TAB instead of 8 spaces?). Stop. A quick look at the generated libxml/Makefile reveals it is has multiple command lines that begin with spaces instead of a tab, which is illegal syntax. ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-15 17:34 Message: Yup, the Makefile is auto-generated by Ruby. ---------------------------------------------------------------------- Comment By: Avdi Grimm (avdi) Date: 2008-10-10 09:47 Message: Gah. Never mind, this seems to be a bug in the 1.8.6 version of mkmf.rb. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22373&group_id=494 From noreply at rubyforge.org Sat Nov 15 19:43:57 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Nov 2008 19:43:57 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22336 ] "property" method not recognised on LibXML::XML::Node Message-ID: <20081116004357.E016E18581A2@rubyforge.org> Bugs item #22336, was opened at 2008-10-08 04:24 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22336&group_id=494 Category: General Group: None >Status: Closed Resolution: None Priority: 3 Submitted By: Rob Lucas (roblucas) >Assigned to: Charlie Savage (cfis) >Summary: "property" method not recognised on LibXML::XML::Node Initial Comment: My hard disk recently died so I had to do a fresh install of all my gems including libxml-ruby (I installed 0.8.3). I can't get the old version number, as the hard disk really is dead, but it was probably 0.5.? . This new install broke some previously fine libxml-ruby based code: - Now, any use of node.property("name") (e.g. model.property("name")) produces an error like: undefined method `property' for :LibXML::XML::Node - However, changing these calls to the node["name"] format (in this case model["name"]) fixes the problem node.property("name") still appears to be valid in the API docs, and I can't find any indication that it has been deprecated or anything. ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-15 17:43 Message: Hi Rob, Yes node#property has been deprecated. However, it should not have been removed from libxml. So its back in (will be in next release), but will show a warning message. The correct fix is node["foo"] like you noticed. Thanks for the report. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22336&group_id=494 From noreply at rubyforge.org Sat Nov 15 19:44:24 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Nov 2008 19:44:24 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22071 ] dgbszetbjdHw Message-ID: <20081116004424.7C16A1858197@rubyforge.org> Bugs item #22071, was opened at 2008-09-20 11:56 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22071&group_id=494 Category: General Group: pre 0.5 >Status: Deleted >Resolution: Rejected Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: dgbszetbjdHw Initial Comment: Gf5Fk5 luqgqzpqkncs, [url=http://hpooqgiovhcq.com/]hpooqgiovhcq[/url], [link=http://wgbdbbqdnups.com/]wgbdbbqdnups[/link], http://qnpbsbgepyhp.com/ ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22071&group_id=494 From noreply at rubyforge.org Sat Nov 15 19:45:38 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Nov 2008 19:45:38 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-21918 ] find() returned Nodes in 0.5.x, Attrs in 0.8.3 with this expression Message-ID: <20081116004538.EBE1018581AE@rubyforge.org> Bugs item #21918, was opened at 2008-09-11 11:37 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21918&group_id=494 Category: General Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Jamie Orchard-Hays (jamieorc) Assigned to: Nobody (None) Summary: find() returned Nodes in 0.5.x, Attrs in 0.8.3 with this expression Initial Comment: With this expression: doc.find("/TEI.2/text/body//div1[@type!='header']/@id") 0.5.4 returned Nodes, while 0.8.3 returns Attrs. Is this an intentional change? I was calling content() on each item, which now blows up because they are Attrs, not Nodes. ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-15 17:45 Message: Hi Jamie, Yes, a new attribute object was introduced to model libxml attributes (which are slightly different than nodes). Sorry that this caused you a problem. Charlie ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21918&group_id=494 From noreply at rubyforge.org Sat Nov 15 19:47:45 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Nov 2008 19:47:45 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-21658 ] failure to parse and obey encoding when creating document Message-ID: <20081116004745.7031F1858197@rubyforge.org> Bugs item #21658, was opened at 2008-08-24 11:01 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21658&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: failure to parse and obey encoding when creating document Initial Comment: The following appeared on comp.ruby.lang: ===== quoted material follows I have an XML request, using the following code as an example: require "rubygems" require "xml/libxml" movie = "sin+city" search_url = 'http://www.movie-xml.com/interfaces/getmovie.php?moviename=' url = search_url+movie doc = XML::Document.file(url) Here's the response I get: Input is not proper UTF-8, indicate encoding ! The source XML has an encoding declared as such: ===== end quoted material Tested and confirmed, plus I tried the same operation with REXML and there was no problem. It looks like we are not examining the encoding attribute up front and obeying it when parsing the body of the doc. ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-15 17:47 Message: This url is no longer valid. Do you have another test case? ---------------------------------------------------------------------- Comment By: Eric Ivancich (ivancich) Date: 2008-08-24 17:29 Message: Twice in the XML data retrieved from the URL generated in the detailed description, the word "verg?enza" appears, where the "?" has hex code 0xFC that encodes a lower case "u" with umlaut in ISO-8859-1. 0xFC cannot appear in UTF-8 data due to RFC-3629. So that adds further evidence that it's trying to parse the file as UTF-8 rather than ISO-8859-1. ---------------------------------------------------------------------- Comment By: Erik Hollensbe (erikh) Date: 2008-08-24 14:24 Message: >From this thread on ruby-talk: http://www.ruby-forum.com/topic/163524 ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21658&group_id=494 From noreply at rubyforge.org Sat Nov 15 20:00:43 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Nov 2008 20:00:43 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-21607 ] XML::Reader#read_state never returns MODE_EOF Message-ID: <20081116010043.F1CDB18581A2@rubyforge.org> Bugs item #21607, was opened at 2008-08-19 12:24 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21607&group_id=494 Category: General Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: K Liu (kliuless) Assigned to: Nobody (None) Summary: XML::Reader#read_state never returns MODE_EOF Initial Comment: Even after the XML::Reader has reached the end of the stream, the read_state is returning MODE_READING instead of MODE_EOF. This is on Mac OS Leopard with libxml 2.6.16. I do not see the problem on sparc/solaris with libxml 2.6.31. Sorry, I don't have time to try different versions on the two boxes. ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-15 18:00 Message: Hi K Liu, This works fine on Windows and Linux, so I'm going to assume its a bug on OS X Leopard and will close. Thanks for the report. ---------------------------------------------------------------------- Comment By: K Liu (kliuless) Date: 2008-08-28 08:51 Message: Here's a simple test case: # === begin script === require 'rubygems' require 'xml/libxml' # constant maps state_map = Hash[ * XML::Reader.constants.grep(/^MODE_/).collect{|c| [XML::Reader.const_get(c), c] }.flatten ] type_map = Hash[ * XML::Reader.constants.grep(/^TYPE_/).collect{|c| [XML::Reader.const_get(c), c] }.flatten ] rdr = XML::Reader.string('') puts 'Node name / Node type / Read state' p [rdr.name, type_map[rdr.node_type], state_map[rdr.read_state]] 2.times { rdr.read p [rdr.name, type_map[rdr.node_type], state_map[rdr.read_state]] } # === end script === Output on the Mac: Node name / Node type / Read state [nil, "TYPE_NONE", "MODE_INITIAL"] ["xml", "TYPE_ELEMENT", "MODE_READING"] [nil, "TYPE_NONE", "MODE_READING"] Output on the Sparc: Node name / Node type / Read state [nil, "TYPE_NONE", "MODE_INITIAL"] ["xml", "TYPE_ELEMENT", "MODE_EOF"] [nil, "TYPE_NONE", "MODE_EOF"] ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-08-20 02:30 Message: K Liu, do you have a test case we can look at? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21607&group_id=494 From noreply at rubyforge.org Sat Nov 15 20:02:36 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Nov 2008 20:02:36 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-21895 ] [Docs] require 'libxml' Message-ID: <20081116010236.A26761858197@rubyforge.org> Bugs item #21895, was opened at 2008-09-10 01:03 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21895&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Thomas Peklak (thomaspeklak) Assigned to: Nobody (None) >Summary: [Docs] require 'libxml' Initial Comment: The README is misleading as the code samples say to use "require 'libxml'" which does not work when you do not include LibXML, too. I found in the comments of libxml.rb to use require 'xml' instead, see below # DEPRECATED: Use require 'xml' instead! # # include LibXML Please correct this, because the README is the first thing people look for code samples ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-15 18:02 Message: Hi Thomas, I just looked at libxml.rb: require 'libxml.rb' include LibXML This seems correct. So it looks like this issue has been fixed. Thanks for the report. So, this should be fine. Maybe you ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21895&group_id=494 From noreply at rubyforge.org Sat Nov 15 20:14:53 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Nov 2008 20:14:53 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-21546 ] SaxParser Crashes -- Null Pointer Message-ID: <20081116011453.3DD2118581A2@rubyforge.org> Bugs item #21546, was opened at 2008-08-12 19:26 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21546&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nick Retallack (nickretallack) Assigned to: Nobody (None) Summary: SaxParser Crashes -- Null Pointer Initial Comment: Any xml document that contains a DTD causes SaxParser to crash. Example: require 'rubygems' require 'libxml' class Handler def method_missing(method_name, *attributes, &block); end end parser = LibXML::XML::SaxParser.new parser.filename = 'anything_with_a_dtd.xml' parser.callbacks = Handler.new puts parser.filename parser.parse result: saxmltest.rb:12:in `parse': NULL pointer given (ArgumentError) It seems I am not the only person having this problem. http://rubyforge.org/pipermail/libxml-devel/2008-July/001042.html ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-15 18:14 Message: Hi Nick, I think I've got this fixed - will be in the next release. Thanks for the report. ---------------------------------------------------------------------- Comment By: Andy Hauser (buggs) Date: 2008-08-26 12:41 Message: This bug is whitespace sensitive. Your test_doctype with the inline document does not start with an XML declaration, so it does not get triggered. Remove the whitespace before it and the bug appears. It seems otherwise it's not even parsing the data. Here is complete program showing the bug: require 'libxml' class DocTypeCallback include LibXML::XML::SaxParser::Callbacks def on_start_element(element, attributes) puts element end end def test_doctype xp = LibXML::XML::SaxParser.new xp.callbacks = DocTypeCallback.new xp.string = <<-EOS a1 EOS doc = xp.parse end test_doctype ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-08-20 02:29 Message: Does the tc_sax_parser#test_doctype test work for you? That's copied directly from the link you mention, and works fine here. Does it work for you? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21546&group_id=494 From noreply at rubyforge.org Sat Nov 15 20:15:05 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Nov 2008 20:15:05 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-21546 ] SaxParser Crashes -- Null Pointer Message-ID: <20081116011506.59BC318581A2@rubyforge.org> Bugs item #21546, was opened at 2008-08-12 19:26 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21546&group_id=494 Category: General Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nick Retallack (nickretallack) Assigned to: Nobody (None) Summary: SaxParser Crashes -- Null Pointer Initial Comment: Any xml document that contains a DTD causes SaxParser to crash. Example: require 'rubygems' require 'libxml' class Handler def method_missing(method_name, *attributes, &block); end end parser = LibXML::XML::SaxParser.new parser.filename = 'anything_with_a_dtd.xml' parser.callbacks = Handler.new puts parser.filename parser.parse result: saxmltest.rb:12:in `parse': NULL pointer given (ArgumentError) It seems I am not the only person having this problem. http://rubyforge.org/pipermail/libxml-devel/2008-July/001042.html ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-15 18:15 Message: Hi Nick, I think I've got this fixed - will be in the next release. Thanks for the report. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-15 18:14 Message: Hi Nick, I think I've got this fixed - will be in the next release. Thanks for the report. ---------------------------------------------------------------------- Comment By: Andy Hauser (buggs) Date: 2008-08-26 12:41 Message: This bug is whitespace sensitive. Your test_doctype with the inline document does not start with an XML declaration, so it does not get triggered. Remove the whitespace before it and the bug appears. It seems otherwise it's not even parsing the data. Here is complete program showing the bug: require 'libxml' class DocTypeCallback include LibXML::XML::SaxParser::Callbacks def on_start_element(element, attributes) puts element end end def test_doctype xp = LibXML::XML::SaxParser.new xp.callbacks = DocTypeCallback.new xp.string = <<-EOS a1 EOS doc = xp.parse end test_doctype ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-08-20 02:29 Message: Does the tc_sax_parser#test_doctype test work for you? That's copied directly from the link you mention, and works fine here. Does it work for you? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21546&group_id=494 From noreply at rubyforge.org Mon Nov 17 07:16:07 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 17 Nov 2008 07:16:07 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22531 ] XML::Reader does not work with sockets Message-ID: <20081117121610.0F24E1858182@rubyforge.org> Bugs item #22531, was opened at 2008-10-23 15:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Han Holl (hanholl) Assigned to: Nobody (None) Summary: XML::Reader does not work with sockets Initial Comment: I tried with the two following programs: A server: #!/usr/bin/ruby -w require 'rubygems' require 'xml' require 'socket' server = TCPServer.new(22222) while session = server.accept reader = XML::Reader.io(session) loop do rsl = reader.read puts rsl break if rsl != 1 puts reader.expand end session.puts 'ok' sleep 1 session.close end # end-of-server and a client: #!/usr/bin/ruby require 'socket' t = TCPSocket.new('localhost', 22222) t.puts 'k' puts t.gets # end-of-client Output from server: Entity: line 1: parser error : Extra content at the end of the document ^ -1 I tried different platforms (RH9, CentOS 5.1 and Fedora8). libxml-ruby-0.8.3 Various libxml2 versions ---------------------------------------------------------------------- >Comment By: Han Holl (hanholl) Date: 2008-11-17 13:16 Message: I wouldn't know where to begin. Before I tried I had a look at the code, ruby_xml_reader_new_io(int argc, VALUE *argv, VALUE self), and had the strong impression that it _was_ implemented. I have no idea what is missing. C and ruby extensions are by no means my strong suit, I prefer ruby . My C is read-only, with the exception of the occasional small patch ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-16 00:45 Message: Yes, that is not going to work. Libxml does provide its own socket implementation, but that is not exposed via the ruby bindings. Want to put together a patch? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 From noreply at rubyforge.org Tue Nov 18 15:54:41 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 18 Nov 2008 15:54:41 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04 Message-ID: <20081118205442.21594185859A@rubyforge.org> 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: Open Resolution: None Priority: 3 Submitted By: Nikolay Kolev (nikolay) Assigned to: Nobody (None) 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 ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22877&group_id=494 From noreply at rubyforge.org Tue Nov 18 16:02:35 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 18 Nov 2008 16:02:35 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04 Message-ID: <20081118210235.ADE9D16780DB@rubyforge.org> Bugs item #22877, was opened at 2008-11-18 15:54 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22877&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nikolay Kolev (nikolay) Assigned to: Nobody (None) 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: Kevin Menard (nirvdrum) Date: 2008-11-18 16: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 From cfis at savagexi.com Wed Nov 19 03:16:20 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 01:16:20 -0700 Subject: [libxml-devel] Ruby libxslt not working with exslt() extensions In-Reply-To: <000001c94560$61ad15c0$6901a8c0@ftalbot> References: <000001c94560$61ad15c0$6901a8c0@ftalbot> Message-ID: <4923CB54.9030806@savagexi.com> Fabrice, > However I tried to transform a xml docbook file using Docbook xslt. The > transformation fails because of a reference to a exslt() function: > > >> > result = stylesheet.apply(xml_doc) > > xmlXPathCompOpEval: function node-set not found > > Unregistered function > > runtime error: file D:///docbook/xsl/xhtml/profile-docbook.xsl line 293 > element variable I just uploaded a new version of libxslt that includes exslt support. Can you give it try? Also, can you wrap up your example as a test case so I can add it to the test suite? Thanks, Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From cfis at savagexi.com Wed Nov 19 03:23:00 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 01:23:00 -0700 Subject: [libxml-devel] UTF-8 problem In-Reply-To: <458EB412-7AB1-4609-A898-EC47DF85A1A3@mudynamics.com> References: <458EB412-7AB1-4609-A898-EC47DF85A1A3@mudynamics.com> Message-ID: <4923CCE4.8050907@savagexi.com> Hi David, > I'm trying to input and output special characters, but I'm getting parse > errors from libxml. > > Code snippet: > node = LibXML::XML::Node.new 'node' > node.content = '' > doc = LibXML::XML::Document.new > doc.encoding = 'UTF-8' > doc.root = node > xml = doc.to_s true, 'UTF-8' > > parser = LibXML::XML::Parser.new > parser.string = xml > doc = parser.parse > p doc.root.content > > The first part sets xml to: > > \1 > > Where \1 is the byte 1. > > The second part tries to parse this. But libxml gives this error on the > call to Parser.parse: > Entity: line 2: > parser > error : > internal error > I see the same thing. Its hard to know where things are going wrong. Do you have time to dig into this? The first thing to figure out is if the output is correct: 1. Find some xml editor that let's you write this to disk. 2. Then run the code above but save the file to disk 3. Compare the results. 4. Then compare the files to Ruby's in memory string (looking at the bytes. Either there will be an error in the string, or if not, then the error must be happening in the translation of the string back to libxml. Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From cfis at savagexi.com Wed Nov 19 03:29:12 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 01:29:12 -0700 Subject: [libxml-devel] REXML-dropin, a REXML replacement using libxml-ruby In-Reply-To: <20080928214222.GH3610@chronos.sin> References: <20080928214222.GH3610@chronos.sin> Message-ID: <4923CE58.4030505@savagexi.com> Hi Stephan, > > In XMPP4R we're bound to the very intuitive REXML API because that's > what XMPP4R is about: dealing with XML. I thought the only way out > would be resembling it. That's why I have started REXML-dropin, a > wrapper around libxml: > > http://github.com/astro/rexml-dropin/ Curious how is progress on this? How big a patch would it be to the libxml-ruby bindings? Should we integrate in your work, or leave it separate. > To be honest, I'm not convinced by libxml-ruby's code, but it looks > way cleaner than REXML. Well one thing is for sure - its getting cleaner and cleaner as time goes on... Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From cfis at savagexi.com Wed Nov 19 03:31:59 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 01:31:59 -0700 Subject: [libxml-devel] what about rb_gc_mark(): unknown data type In-Reply-To: <48C8941C.1050005@stanford.edu> References: <48C6BF9D.5040408@stanford.edu> <48C6C160.9000505@savagexi.com> <48C6C1AD.6000604@stanford.edu> <48C6C4E4.2000900@stanford.edu> <48C6DEF8.8070302@stanford.edu> <48C6DFFB.4060503@savagexi.com> <48C6DFFB.2010102@stanford.edu> <48C6E0C6.1030502@savagexi.com> <48C862FA.9080406@stanford.edu> <48C88F54.8040500@savagexi.com> <48C8941C.1050005@stanford.edu> Message-ID: <4923CEFF.3020501@savagexi.com> Hi Dmitir, Just to close this thread off... > Charlie Savage wrote: >> Hi Dmitri, >>> >>> Well, after some looking around it seems to me that the problem >>> appears in ruby_xml_parser.c >>> when calling >>> rb_gc_mark(((rx_string_data *)rxp->data)->str); This code has been entirely removed from libxml - so hopefully the problem is now fixed as well. Give the latest version a spin and see if it works for you. Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From cfis at savagexi.com Wed Nov 19 03:41:15 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 01:41:15 -0700 Subject: [libxml-devel] [ANN] nokogiri 1.0.0 Released Message-ID: <4923D12B.9020602@savagexi.com> Hi Aaron, > nokogiri version 1.0.0 has been released! > > * > * > * > > Nokogiri (?) is an HTML, XML, SAX, and Reader parser with XPath and CSS > selector support. So I finally had a chance to take a quick look at Nokogiri, and discovered its another wrapper around libxml. So the obvious question is why didn't you build off the libxml-ruby bindings? And then the next obvious question, would it be better to combine efforts? Seems to me that would be much preferable. > > ### FEATURES: > > * XPath support for document searching > * CSS3 selector support for document searching > * XML/HTML builder > * Drop in replacement for Hpricot I just integrated a patch for adding Hpricot like api to libxml, and would be really interested in adding in CSS3 selector support (I took a quick look through the Nokogiri code for this, and would be happy to port it over to libxml lock-stock-and-barrel if that's ok with you). So we're happy to work together on our end. Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From stephan at spaceboyz.net Wed Nov 19 07:03:56 2008 From: stephan at spaceboyz.net (Stephan Maka) Date: Wed, 19 Nov 2008 13:03:56 +0100 Subject: [libxml-devel] REXML-dropin, a REXML replacement using libxml-ruby In-Reply-To: <4923CE58.4030505@savagexi.com> References: <20080928214222.GH3610@chronos.sin> <4923CE58.4030505@savagexi.com> Message-ID: <20081119120356.GB20597@chronos.sin> Charlie Savage wrote: >> In XMPP4R we're bound to the very intuitive REXML API because that's >> what XMPP4R is about: dealing with XML. I thought the only way out >> would be resembling it. That's why I have started REXML-dropin, a >> wrapper around libxml: >> http://github.com/astro/rexml-dropin/ > Curious how is progress on this? How big a patch would it be to the > libxml-ruby bindings? Should we integrate in your work, or leave it > separate. It did its job for me and I was happy about the positive responses I received. But I saw no patches so far. If you manage to maintain the libxml API usage in it I hope it could catch more development activity in the libxml tree. So yes, please integrate if you feel comfortable with it. Stephan From prufrocks at gmail.com Wed Nov 19 12:34:25 2008 From: prufrocks at gmail.com (Greg) Date: Wed, 19 Nov 2008 12:34:25 -0500 Subject: [libxml-devel] Build error: ld duplicate symbol error Message-ID: <4400adac0811190934v59eab606q8165c5dc9b4fea95@mail.gmail.com> I'm trying to build libxml-ruby-0.9.1 on Mac OS X 10.5.5 but am encountering a duplicate symbol error. Specific error is: ld: duplicate symbol _INPUT_ATTR in ruby_xml_parser.o and ruby_xml_html_parser.o collect2: ld returned 1 exit status make: *** [libxml_ruby.bundle] Error 1 The command that I ran was (note that I'm building against libxml2-2.7.2 rev1 from MacPorts): sudo env ARCHFLAGS="-arch i386" gem install libxml-ruby -- --with-xml2-include=/opt/local/include/libxml2 --with-xml2-lib=/opt/local/lib Output can be found here: http://pastie.org/318853 How can I get around this? Thanks. From cfis at savagexi.com Wed Nov 19 12:46:47 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 10:46:47 -0700 Subject: [libxml-devel] Build error: ld duplicate symbol error In-Reply-To: <4400adac0811190934v59eab606q8165c5dc9b4fea95@mail.gmail.com> References: <4400adac0811190934v59eab606q8165c5dc9b4fea95@mail.gmail.com> Message-ID: <49245107.6040403@savagexi.com> Hi Greg, > I'm trying to build libxml-ruby-0.9.1 on Mac OS X 10.5.5 but am > encountering a duplicate symbol error. Specific error is: > ld: duplicate symbol _INPUT_ATTR in ruby_xml_parser.o and ruby_xml_html_parser.o > collect2: ld returned 1 exit status > make: *** [libxml_ruby.bundle] Error 1 Hmm, ruby_xml_parser.c, ruby_xml_html_parser.c and ruby_xml_sax_parser all have thise code: ID INPUT_ATTR; I'm surprised that is causing an issue though since the variable is only in the c files, and not header files at all. > Output can be found here: > http://pastie.org/318853 > > How can I get around this? Thanks. So can you do an experiment for me and modify the code. Just put a static in front: static ID INPUT_ATT Do it for all three files, recompile, and let me know the results. I assume you'll also have to do the same for: ID CONTEXT_ATTR; Thanks, Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From dhelder at mudynamics.com Wed Nov 19 13:07:41 2008 From: dhelder at mudynamics.com (David Helder) Date: Wed, 19 Nov 2008 10:07:41 -0800 Subject: [libxml-devel] UTF-8 problem In-Reply-To: <4923CCE4.8050907@savagexi.com> References: <458EB412-7AB1-4609-A898-EC47DF85A1A3@mudynamics.com> <4923CCE4.8050907@savagexi.com> Message-ID: <94580A2B-A835-42F1-A187-461DCBEED7E4@mudynamics.com> Charlie, It turns out  isn't a legal character reference in XML 1.0 (see section 4.1). It would be nice if libxml warned or raised an error, but that's more of a libxml issue, not a ruby-libxml issue. David On Nov 19, 2008, at 12:23 AM, Charlie Savage wrote: > I see the same thing. Its hard to know where things are going > wrong. Do you have time to dig into this? From cfis at savagexi.com Wed Nov 19 13:27:27 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 11:27:27 -0700 Subject: [libxml-devel] UTF-8 problem In-Reply-To: <94580A2B-A835-42F1-A187-461DCBEED7E4@mudynamics.com> References: <458EB412-7AB1-4609-A898-EC47DF85A1A3@mudynamics.com> <4923CCE4.8050907@savagexi.com> <94580A2B-A835-42F1-A187-461DCBEED7E4@mudynamics.com> Message-ID: <49245A8F.8060901@savagexi.com> David Helder wrote: > Charlie, > > It turns out  isn't a legal character reference in XML 1.0 (see > section 4.1). It would be nice if libxml warned or raised an error, but > that's more of a libxml issue, not a ruby-libxml issue. Ah good. Ok, will scratch that one off the list. Has the encoding switch worked for you then otherwise? Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From stephen.bannasch at deanbrook.org Wed Nov 19 13:15:48 2008 From: stephen.bannasch at deanbrook.org (Stephen Bannasch) Date: Wed, 19 Nov 2008 13:15:48 -0500 Subject: [libxml-devel] problem updating from to 0.9.1 on macos 10.5.5 In-Reply-To: <4400adac0811190934v59eab606q8165c5dc9b4fea95@mail.gmail.com> References: <4400adac0811190934v59eab606q8165c5dc9b4fea95@mail.gmail.com> Message-ID: I've got a bunch of older lbxml gems installed: $ gem list libxml *** LOCAL GEMS *** libxml-ruby (0.8.3, 0.8.0, 0.6.0, 0.3.8.4) But installing 0.9.1 fails to build the native extensions [dev]$ sudo gem update libxml 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 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function 'ruby_xml_default_tree_indent_string_set': libxml.c:582: warning: pointer targets in passing argument 1 of 'xmlStrdup' differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function 'ruby_xml_default_tree_indent_string_set': libxml.c:582: warning: pointer targets in passing argument 1 of 'xmlStrdup' differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function 'ruby_xml_document_encoding_set': ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of 'xmlStrdup' differ in signedness ruby_xml_document.c: In function 'ruby_xml_document_encoding_set': ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of 'xmlStrdup' 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function 'ruby_init_xml_error': ruby_xml_error.c:205: error: 'XML_FROM_MODULE' undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: 'XML_NS_ERR_EMPTY' undeclared (first use in this function) ruby_xml_error.c: In function 'ruby_init_xml_error': ruby_xml_error.c:205: error: 'XML_FROM_MODULE' undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: 'XML_NS_ERR_EMPTY' undeclared (first use in this function) ruby_xml_error.c:784: error: 'XML_SCHEMAV_CVC_IDC' undeclared (first use in this function) ruby_xml_error.c:785: error: 'XML_SCHEMAV_CVC_WILDCARD' undeclared (first use in this function) ruby_xml_error.c:912: error: 'XML_MODULE_OPEN' undeclared (first use in this function) ruby_xml_error.c:913: error: 'XML_MODULE_CLOSE' undeclared (first use in this function) ruby_xml_error.c:784: error: 'XML_SCHEMAV_CVC_IDC' undeclared (first use in this function) ruby_xml_error.c:785: error: 'XML_SCHEMAV_CVC_WILDCARD' undeclared (first use in this function) ruby_xml_error.c:912: error: 'XML_MODULE_OPEN' undeclared (first use in this function) ruby_xml_error.c:913: error: 'XML_MODULE_CLOSE' undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccIvKg6S.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1/ext/libxml/gem_make.out From cfis at savagexi.com Wed Nov 19 13:49:50 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 11:49:50 -0700 Subject: [libxml-devel] problem updating from to 0.9.1 on macos 10.5.5 In-Reply-To: References: <4400adac0811190934v59eab606q8165c5dc9b4fea95@mail.gmail.com> Message-ID: <49245FCE.5000905@savagexi.com> Stephen, > I've got a bunch of older lbxml gems installed: > > $ gem list libxml > > *** LOCAL GEMS *** > > libxml-ruby (0.8.3, 0.8.0, 0.6.0, 0.3.8.4) > > But installing 0.9.1 fails to build the native extensions Try 0.9.2. I think it solves the issue. See http://rubyforge.org/tracker/index.php?func=detail&aid=22879&group_id=494&atid=1971 Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From noreply at rubyforge.org Tue Nov 18 16:20:12 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 18 Nov 2008 16:20:12 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5 Message-ID: <20081118212012.2DD3D185859F@rubyforge.org> Bugs item #22879, was opened at 2008-11-18 16:20 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: 0.9.0 fails to build on Mac OS 10.5.5 Initial Comment: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccaPOBOS.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 From 8si.greg at gmail.com Tue Nov 18 23:40:48 2008 From: 8si.greg at gmail.com (gf) Date: Tue, 18 Nov 2008 20:40:48 -0800 (PST) Subject: [libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04 In-Reply-To: <20081118210235.ADE9D16780DB@rubyforge.org> References: 20081118210235.ADE9D16780DB@rubyforge.org Message-ID: <646f2fbd-0a96-4b04-baca-77371d1b0599@i18g2000prf.googlegroups.com> The same thing is happening on Mac OS X 10.5.5. So many symbols are undeclared and they don't show up by doing a grep, so I think there must be a missing file. On Nov 18, 2:02?pm, wrote: > Bugs item #22877, was opened at 2008-11-18 15:54 > You can respond by visiting:http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22877&group_i... > > Category: None > Group: None > Status: Open > Resolution: None > Priority: 3 > Submitted By: Nikolay Kolev (nikolay) > Assigned to: Nobody (None) > 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: Kevin Menard (nirvdrum) > Date: 2008-11-18 16: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_i... > _______________________________________________ > libxml-devel mailing list > libxml-de... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/libxml-devel From noreply at rubyforge.org Tue Nov 18 16:17:19 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 18 Nov 2008 16:17:19 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04 Message-ID: <20081118211719.D3926185859A@rubyforge.org> Bugs item #22877, was opened at 2008-11-18 13:54 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22877&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nikolay Kolev (nikolay) Assigned to: Nobody (None) 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: Charlie Savage (cfis) Date: 2008-11-18 14: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 14: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 From noreply at rubyforge.org Tue Nov 18 16:20:17 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 18 Nov 2008 16:20:17 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04 Message-ID: <20081118212017.A136016780DF@rubyforge.org> Bugs item #22877, was opened at 2008-11-18 13:54 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22877&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nikolay Kolev (nikolay) Assigned to: Nobody (None) 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: Charlie Savage (cfis) Date: 2008-11-18 14: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 14: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 14: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 From noreply at rubyforge.org Tue Nov 18 16:34:41 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 18 Nov 2008 16:34:41 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04 Message-ID: <20081118213441.C9F09185859A@rubyforge.org> Bugs item #22877, was opened at 2008-11-18 15:54 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22877&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nikolay Kolev (nikolay) Assigned to: Nobody (None) 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: Kevin Menard (nirvdrum) Date: 2008-11-18 16:34 Message: Yeah. It's looking for more than just that one constant. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-18 16: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 16: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 16: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 From noreply at rubyforge.org Tue Nov 18 16:47:46 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 18 Nov 2008 16:47:46 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5 Message-ID: <20081118214747.18B441858182@rubyforge.org> Bugs item #22879, was opened at 2008-11-18 16:20 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: 0.9.0 fails to build on Mac OS 10.5.5 Initial Comment: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccaPOBOS.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-18 16:47 Message: I can confirm this as well. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 From noreply at rubyforge.org Tue Nov 18 19:53:16 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 18 Nov 2008 19:53:16 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5 Message-ID: <20081119005316.3AD4216780DC@rubyforge.org> Bugs item #22879, was opened at 2008-11-18 13:20 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: 0.9.0 fails to build on Mac OS 10.5.5 Initial Comment: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccaPOBOS.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-18 16:53 Message: I have the same error on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-18 13:47 Message: I can confirm this as well. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 From noreply at rubyforge.org Wed Nov 19 02:02:19 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 02:02:19 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04 Message-ID: <20081119070219.D5FCB18581B0@rubyforge.org> Bugs item #22877, was opened at 2008-11-18 13:54 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22877&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nikolay Kolev (nikolay) Assigned to: Nobody (None) 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: Charlie Savage (cfis) Date: 2008-11-19 00: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 14:34 Message: Yeah. It's looking for more than just that one constant. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-18 14: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 14: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 14: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 From noreply at rubyforge.org Wed Nov 19 02:03:09 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 02:03:09 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5 Message-ID: <20081119070309.885EF18581AE@rubyforge.org> Bugs item #22879, was opened at 2008-11-18 14:20 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: 0.9.0 fails to build on Mac OS 10.5.5 Initial Comment: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccaPOBOS.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-19 00:03 Message: Steve, Kevin, Try the 0.9.1 release and see if that works for you. Looks like OS X has a fairly old version of libxml (definitely older than Ubuntu 10.4). ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-18 17:53 Message: I have the same error on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-18 14:47 Message: I can confirm this as well. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 From noreply at rubyforge.org Wed Nov 19 02:49:15 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 02:49:15 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-12314 ] node.to_s doesn't print the XML on 64bit AMD? Message-ID: <20081119074916.1B67918581A2@rubyforge.org> Bugs item #12314, was opened at 2007-07-15 20:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=12314&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) Assigned to: Charlie Savage (cfis) Summary: node.to_s doesn't print the XML on 64bit AMD? Initial Comment: I' trying to rerun a project from last year, but the code behaves differently to the old system. Old system Linux oldsrv 2.6.10-1.12_FC2 #1 Wed Feb 2 01:13:49 EST 2005 i686 athlon i386 GNU/Linux alex at oldsrv:~ ruby -v ruby 1.8.3 (2005-09-21) [i686-linux] New system Linux newsrv 2.6.15-26-amd64-server #1 SMP Thu Aug 3 03:32:26 UTC 2006 x86_64 GNU/Linux kru031 at newsrv:~ ruby -v ruby 1.8.4 (2005-12-24) [x86_64-linux] root at newsrv:~ dpkg -l | grep ruby ii libfcgi-ruby1.8 0.8.6-1 FastCGI library for Ruby ii libmysql-ruby 2.7-1.1build2 MySQL module for Ruby ii libmysql-ruby1.8 2.7-1.1build2 MySQL module for Ruby 1.8 ii libreadline-ruby1.8 1.8.4-1ubuntu1.3 Readline interface for Ruby 1.8 ii libreadline-ruby1.9 1.9.0+20060423-3ubuntu1 Readline interface for Ruby 1.9 ii libruby1.8 1.8.4-1ubuntu1.3 Libraries necessary to run Ruby 1.8 ii libruby1.9 1.9.0+20060423-3ubuntu1 Libraries necessary to run Ruby 1.9 ii libxml-ruby1.8 0.3.4-4 Ruby interface to libxml ii libxslt-ruby1.8 0.3.4-3 Ruby interface to libxslt ii libzlib-ruby 0.6.0+ruby1.8.2-1 Extension library to use zlib from Ruby ii rdoc 1.8.2-1 Generate documentation from ruby source file ii ruby 1.8.2-1 An interpreter of object-oriented scripting ii ruby1.8 1.8.4-1ubuntu1.3 Interpreter of object-oriented scripting lan ii ruby1.8-dev 1.8.4-1ubuntu1.3 Header files for compiling extension modules root at rosella:~ dpkg -l | grep xml ii libxml-ruby1.8 0.3.4-4 Ruby interface to libxml ii libxml2 2.6.24.dfsg-1ubuntu1 GNOME XML library ii libxml2-dev 2.6.24.dfsg-1ubuntu1 Development files for the GNOME XML library ii libxml2-utils 2.6.24.dfsg-1ubuntu1 XML utilities example code: 1 xmldoc.find(an_xpath).each do |matchingnode| 2 outfile << "\n" 3 outfile << "#{matchingnode.path}\n" 4 outfile << matchingnode 5 outfile << "\n\n" 6 count+=3+matchingnode.to_s.count("\n") 7 end Line 3 works fine under both systems. On the old system line 4 printed the node (subtree), on the new system it prints an empty string or only some text nodes from within the tree. On every other file it crashes: undefined method `count' for nil:NilClass (NoMethodError) Any hint would be appreciated! sledgy .at. gmx.net ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-19 00:49 Message: No updates have been added to this ticket, so closing. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-07-10 16:17 Message: Can you try again with the lastest version? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=12314&group_id=494 From noreply at rubyforge.org Wed Nov 19 02:50:07 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 02:50:07 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-19935 ] Impossible specify encoding for HTMLParser Message-ID: <20081119075008.1777C18581A2@rubyforge.org> Bugs item #19935, was opened at 2008-05-04 08:54 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=19935&group_id=494 Category: General Group: v0.5 >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Impossible specify encoding for HTMLParser Initial Comment: HTMLParser don't have any methods to set encoding for document when automatic detection work wrong. ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-19 00:50 Message: This has been added in the 0.9.x series of libxml. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=19935&group_id=494 From noreply at rubyforge.org Wed Nov 19 09:13:12 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 09:13:12 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04 Message-ID: <20081119141312.470F216780DB@rubyforge.org> Bugs item #22877, was opened at 2008-11-18 15:54 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22877&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nikolay Kolev (nikolay) Assigned to: Nobody (None) 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: Kevin Menard (nirvdrum) Date: 2008-11-19 09: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-19 02: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 16:34 Message: Yeah. It's looking for more than just that one constant. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-18 16: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 16: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 16: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 From noreply at rubyforge.org Wed Nov 19 09:20:07 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 09:20:07 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5 Message-ID: <20081119142008.214A11D780CD@rubyforge.org> Bugs item #22879, was opened at 2008-11-18 16:20 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: 0.9.0 fails to build on Mac OS 10.5.5 Initial Comment: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccaPOBOS.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-19 09:20 Message: Got closer, but still not quite there: $ sudo gem install libxml-ruby Building native extensions. This could take a while... ERROR: Error installing libxml-ruby: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccDDG0cP.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1/ext/libxml/gem_make.out ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 02:03 Message: Steve, Kevin, Try the 0.9.1 release and see if that works for you. Looks like OS X has a fairly old version of libxml (definitely older than Ubuntu 10.4). ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-18 19:53 Message: I have the same error on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-18 16:47 Message: I can confirm this as well. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 From noreply at rubyforge.org Wed Nov 19 12:40:35 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 12:40:35 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04 Message-ID: <20081119174035.8F9AC18581A2@rubyforge.org> Bugs item #22877, was opened at 2008-11-18 13: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: Charlie Savage (cfis) Date: 2008-11-19 10: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 07: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-19 00: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 14:34 Message: Yeah. It's looking for more than just that one constant. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-18 14: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 14: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 14: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 From noreply at rubyforge.org Wed Nov 19 13:11:49 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 13:11:49 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5 Message-ID: <20081119181149.7F24E18581AD@rubyforge.org> Bugs item #22879, was opened at 2008-11-18 14:20 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: 0.9.0 fails to build on Mac OS 10.5.5 Initial Comment: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccaPOBOS.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 ---------------------------------------------------------------------- Comment By: Geoff Cheshire (gtcaz) Date: 2008-11-19 11:11 Message: Yes, I'm getting this as well. http://gist.github.com/26612 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-19 07:20 Message: Got closer, but still not quite there: $ sudo gem install libxml-ruby Building native extensions. This could take a while... ERROR: Error installing libxml-ruby: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccDDG0cP.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1/ext/libxml/gem_make.out ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 00:03 Message: Steve, Kevin, Try the 0.9.1 release and see if that works for you. Looks like OS X has a fairly old version of libxml (definitely older than Ubuntu 10.4). ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-18 17:53 Message: I have the same error on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-18 14:47 Message: I can confirm this as well. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 From noreply at rubyforge.org Wed Nov 19 13:12:35 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 13:12:35 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5 Message-ID: <20081119181235.7FA3116780DB@rubyforge.org> Bugs item #22879, was opened at 2008-11-18 14:20 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: 0.9.0 fails to build on Mac OS 10.5.5 Initial Comment: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccaPOBOS.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-19 11:12 Message: A new 0.9.2 release has been pushed up, see if that solves the problem. Thanks - Charlie ---------------------------------------------------------------------- Comment By: Geoff Cheshire (gtcaz) Date: 2008-11-19 11:11 Message: Yes, I'm getting this as well. http://gist.github.com/26612 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-19 07:20 Message: Got closer, but still not quite there: $ sudo gem install libxml-ruby Building native extensions. This could take a while... ERROR: Error installing libxml-ruby: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccDDG0cP.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1/ext/libxml/gem_make.out ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 00:03 Message: Steve, Kevin, Try the 0.9.1 release and see if that works for you. Looks like OS X has a fairly old version of libxml (definitely older than Ubuntu 10.4). ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-18 17:53 Message: I have the same error on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-18 14:47 Message: I can confirm this as well. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 From noreply at rubyforge.org Wed Nov 19 13:30:55 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 13:30:55 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5 Message-ID: <20081119183055.589FC185859F@rubyforge.org> Bugs item #22879, was opened at 2008-11-18 16:20 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: 0.9.0 fails to build on Mac OS 10.5.5 Initial Comment: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccaPOBOS.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 ---------------------------------------------------------------------- Comment By: Nate Smith (nwjsmith) Date: 2008-11-19 13:30 Message: I just checked out the 0.9.2 build, and it installed fine. This was after 0.9.1 and 0.9.0 failed. Give it a shot. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 13:12 Message: A new 0.9.2 release has been pushed up, see if that solves the problem. Thanks - Charlie ---------------------------------------------------------------------- Comment By: Geoff Cheshire (gtcaz) Date: 2008-11-19 13:11 Message: Yes, I'm getting this as well. http://gist.github.com/26612 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-19 09:20 Message: Got closer, but still not quite there: $ sudo gem install libxml-ruby Building native extensions. This could take a while... ERROR: Error installing libxml-ruby: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccDDG0cP.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1/ext/libxml/gem_make.out ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 02:03 Message: Steve, Kevin, Try the 0.9.1 release and see if that works for you. Looks like OS X has a fairly old version of libxml (definitely older than Ubuntu 10.4). ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-18 19:53 Message: I have the same error on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-18 16:47 Message: I can confirm this as well. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 From noreply at rubyforge.org Wed Nov 19 13:39:46 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 13:39:46 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5 Message-ID: <20081119183946.A39D216780DB@rubyforge.org> Bugs item #22879, was opened at 2008-11-18 13:20 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: 0.9.0 fails to build on Mac OS 10.5.5 Initial Comment: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccaPOBOS.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-19 10:39 Message: The 0.9.2 build worked fine on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Nate Smith (nwjsmith) Date: 2008-11-19 10:30 Message: I just checked out the 0.9.2 build, and it installed fine. This was after 0.9.1 and 0.9.0 failed. Give it a shot. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 10:12 Message: A new 0.9.2 release has been pushed up, see if that solves the problem. Thanks - Charlie ---------------------------------------------------------------------- Comment By: Geoff Cheshire (gtcaz) Date: 2008-11-19 10:11 Message: Yes, I'm getting this as well. http://gist.github.com/26612 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-19 06:20 Message: Got closer, but still not quite there: $ sudo gem install libxml-ruby Building native extensions. This could take a while... ERROR: Error installing libxml-ruby: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccDDG0cP.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1/ext/libxml/gem_make.out ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-18 23:03 Message: Steve, Kevin, Try the 0.9.1 release and see if that works for you. Looks like OS X has a fairly old version of libxml (definitely older than Ubuntu 10.4). ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-18 16:53 Message: I have the same error on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-18 13:47 Message: I can confirm this as well. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 From noreply at rubyforge.org Wed Nov 19 13:51:14 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 13:51:14 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5 Message-ID: <20081119185114.5E30016780DB@rubyforge.org> Bugs item #22879, was opened at 2008-11-18 14:20 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: 0.9.0 fails to build on Mac OS 10.5.5 Initial Comment: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccaPOBOS.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-19 11:51 Message: Steve, Nate - thanks for the update and good news. Geoff, Kevin - does it now work for you now also? Chralie ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-19 11:39 Message: The 0.9.2 build worked fine on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Nate Smith (nwjsmith) Date: 2008-11-19 11:30 Message: I just checked out the 0.9.2 build, and it installed fine. This was after 0.9.1 and 0.9.0 failed. Give it a shot. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 11:12 Message: A new 0.9.2 release has been pushed up, see if that solves the problem. Thanks - Charlie ---------------------------------------------------------------------- Comment By: Geoff Cheshire (gtcaz) Date: 2008-11-19 11:11 Message: Yes, I'm getting this as well. http://gist.github.com/26612 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-19 07:20 Message: Got closer, but still not quite there: $ sudo gem install libxml-ruby Building native extensions. This could take a while... ERROR: Error installing libxml-ruby: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccDDG0cP.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1/ext/libxml/gem_make.out ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 00:03 Message: Steve, Kevin, Try the 0.9.1 release and see if that works for you. Looks like OS X has a fairly old version of libxml (definitely older than Ubuntu 10.4). ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-18 17:53 Message: I have the same error on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-18 14:47 Message: I can confirm this as well. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 From aaron.patterson at gmail.com Wed Nov 19 14:39:26 2008 From: aaron.patterson at gmail.com (Aaron Patterson) Date: Wed, 19 Nov 2008 11:39:26 -0800 Subject: [libxml-devel] [ANN] nokogiri 1.0.0 Released In-Reply-To: <4923D12B.9020602@savagexi.com> References: <4923D12B.9020602@savagexi.com> Message-ID: <6959e1680811191139l7786a427lec606df8dc06d16d@mail.gmail.com> Hey Charlie, 2008/11/19 Charlie Savage : > Hi Aaron, > >> nokogiri version 1.0.0 has been released! >> >> * >> * >> * >> >> Nokogiri (?) is an HTML, XML, SAX, and Reader parser with XPath and CSS >> selector support. > > So I finally had a chance to take a quick look at Nokogiri, and discovered > its another wrapper around libxml. Awesome. Indeed it is. I hope you found the build process easy! > So the obvious question is why didn't you build off the libxml-ruby > bindings? And then the next obvious question, would it be better to > combine efforts? Seems to me that would be much preferable. I tried to build off the libxml-ruby bindings. You'll notice the 7 patches I submitted back in July: http://skitch.com/aaronpatterson/hdyw/rubyforge-libxml-mozilla-firefox-build-2008102920 (looks like I've submitted more patches than anyone else) The velocity of libxml-ruby development was too slow for me. I have severe ADD (not really, but I am impatient), and waiting for my patches to get applied or rejected was too much work and took too much time. I wanted to break free of supporting legacy code, and having non-productive conversations like this one: http://rubyforge.org/pipermail/libxml-devel/2008-July/000932.html After trying to build the functionality I needed on top of libxml-ruby, I finally got tired of contorting around the API. These hindering aspects made writing my own library seem like the path of least resistance. I think you are an excellent developer, and I am glad to work with you. If I find any bugs, or things I want to patch, I will definitely send them in. >> >> ### FEATURES: >> >> * XPath support for document searching >> * CSS3 selector support for document searching >> * XML/HTML builder >> * Drop in replacement for Hpricot > > I just integrated a patch for adding Hpricot like api to libxml, and would > be really interested in adding in CSS3 selector support (I took a quick look > through the Nokogiri code for this, and would be happy to port it over to > libxml lock-stock-and-barrel if that's ok with you). Great! Nokogiri has an MIT license, so go for it. :-) > So we're happy to work together on our end. We are too. Feel free to steal our code, or submit patches: http://github.com/tenderlove/nokogiri/tree/master We'd be happy to have you help. :-) Right now there are a few major things I want to add: * JRuby/Rubinius support via FFI * DOM1 implementation (other versions later) * Custom XPath functions -- Aaron Patterson http://tenderlovemaking.com/ From avatar382 at gmail.com Wed Nov 19 14:48:26 2008 From: avatar382 at gmail.com (avatar382) Date: Wed, 19 Nov 2008 11:48:26 -0800 (PST) Subject: [libxml-devel] XML Schema validation of multiple namespaces in a document Message-ID: Hi all, I'll ask the question in one sentence first, and then I'll explain what I am trying to do. Does libxml-ruby provide a way to validate a document against multiple XML Schemas such that any XML in different namespaces, with other XML Schemas mapped to the namespaces in an xsi:schemaLocation attribute on the root element are validated against their respective schemas if they are present? Example document: 42 some text So in this example, there is a snippet of XML in the BAR namespace, and another in the BAZ namespace. The xsi:schemaLocation attribute has an XML schema mapped to the BAR namespace, but not to the BAZ namespace. I'd like to validate the whole document against the the FOO schema. With other namespaces, the XML is to be validated if a schema is present for that namespace, and ignored otherwise. My ruby code currently looks like this: doc = LibXML::XML::Document.file path_to_xml_file schema = LibXML::XML::Schema.new url_to_foo_schema puts doc.validate_schema schema The document is validating, even though the XML in the BAR namespace doesn't conform to the Schema for the BAR namespace. Thanks! From noreply at rubyforge.org Wed Nov 19 14:50:09 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 14:50:09 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5 Message-ID: <20081119195010.33EFF16780DB@rubyforge.org> Bugs item #22879, was opened at 2008-11-18 14:20 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 Category: General Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) >Assigned to: Charlie Savage (cfis) Summary: 0.9.0 fails to build on Mac OS 10.5.5 Initial Comment: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccaPOBOS.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-19 12:50 Message: Hey Kevin, Ah good. And no problem, want to get this new release out since its really a step up in stability from older releases. And thanks for your patience and testsing. Charlie ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-19 12:12 Message: Works for me. Thanks for the fast fix on this and the Ubuntu issues. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 11:51 Message: Steve, Nate - thanks for the update and good news. Geoff, Kevin - does it now work for you now also? Chralie ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-19 11:39 Message: The 0.9.2 build worked fine on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Nate Smith (nwjsmith) Date: 2008-11-19 11:30 Message: I just checked out the 0.9.2 build, and it installed fine. This was after 0.9.1 and 0.9.0 failed. Give it a shot. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 11:12 Message: A new 0.9.2 release has been pushed up, see if that solves the problem. Thanks - Charlie ---------------------------------------------------------------------- Comment By: Geoff Cheshire (gtcaz) Date: 2008-11-19 11:11 Message: Yes, I'm getting this as well. http://gist.github.com/26612 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-19 07:20 Message: Got closer, but still not quite there: $ sudo gem install libxml-ruby Building native extensions. This could take a while... ERROR: Error installing libxml-ruby: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccDDG0cP.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1/ext/libxml/gem_make.out ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 00:03 Message: Steve, Kevin, Try the 0.9.1 release and see if that works for you. Looks like OS X has a fairly old version of libxml (definitely older than Ubuntu 10.4). ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-18 17:53 Message: I have the same error on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-18 14:47 Message: I can confirm this as well. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 From noreply at rubyforge.org Wed Nov 19 14:12:48 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 14:12:48 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5 Message-ID: <20081119191249.0BD3416780DB@rubyforge.org> Bugs item #22879, was opened at 2008-11-18 16:20 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: 0.9.0 fails to build on Mac OS 10.5.5 Initial Comment: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb update 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:206: error: ?XML_FROM_I18N? undeclared (first use in this function) ruby_xml_error.c:207: error: ?XML_FROM_SCHEMATRONV? undeclared (first use in this function) ruby_xml_error.c:312: error: ?XML_WAR_SPACE_VALUE? undeclared (first use in this function) ruby_xml_error.c:313: error: ?XML_ERR_NOT_STANDALONE? undeclared (first use in this function) ruby_xml_error.c:314: error: ?XML_ERR_ENTITY_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:315: error: ?XML_ERR_NOTATION_PROCESSING? undeclared (first use in this function) ruby_xml_error.c:316: error: ?XML_WAR_NS_COLUMN? undeclared (first use in this function) ruby_xml_error.c:317: error: ?XML_WAR_ENTITY_REDEFINED? undeclared (first use in this function) ruby_xml_error.c:322: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:514: error: ?XML_TREE_NOT_UTF8? undeclared (first use in this function) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:778: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:779: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:780: error: ?XML_SCHEMAV_MISC? undeclared (first use in this function) ruby_xml_error.c:789: error: ?XML_C14N_UNKNOW_NODE? undeclared (first use in this function) ruby_xml_error.c:790: error: ?XML_C14N_RELATIVE_NAMESPACE? undeclared (first use in this function) ruby_xml_error.c:794: error: ?XML_FTP_URL_SYNTAX? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) ruby_xml_error.c:878: error: ?XML_SCHEMAP_C_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:879: error: ?XML_SCHEMAP_SRC_REDEFINE? undeclared (first use in this function) ruby_xml_error.c:880: error: ?XML_SCHEMAP_SRC_IMPORT? undeclared (first use in this function) ruby_xml_error.c:881: error: ?XML_SCHEMAP_WARN_SKIP_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:882: error: ?XML_SCHEMAP_WARN_UNLOCATED_SCHEMA? undeclared (first use in this function) ruby_xml_error.c:883: error: ?XML_SCHEMAP_WARN_ATTR_REDECL_PROH? undeclared (first use in this function) ruby_xml_error.c:884: error: ?XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH? undeclared (first use in this function) ruby_xml_error.c:885: error: ?XML_SCHEMAP_AG_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:886: error: ?XML_SCHEMAP_COS_CT_EXTENDS_1_2? undeclared (first use in this function) ruby_xml_error.c:887: error: ?XML_SCHEMAP_AU_PROPS_CORRECT? undeclared (first use in this function) ruby_xml_error.c:888: error: ?XML_SCHEMAP_A_PROPS_CORRECT_3? undeclared (first use in this function) ruby_xml_error.c:889: error: ?XML_SCHEMAP_COS_ALL_LIMITED? 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) ruby_xml_error.c:892: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:893: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:932: error: ?XML_I18N_NO_NAME? undeclared (first use in this function) ruby_xml_error.c:933: error: ?XML_I18N_NO_HANDLER? undeclared (first use in this function) ruby_xml_error.c:934: error: ?XML_I18N_EXCESS_HANDLER? undeclared (first use in this function) ruby_xml_error.c:935: error: ?XML_I18N_CONV_FAILED? undeclared (first use in this function) ruby_xml_error.c:936: error: ?XML_I18N_NO_OUTPUT? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccaPOBOS.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-19 14:12 Message: Works for me. Thanks for the fast fix on this and the Ubuntu issues. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 13:51 Message: Steve, Nate - thanks for the update and good news. Geoff, Kevin - does it now work for you now also? Chralie ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-19 13:39 Message: The 0.9.2 build worked fine on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Nate Smith (nwjsmith) Date: 2008-11-19 13:30 Message: I just checked out the 0.9.2 build, and it installed fine. This was after 0.9.1 and 0.9.0 failed. Give it a shot. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 13:12 Message: A new 0.9.2 release has been pushed up, see if that solves the problem. Thanks - Charlie ---------------------------------------------------------------------- Comment By: Geoff Cheshire (gtcaz) Date: 2008-11-19 13:11 Message: Yes, I'm getting this as well. http://gist.github.com/26612 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-19 09:20 Message: Got closer, but still not quite there: $ sudo gem install libxml-ruby Building native extensions. This could take a while... ERROR: Error installing libxml-ruby: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install 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 xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include ... 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c libxml.c libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: warning: pointer targets in assignment differ in signedness libxml.c: In function ?ruby_xml_default_tree_indent_string_set?: libxml.c:582: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness libxml.c:582: 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_document.c ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? differ in signedness ruby_xml_document.c: In function ?ruby_xml_document_encoding_set?: ruby_xml_document.c:545: warning: pointer targets in passing argument 1 of ?xmlStrdup? 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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -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/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\extconf.h\ -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/usr/include/libxml2 -I/usr/local/include -c ruby_xml_error.c ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c: In function ?ruby_init_xml_error?: ruby_xml_error.c:205: error: ?XML_FROM_MODULE? undeclared (first use in this function) ruby_xml_error.c:205: error: (Each undeclared identifier is reported only once ruby_xml_error.c:205: error: for each function it appears in.) ruby_xml_error.c:326: error: ?XML_NS_ERR_EMPTY? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) ruby_xml_error.c:784: error: ?XML_SCHEMAV_CVC_IDC? undeclared (first use in this function) ruby_xml_error.c:785: error: ?XML_SCHEMAV_CVC_WILDCARD? undeclared (first use in this function) ruby_xml_error.c:912: error: ?XML_MODULE_OPEN? undeclared (first use in this function) ruby_xml_error.c:913: error: ?XML_MODULE_CLOSE? undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccDDG0cP.out (No such file or directory) make: *** [ruby_xml_error.o] Error 1 Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.9.1/ext/libxml/gem_make.out ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-19 02:03 Message: Steve, Kevin, Try the 0.9.1 release and see if that works for you. Looks like OS X has a fairly old version of libxml (definitely older than Ubuntu 10.4). ---------------------------------------------------------------------- Comment By: Steve Zich (szich) Date: 2008-11-18 19:53 Message: I have the same error on OS X 10.4.11 ---------------------------------------------------------------------- Comment By: Kevin Menard (nirvdrum) Date: 2008-11-18 16:47 Message: I can confirm this as well. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22879&group_id=494 From cfis at savagexi.com Wed Nov 19 15:09:06 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 13:09:06 -0700 Subject: [libxml-devel] [ANN] nokogiri 1.0.0 Released In-Reply-To: <6959e1680811191139l7786a427lec606df8dc06d16d@mail.gmail.com> References: <4923D12B.9020602@savagexi.com> <6959e1680811191139l7786a427lec606df8dc06d16d@mail.gmail.com> Message-ID: <49247262.7020803@savagexi.com> Hey Aaron, >> So the obvious question is why didn't you build off the libxml-ruby >> bindings? And then the next obvious question, would it be better to >> combine efforts? Seems to me that would be much preferable. > > I tried to build off the libxml-ruby bindings. You'll notice the 7 > patches I submitted back in July: > > http://skitch.com/aaronpatterson/hdyw/rubyforge-libxml-mozilla-firefox-build-2008102920 > > (looks like I've submitted more patches than anyone else) > > The velocity of libxml-ruby development was too slow for me. I have > severe ADD (not really, but I am impatient), and waiting for my > patches to get applied or rejected was too much work and took too much > time. Ah, fair enough. Its a good point and I'm trying to act more quickly on patches (fyi, I think all of yours are applied now). Sorry that we didn't respond quickly enough - we definitely don't want to drive people away. > After trying to build the functionality I needed on top of > libxml-ruby, I finally got tired of contorting around the API. These > hindering aspects made writing my own library seem like the path of > least resistance. Yup, makes sense. I'm wondering though, since Ruby is so flexible, if it would be possible to put different apis on top of the underlying C code. And the C core is the hard bit, maybe we can share that? I know you were in favor of moving as much of the api as possible to Ruby, and I agree with that, and have been doing that. And as far as installation and namespace discussions, I think we're finally past those (thankfully). >> I just integrated a patch for adding Hpricot like api to libxml, and would >> be really interested in adding in CSS3 selector support (I took a quick look >> through the Nokogiri code for this, and would be happy to port it over to >> libxml lock-stock-and-barrel if that's ok with you). > > Great! Nokogiri has an MIT license, so go for it. :-) Cool - its a neat feature. > >> So we're happy to work together on our end. > > We are too. Feel free to steal our code, or submit patches: > > http://github.com/tenderlove/nokogiri/tree/master > > We'd be happy to have you help. :-) > > Right now there are a few major things I want to add: > > * JRuby/Rubinius support via FFI > * DOM1 implementation (other versions later) > * Custom XPath functions So, a few more thoughts. In the end, how much different is nokogiri's api versus libxml? Is it really different, or just some changes around the edges (like find is called search, etc.). Thinking about future development, it seems we could: * Have two separate projects, where we borrow code, share ideas, etc. * Move to a single C code base, but still have two different projects where each provides its own api. * Have one project, where we let the user provide different apis (Hpricot, Nokogiri, libxml-ruby, Rexml). Note sure if #2 or #3 are viable, but I'd be happy to give it some more thought. I'm also happy to add you guys in as developers to libxml-ruby (so you don't have to wait around for me to do stuff). Let me know what you think! Charlie Savage http://cfis.savagexi.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From cfis at savagexi.com Wed Nov 19 15:13:46 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 13:13:46 -0700 Subject: [libxml-devel] XML Schema validation of multiple namespaces in a document In-Reply-To: References: Message-ID: <4924737A.5030004@savagexi.com> Hi avatar382, > I'll ask the question in one sentence first, and then I'll explain > what I am trying to do. > > Does libxml-ruby provide a way to validate a document against multiple > XML Schemas such that any XML in different namespaces, with other XML > Schemas mapped to the namespaces in an xsi:schemaLocation attribute on > the root element are validated against their respective schemas if > they are present? Boy, its been a while since I've used XML Schemas. So, a couple questions for you: * Does XML Schema support this (and would something like XMLSpy or Visual Studio work with your example)? * If yes, then do you know if using libxml directly works for you? Libxml has some command line tools that let you access its functionality directly. * And if yes again, then I'm happy to look at the ruby bindings and see if there is something there we can make better. > > Example document: > > > xmlns:FOO="http://foo.org/FOO" > xmlns:BAR="http://bar.org" > xmlns:BAZ="http://baz.org" > xsi:schemaLocation="http://foo.org http://foo.org/foo.xsd > http://bar.org http://bar.org/bar.xsd"> > > 42 > > > some text > > > > So in this example, there is a snippet of XML in the BAR namespace, > and another in the BAZ namespace. The xsi:schemaLocation attribute has > an XML schema mapped to the BAR namespace, but not to the BAZ > namespace. > > I'd like to validate the whole document against the the FOO schema. > With other namespaces, the XML is to be validated if a schema is > present for that namespace, and ignored otherwise. > > My ruby code currently looks like this: > > doc = LibXML::XML::Document.file path_to_xml_file > schema = LibXML::XML::Schema.new url_to_foo_schema > > puts doc.validate_schema schema What happens if you try this in a different tool. So take the xml file, the schema file, and validate it using libxml command line tools or any number of IDEs that support xml/xml schema. Just trying to figure out if this is a ruby bindings issue, libxml issue, or xml schema issue. Thanks, Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From cfis at savagexi.com Wed Nov 19 15:28:43 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 13:28:43 -0700 Subject: [libxml-devel] Fancy new documentation Message-ID: <492476FB.80905@savagexi.com> Thought I'd let everyone know that the pending 0.9.x series has fancy new documentation. Check it out: http://libxml.rubyforge.org/rdoc/index.html Most classes are now documented, and most of the C methods. If anyone wants to document the newer Ruby methods, I'd be happy to apply patches. Charlie -- Charlie Savage http://cfis.savagexi.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From transfire at gmail.com Wed Nov 19 20:58:50 2008 From: transfire at gmail.com (Trans) Date: Wed, 19 Nov 2008 17:58:50 -0800 (PST) Subject: [libxml-devel] Fancy new documentation In-Reply-To: <492476FB.80905@savagexi.com> References: <492476FB.80905@savagexi.com> Message-ID: On Nov 19, 3:28?pm, Charlie Savage wrote: > Thought I'd let everyone know that the pending 0.9.x series has fancy > new documentation. ?Check it out: > > http://libxml.rubyforge.org/rdoc/index.html > > Most classes are now documented, and most of the C methods. ?If anyone > wants to document the newer Ruby methods, I'd be happy to apply patches. Very nice! T. From noreply at rubyforge.org Wed Nov 19 21:35:52 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 19 Nov 2008 21:35:52 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04 Message-ID: <20081120023552.8D33A16780DD@rubyforge.org> 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 From stephen.bannasch at deanbrook.org Wed Nov 19 23:09:50 2008 From: stephen.bannasch at deanbrook.org (Stephen Bannasch) Date: Wed, 19 Nov 2008 23:09:50 -0500 Subject: [libxml-devel] updated XML benchmarks Message-ID: [BTW: The new documentation looks great Charlie!] I've updated my simple ruby xml benchmark which measures the time to open a 98k XML document and count one type of leaf element (466 entries) 100 times. https://svn.concord.org/svn/projects/trunk/common/ruby/xml_benchmarks/ The summary is that for this one test using libxml in MRI and jdom_document_builder (a native Java library) in JRuby take just about the same time. This is similar to the last time I ran these benchmarks. JRuby 1.1.5 has gotten much faster running pure Ruby code and now runs rexml about 30% faster than MRI. Hpricot is about 5 times slower than libxml and jdom_document_builder and runs slightly faster in JRuby. Tests run on a MacBook Pro, Mac OS X 10.5.5, 4GB memory, 2.5 GHz Intel Core 2 Duo. hpricot 0.6.164 libxml: 0.9.2 All benchmarks were run twice in sequence and the measurements presented here are from the second run. Java automatically optimizes JRuby code which is run many times and the speedup from the first to the second test is from 40 to 75%. There is no essential difference in the speed of the C version of Ruby between the first test and the second. 100 times: Open 98k XML document and count one type of leaf element (466 entries) JRuby (Java 1.6.0_03-p3-Soylatte using server mode): jdom_document_builder 0.360 MRI: libxml v0.9.2 0.383 JRuby (Java 1.6.0_07): jdom_document_builder 0.401 JRuby (Java 1.5.0_16): jdom_document_builder 0.428 JRuby (Java 1.6.0_03-p3-Soylatte using server mode): hpricot 1.977 JRuby (Java 1.5.0_16): hpricot 2.027 JRuby (Java 1.6.0_07): hpricot 2.094 MRI: hpricot 2.140 JRuby (Java 1.6.0_03-p3-Soylatte using server mode): rexml 5.488 JRuby (Java 1.5.0_16): rexml 5.569 JRuby (Java 1.5.0_16): rexml 5.578 MRI: rexml 8.606 From aaron at tenderlovemaking.com Wed Nov 19 23:05:57 2008 From: aaron at tenderlovemaking.com (Aaron Patterson) Date: Wed, 19 Nov 2008 20:05:57 -0800 Subject: [libxml-devel] [ANN] nokogiri 1.0.0 Released In-Reply-To: <49247262.7020803@savagexi.com> References: <4923D12B.9020602@savagexi.com> <6959e1680811191139l7786a427lec606df8dc06d16d@mail.gmail.com> <49247262.7020803@savagexi.com> Message-ID: <20081120040557.GA5435@mac-mini.local> On Wed, Nov 19, 2008 at 01:09:06PM -0700, Charlie Savage wrote: >> After trying to build the functionality I needed on top of >> libxml-ruby, I finally got tired of contorting around the API. These >> hindering aspects made writing my own library seem like the path of >> least resistance. > > Yup, makes sense. I'm wondering though, since Ruby is so flexible, if > it would be possible to put different apis on top of the underlying C > code. And the C core is the hard bit, maybe we can share that? I'm not sure. I haven't looked at the libxml-ruby source in a few months now, but I believe our memory management schemes are different. > > I know you were in favor of moving as much of the api as possible to > Ruby, and I agree with that, and have been doing that. > > And as far as installation and namespace discussions, I think we're > finally past those (thankfully). > >>> I just integrated a patch for adding Hpricot like api to libxml, and would >>> be really interested in adding in CSS3 selector support (I took a quick look >>> through the Nokogiri code for this, and would be happy to port it over to >>> libxml lock-stock-and-barrel if that's ok with you). >> >> Great! Nokogiri has an MIT license, so go for it. :-) > > Cool - its a neat feature. >> >>> So we're happy to work together on our end. >> >> We are too. Feel free to steal our code, or submit patches: >> >> http://github.com/tenderlove/nokogiri/tree/master >> >> We'd be happy to have you help. :-) >> >> Right now there are a few major things I want to add: >> >> * JRuby/Rubinius support via FFI >> * DOM1 implementation (other versions later) >> * Custom XPath functions > > So, a few more thoughts. In the end, how much different is nokogiri's > api versus libxml? Is it really different, or just some changes around > the edges (like find is called search, etc.). I'm not sure. I don't really use libxml-ruby. The way we deal with Hpricot's API (any differences between Hpricot and Nokogiri anyway) is a decoration system. You simply have to define modules containing the different functionality, and Nokogiri will mix the module in to every node. So defining a libxml-ruby compatible layer would be pretty easy. I just don't have any desire to do it. It doesn't solve any of my problems. :-\ > Thinking about future development, it seems we could: > > * Have two separate projects, where we borrow code, share ideas, etc. > * Move to a single C code base, but still have two different projects > where each provides its own api. > * Have one project, where we let the user provide different apis > (Hpricot, Nokogiri, libxml-ruby, Rexml). I prefer the separate project solution. I'm not sure what bits of our code overlaps. I think our underlying C bits are too different. I'm all for sharing, but I like the project I have set up now. > Note sure if #2 or #3 are viable, but I'd be happy to give it some more > thought. I'm also happy to add you guys in as developers to libxml-ruby > (so you don't have to wait around for me to do stuff). Sure. I don't mind having commit. If you'd like to hack on Nokogiri, I'd be glad to add you to our project. -- Aaron Patterson http://tenderlovemaking.com/ From cfis at savagexi.com Wed Nov 19 23:41:17 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 21:41:17 -0700 Subject: [libxml-devel] updated XML benchmarks In-Reply-To: References: Message-ID: <4924EA6D.1000904@savagexi.com> Hi Stephan, > I've updated my simple ruby xml benchmark which measures the time to > open a 98k XML document and count one type of leaf element (466 entries) > 100 times. > > https://svn.concord.org/svn/projects/trunk/common/ruby/xml_benchmarks/ > > The summary is that for this one test using libxml in MRI and > jdom_document_builder (a native Java library) in JRuby take just about > the same time. This is similar to the last time I ran these benchmarks. Nice. FYI - you know your script is in the libxml-ruby source tree in the script directory? On my laptop (Thinkpad T60, Core 2 duo, 2GB memory): user system total real rexml 21.747000 0.000000 21.747000 ( 22.145000) hpricot 4.633000 0.000000 4.633000 ( 4.761000) libxml 0.468000 0.000000 0.468000 ( 0.463000) Its impressive also how quickly Java is. Aaraon - I added Nokogiri to the script, but it causes a general protection fault. Maybe I'm doing something wrong (just checked code into libxml-ruby trunk if you want to look)? > JRuby 1.1.5 has gotten much faster running pure Ruby code and now runs > rexml about 30% faster than MRI. Hpricot is about 5 times slower than > libxml and jdom_document_builder and runs slightly faster in JRuby. Impressive. Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From cfis at savagexi.com Wed Nov 19 23:43:49 2008 From: cfis at savagexi.com (Charlie Savage) Date: Wed, 19 Nov 2008 21:43:49 -0700 Subject: [libxml-devel] [ANN] nokogiri 1.0.0 Released In-Reply-To: <20081120040557.GA5435@mac-mini.local> References: <4923D12B.9020602@savagexi.com> <6959e1680811191139l7786a427lec606df8dc06d16d@mail.gmail.com> <49247262.7020803@savagexi.com> <20081120040557.GA5435@mac-mini.local> Message-ID: <4924EB05.5020509@savagexi.com> > I prefer the separate project solution. I'm not sure what bits of our > code overlaps. I think our underlying C bits are too different. I'm all for > sharing, but I like the project I have set up now. Sure, no problem. When I get a chance I'll take a closer look at Nokogiri and see what you guys are up to. Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From stephen.bannasch at deanbrook.org Thu Nov 20 00:33:49 2008 From: stephen.bannasch at deanbrook.org (Stephen Bannasch) Date: Thu, 20 Nov 2008 00:33:49 -0500 Subject: [libxml-devel] updated XML benchmarks In-Reply-To: <4924EA6D.1000904@savagexi.com> References: <4924EA6D.1000904@savagexi.com> Message-ID: At 9:41 PM -0700 11/19/08, Charlie Savage wrote: >Hi Stephan, > >> I've updated my simple ruby xml benchmark which measures the time to >> open a 98k XML document and count one type of leaf element (466 entries) >> 100 times. >> >> https://svn.concord.org/svn/projects/trunk/common/ruby/xml_benchmarks/ >> >> The summary is that for this one test using libxml in MRI and >> jdom_document_builder (a native Java library) in JRuby take just about > > the same time. This is similar to the last time I ran these benchmarks. > I updated the svn repo to include nokogiri. Here are my results for MRI: user system total real rexml 8.290000 0.100000 8.390000 ( 9.050795) hpricot 2.050000 0.040000 2.090000 ( 2.270231) libxml 0.350000 0.020000 0.370000 ( 0.415992) nokogiri 0.340000 0.020000 0.360000 ( 0.381423) From noreply at rubyforge.org Thu Nov 20 14:47:29 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 20 Nov 2008 14:47:29 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081120194729.1BEDF185890F@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 19:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Thu Nov 20 15:01:09 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 20 Nov 2008 15:01:09 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081120200109.514423CA670@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 12:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-20 13:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Thu Nov 20 15:35:49 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 20 Nov 2008 15:35:49 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081120203549.90B913C8A9D@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 19:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- >Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 20:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Thu Nov 20 15:44:33 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 20 Nov 2008 15:44:33 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081120204434.09E0F3CAC98@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 12:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-20 13:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 13:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 13:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Thu Nov 20 15:48:31 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 20 Nov 2008 15:48:31 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081120204831.102A93C8308@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 12:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-20 13:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 13:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 13:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 13:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Thu Nov 20 17:21:19 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 20 Nov 2008 17:21:19 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22912 ] Building the gem on OS X 10.5 against the libxml in darwin ports Message-ID: <20081120222119.F0EE73CB72B@rubyforge.org> Bugs item #22912, was opened at 2008-11-20 17:21 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22912&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Building the gem on OS X 10.5 against the libxml in darwin ports Initial Comment: Just have a simple request that in extconf.rb for find_header('libxml/xmlversion.h', "#{CONFIG['prefix']}/include", That it check in "#{CONFIG['prefix']}/include/libxml2" in order to pick up the libxml2 installed with macports (vs. the default) ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22912&group_id=494 From noreply at rubyforge.org Fri Nov 21 02:48:48 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Fri, 21 Nov 2008 02:48:48 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081121074849.B88803CA8C3@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 19:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-21 07:42 Message: This is an AMD box. I had a fair amount of time to play with this today. I learned that there's definitely something weird going on with compiler optimizations. I had been compiling libxml-ruby's C extensions with -O2 (this was the default, set by rbconfig.rb on my Ubuntu box). I found that changing the compile flag to -O0 for JUST ruby_xml_xpath_object.c caused the segfault to go away. Setting -O1 for ruby_xml_xpath_object.c makes the segfault reappear. I tried each of the piecemeal -f... optimization options, but none seemed to make a difference. In my debugging I also accidentally discovered a printf 'patch' that makes the bug go away, at any optimization level (see attached). The printf statement must be preventing the compiler from performing the harmful optimization. Of course this isn't a real patch, but it might provide a clue for someone who knows more about these things than I do. For now, I can work around the issue by compiling with -O0. I wish I could give a better explanation for why this is happening, but I'm getting in pretty far over my head here :-). I attached the generated assembler code at -O0 and -O1 as well just in case some compiler guru happens to stumble on this bug. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 20:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Fri Nov 21 02:47:48 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Fri, 21 Nov 2008 02:47:48 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081121074749.C578E3C89A9@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 19:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-21 07:42 Message: This is an AMD box. I had a fair amount of time to play with this today. I learned that there's definitely something weird going on with compiler optimizations. I had been compiling libxml-ruby's C extensions with -O2 (this was the default, set by rbconfig.rb on my Ubuntu box). I found that changing the compile flag to -O0 for JUST ruby_xml_xpath_object.c caused the segfault to go away. Setting -O1 for ruby_xml_xpath_object.c makes the segfault reappear. I tried each of the piecemeal -f... optimization options, but none seemed to make a difference. In my debugging I also accidentally discovered a printf 'patch' that makes the bug go away, at any optimization level (see attached). The printf statement must be preventing the compiler from performing the harmful optimization. Of course this isn't a real patch, but it might provide a clue for someone who knows more about these things than I do. For now, I can work around the issue by compiling with -O0. I wish I could give a better explanation for why this is happening, but I'm getting in pretty far over my head here :-). I attached the generated assembler code at -O0 and -O1 as well just in case some compiler guru happens to stumble on this bug. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 20:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Fri Nov 21 02:48:08 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Fri, 21 Nov 2008 02:48:08 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081121074809.DA7493CF7B6@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 19:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-21 07:42 Message: This is an AMD box. I had a fair amount of time to play with this today. I learned that there's definitely something weird going on with compiler optimizations. I had been compiling libxml-ruby's C extensions with -O2 (this was the default, set by rbconfig.rb on my Ubuntu box). I found that changing the compile flag to -O0 for JUST ruby_xml_xpath_object.c caused the segfault to go away. Setting -O1 for ruby_xml_xpath_object.c makes the segfault reappear. I tried each of the piecemeal -f... optimization options, but none seemed to make a difference. In my debugging I also accidentally discovered a printf 'patch' that makes the bug go away, at any optimization level (see attached). The printf statement must be preventing the compiler from performing the harmful optimization. Of course this isn't a real patch, but it might provide a clue for someone who knows more about these things than I do. For now, I can work around the issue by compiling with -O0. I wish I could give a better explanation for why this is happening, but I'm getting in pretty far over my head here :-). I attached the generated assembler code at -O0 and -O1 as well just in case some compiler guru happens to stumble on this bug. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 20:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Fri Nov 21 02:47:14 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Fri, 21 Nov 2008 02:47:14 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081121074714.8B0713CF781@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 19:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-21 07:42 Message: This is an AMD box. I had a fair amount of time to play with this today. I learned that there's definitely something weird going on with compiler optimizations. I had been compiling libxml-ruby's C extensions with -O2 (this was the default, set by rbconfig.rb on my Ubuntu box). I found that changing the compile flag to -O0 for JUST ruby_xml_xpath_object.c caused the segfault to go away. Setting -O1 for ruby_xml_xpath_object.c makes the segfault reappear. I tried each of the piecemeal -f... optimization options, but none seemed to make a difference. In my debugging I also accidentally discovered a printf 'patch' that makes the bug go away, at any optimization level (see attached). The printf statement must be preventing the compiler from performing the harmful optimization. Of course this isn't a real patch, but it might provide a clue for someone who knows more about these things than I do. For now, I can work around the issue by compiling with -O0. I wish I could give a better explanation for why this is happening, but I'm getting in pretty far over my head here :-). I attached the generated assembler code at -O0 and -O1 as well just in case some compiler guru happens to stumble on this bug. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 20:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Fri Nov 21 02:42:43 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Fri, 21 Nov 2008 02:42:43 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081121074243.E64733C899D@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 19:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- >Comment By: Bradley Buda (bradleybuda) Date: 2008-11-21 07:42 Message: This is an AMD box. I had a fair amount of time to play with this today. I learned that there's definitely something weird going on with compiler optimizations. I had been compiling libxml-ruby's C extensions with -O2 (this was the default, set by rbconfig.rb on my Ubuntu box). I found that changing the compile flag to -O0 for JUST ruby_xml_xpath_object.c caused the segfault to go away. Setting -O1 for ruby_xml_xpath_object.c makes the segfault reappear. I tried each of the piecemeal -f... optimization options, but none seemed to make a difference. In my debugging I also accidentally discovered a printf 'patch' that makes the bug go away, at any optimization level (see attached). The printf statement must be preventing the compiler from performing the harmful optimization. Of course this isn't a real patch, but it might provide a clue for someone who knows more about these things than I do. For now, I can work around the issue by compiling with -O0. I wish I could give a better explanation for why this is happening, but I'm getting in pretty far over my head here :-). I attached the generated assembler code at -O0 and -O1 as well just in case some compiler guru happens to stumble on this bug. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 20:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Fri Nov 21 02:49:05 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Fri, 21 Nov 2008 02:49:05 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081121074908.E34153CA8CA@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 19:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-21 07:42 Message: This is an AMD box. I had a fair amount of time to play with this today. I learned that there's definitely something weird going on with compiler optimizations. I had been compiling libxml-ruby's C extensions with -O2 (this was the default, set by rbconfig.rb on my Ubuntu box). I found that changing the compile flag to -O0 for JUST ruby_xml_xpath_object.c caused the segfault to go away. Setting -O1 for ruby_xml_xpath_object.c makes the segfault reappear. I tried each of the piecemeal -f... optimization options, but none seemed to make a difference. In my debugging I also accidentally discovered a printf 'patch' that makes the bug go away, at any optimization level (see attached). The printf statement must be preventing the compiler from performing the harmful optimization. Of course this isn't a real patch, but it might provide a clue for someone who knows more about these things than I do. For now, I can work around the issue by compiling with -O0. I wish I could give a better explanation for why this is happening, but I'm getting in pretty far over my head here :-). I attached the generated assembler code at -O0 and -O1 as well just in case some compiler guru happens to stumble on this bug. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 20:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From felipe.contreras at gmail.com Sat Nov 22 09:09:36 2008 From: felipe.contreras at gmail.com (Felipe Contreras) Date: Sat, 22 Nov 2008 16:09:36 +0200 Subject: [libxml-devel] [PATCH] Support for Ruby 1.9 Message-ID: <94a0d4530811220609n489c8724v5cd5db52775955e6@mail.gmail.com> Hi, Basically $SUBJECT. I tested this with Ruby 1.9.1-preview1. -- Felipe Contreras -------------- next part -------------- A non-text attachment was scrubbed... Name: libxml-ruby-fix.diff Type: application/octet-stream Size: 2626 bytes Desc: not available URL: From noreply at rubyforge.org Fri Nov 21 02:46:05 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Fri, 21 Nov 2008 02:46:05 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081121074607.67C9D3CF736@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 19:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-21 07:42 Message: This is an AMD box. I had a fair amount of time to play with this today. I learned that there's definitely something weird going on with compiler optimizations. I had been compiling libxml-ruby's C extensions with -O2 (this was the default, set by rbconfig.rb on my Ubuntu box). I found that changing the compile flag to -O0 for JUST ruby_xml_xpath_object.c caused the segfault to go away. Setting -O1 for ruby_xml_xpath_object.c makes the segfault reappear. I tried each of the piecemeal -f... optimization options, but none seemed to make a difference. In my debugging I also accidentally discovered a printf 'patch' that makes the bug go away, at any optimization level (see attached). The printf statement must be preventing the compiler from performing the harmful optimization. Of course this isn't a real patch, but it might provide a clue for someone who knows more about these things than I do. For now, I can work around the issue by compiling with -O0. I wish I could give a better explanation for why this is happening, but I'm getting in pretty far over my head here :-). I attached the generated assembler code at -O0 and -O1 as well just in case some compiler guru happens to stumble on this bug. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 20:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Sat Nov 22 04:46:06 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 22 Nov 2008 04:46:06 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22531 ] XML::Reader does not work with sockets Message-ID: <20081122094607.A11A5186A492@rubyforge.org> Bugs item #22531, was opened at 2008-10-23 07:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Han Holl (hanholl) Assigned to: Nobody (None) Summary: XML::Reader does not work with sockets Initial Comment: I tried with the two following programs: A server: #!/usr/bin/ruby -w require 'rubygems' require 'xml' require 'socket' server = TCPServer.new(22222) while session = server.accept reader = XML::Reader.io(session) loop do rsl = reader.read puts rsl break if rsl != 1 puts reader.expand end session.puts 'ok' sleep 1 session.close end # end-of-server and a client: #!/usr/bin/ruby require 'socket' t = TCPSocket.new('localhost', 22222) t.puts 'k' puts t.gets # end-of-client Output from server: Entity: line 1: parser error : Extra content at the end of the document ^ -1 I tried different platforms (RH9, CentOS 5.1 and Fedora8). libxml-ruby-0.8.3 Various libxml2 versions ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-22 02:46 Message: Hi Han, Ok, upgrade to the latest libxml. Then use: reader = Reader.io(io_object) That io object has to respond to read. So: def SocketIO def new(server) @server = server end def read server.accept end end And that should do the trick. ---------------------------------------------------------------------- Comment By: Han Holl (hanholl) Date: 2008-11-17 05:16 Message: I wouldn't know where to begin. Before I tried I had a look at the code, ruby_xml_reader_new_io(int argc, VALUE *argv, VALUE self), and had the strong impression that it _was_ implemented. I have no idea what is missing. C and ruby extensions are by no means my strong suit, I prefer ruby . My C is read-only, with the exception of the occasional small patch ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-15 16:45 Message: Yes, that is not going to work. Libxml does provide its own socket implementation, but that is not exposed via the ruby bindings. Want to put together a patch? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 From noreply at rubyforge.org Fri Nov 21 06:34:30 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Fri, 21 Nov 2008 06:34:30 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081121113430.210053C8EA2@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 20:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- Comment By: Jens Wille (jwille) Date: 2008-11-21 12:34 Message: hi charlie! i had the same error on our 64-bit machines. it has been fixed in r610, great! but now (introduced in r611) i get several static vs. non-static mismatches: ruby_xml_xpointer.c:20: error: static declaration of ?rxml_xpointer_point? follows non-static declaration ruby_xml_xpointer.h:23: error: previous declaration of ?rxml_xpointer_point? was here adding the appropriate statics to the header files as well fixes this. i can provide a patch, but it's probably not worth it ;-) so will there be a new release soon? because we can't use libxml-ruby > 0.8.3 because of that. anyway, let me add that you're work is really awesome! we're relying pretty heavily on your libxml bindings :-) cheers jens p.s.: sorry if i'm hijacking this thread. i just thought it's too tiny an issue to open up a new ticket ;-) ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-21 08:42 Message: This is an AMD box. I had a fair amount of time to play with this today. I learned that there's definitely something weird going on with compiler optimizations. I had been compiling libxml-ruby's C extensions with -O2 (this was the default, set by rbconfig.rb on my Ubuntu box). I found that changing the compile flag to -O0 for JUST ruby_xml_xpath_object.c caused the segfault to go away. Setting -O1 for ruby_xml_xpath_object.c makes the segfault reappear. I tried each of the piecemeal -f... optimization options, but none seemed to make a difference. In my debugging I also accidentally discovered a printf 'patch' that makes the bug go away, at any optimization level (see attached). The printf statement must be preventing the compiler from performing the harmful optimization. Of course this isn't a real patch, but it might provide a clue for someone who knows more about these things than I do. For now, I can work around the issue by compiling with -O0. I wish I could give a better explanation for why this is happening, but I'm getting in pretty far over my head here :-). I attached the generated assembler code at -O0 and -O1 as well just in case some compiler guru happens to stumble on this bug. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 21:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 21:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 21:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 21:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Sat Nov 22 04:41:01 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 22 Nov 2008 04:41:01 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081122094103.A500D3CFA00@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 12:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-22 02:41 Message: Hi everyone, Try the 0.9.3 release, hopefully fixes the compile issue and segmentation fault issue. ---------------------------------------------------------------------- Comment By: Jens Wille (jwille) Date: 2008-11-21 04:34 Message: hi charlie! i had the same error on our 64-bit machines. it has been fixed in r610, great! but now (introduced in r611) i get several static vs. non-static mismatches: ruby_xml_xpointer.c:20: error: static declaration of ?rxml_xpointer_point? follows non-static declaration ruby_xml_xpointer.h:23: error: previous declaration of ?rxml_xpointer_point? was here adding the appropriate statics to the header files as well fixes this. i can provide a patch, but it's probably not worth it ;-) so will there be a new release soon? because we can't use libxml-ruby > 0.8.3 because of that. anyway, let me add that you're work is really awesome! we're relying pretty heavily on your libxml bindings :-) cheers jens p.s.: sorry if i'm hijacking this thread. i just thought it's too tiny an issue to open up a new ticket ;-) ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-21 00:42 Message: This is an AMD box. I had a fair amount of time to play with this today. I learned that there's definitely something weird going on with compiler optimizations. I had been compiling libxml-ruby's C extensions with -O2 (this was the default, set by rbconfig.rb on my Ubuntu box). I found that changing the compile flag to -O0 for JUST ruby_xml_xpath_object.c caused the segfault to go away. Setting -O1 for ruby_xml_xpath_object.c makes the segfault reappear. I tried each of the piecemeal -f... optimization options, but none seemed to make a difference. In my debugging I also accidentally discovered a printf 'patch' that makes the bug go away, at any optimization level (see attached). The printf statement must be preventing the compiler from performing the harmful optimization. Of course this isn't a real patch, but it might provide a clue for someone who knows more about these things than I do. For now, I can work around the issue by compiling with -O0. I wish I could give a better explanation for why this is happening, but I'm getting in pretty far over my head here :-). I attached the generated assembler code at -O0 and -O1 as well just in case some compiler guru happens to stumble on this bug. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 13:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 13:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 13:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 13:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Sun Nov 23 19:54:40 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sun, 23 Nov 2008 19:54:40 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22956 ] Libxml HTML parser fails on very simple html pages Message-ID: <20081124005440.BC1A33C9B69@rubyforge.org> Bugs item #22956, was opened at 2008-11-24 02:54 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22956&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Pavel Valodzka (valodzka) Assigned to: Nobody (None) Summary: Libxml HTML parser fails on very simple html pages Initial Comment: Please, remove check "htmlParseDocument(ctxt) == -1", because it imposible use html parser, it raise exception on every page, for example for google.com: Error: Tag nobr invalid at :3. Error: htmlParseEntityRef: expecting ';' at :3. Error: htmlParseEntityRef: expecting ';' at :3. Error: htmlParseEntityRef: expecting ';' at :3. Error: Tag nobr invalid at :3. Error: htmlParseEntityRef: expecting ';' at :3. Error: htmlParseEntityRef: expecting ';' at :3. LibXML::XML::Error: Error: htmlParseEntityRef: expecting ';' at :3. htmlParseDocument(ctxt) returns -1 very often, it doesn't mean that document can be used. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22956&group_id=494 From noreply at rubyforge.org Mon Nov 24 04:20:30 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 24 Nov 2008 04:20:30 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081124092038.63243177993E@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 20:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- Comment By: Jens Wille (jwille) Date: 2008-11-24 10:20 Message: excellent, charlie! now we're happy again :-) ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-22 10:41 Message: Hi everyone, Try the 0.9.3 release, hopefully fixes the compile issue and segmentation fault issue. ---------------------------------------------------------------------- Comment By: Jens Wille (jwille) Date: 2008-11-21 12:34 Message: hi charlie! i had the same error on our 64-bit machines. it has been fixed in r610, great! but now (introduced in r611) i get several static vs. non-static mismatches: ruby_xml_xpointer.c:20: error: static declaration of ?rxml_xpointer_point? follows non-static declaration ruby_xml_xpointer.h:23: error: previous declaration of ?rxml_xpointer_point? was here adding the appropriate statics to the header files as well fixes this. i can provide a patch, but it's probably not worth it ;-) so will there be a new release soon? because we can't use libxml-ruby > 0.8.3 because of that. anyway, let me add that you're work is really awesome! we're relying pretty heavily on your libxml bindings :-) cheers jens p.s.: sorry if i'm hijacking this thread. i just thought it's too tiny an issue to open up a new ticket ;-) ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-21 08:42 Message: This is an AMD box. I had a fair amount of time to play with this today. I learned that there's definitely something weird going on with compiler optimizations. I had been compiling libxml-ruby's C extensions with -O2 (this was the default, set by rbconfig.rb on my Ubuntu box). I found that changing the compile flag to -O0 for JUST ruby_xml_xpath_object.c caused the segfault to go away. Setting -O1 for ruby_xml_xpath_object.c makes the segfault reappear. I tried each of the piecemeal -f... optimization options, but none seemed to make a difference. In my debugging I also accidentally discovered a printf 'patch' that makes the bug go away, at any optimization level (see attached). The printf statement must be preventing the compiler from performing the harmful optimization. Of course this isn't a real patch, but it might provide a clue for someone who knows more about these things than I do. For now, I can work around the issue by compiling with -O0. I wish I could give a better explanation for why this is happening, but I'm getting in pretty far over my head here :-). I attached the generated assembler code at -O0 and -O1 as well just in case some compiler guru happens to stumble on this bug. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 21:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 21:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 21:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 21:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Sat Nov 22 08:52:41 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 22 Nov 2008 08:52:41 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22531 ] XML::Reader does not work with sockets Message-ID: <20081122135241.ED42B3CEB17@rubyforge.org> Bugs item #22531, was opened at 2008-10-23 15:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Han Holl (hanholl) Assigned to: Nobody (None) Summary: XML::Reader does not work with sockets Initial Comment: I tried with the two following programs: A server: #!/usr/bin/ruby -w require 'rubygems' require 'xml' require 'socket' server = TCPServer.new(22222) while session = server.accept reader = XML::Reader.io(session) loop do rsl = reader.read puts rsl break if rsl != 1 puts reader.expand end session.puts 'ok' sleep 1 session.close end # end-of-server and a client: #!/usr/bin/ruby require 'socket' t = TCPSocket.new('localhost', 22222) t.puts 'k' puts t.gets # end-of-client Output from server: Entity: line 1: parser error : Extra content at the end of the document ^ -1 I tried different platforms (RH9, CentOS 5.1 and Fedora8). libxml-ruby-0.8.3 Various libxml2 versions ---------------------------------------------------------------------- >Comment By: Han Holl (hanholl) Date: 2008-11-22 14:52 Message: Hello Charlie, Thanks a lot for this effort. Unfortunately it doesn't yet work for me. I read the libxml2 C docs and had the impression that XML::Reader.read should return as soon as it had read a complete XML node. If you have a look at the example I opened this discussion with, here's a strace of the server. read(4, "k", 4096) = 19 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 read(4, "\n", 4096) = 1 read(4, And there it hangs hungry for more. Maybe I've got the documention wrong? Cheers, Han Holl ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-22 10:46 Message: Hi Han, Ok, upgrade to the latest libxml. Then use: reader = Reader.io(io_object) That io object has to respond to read. So: def SocketIO def new(server) @server = server end def read server.accept end end And that should do the trick. ---------------------------------------------------------------------- Comment By: Han Holl (hanholl) Date: 2008-11-17 13:16 Message: I wouldn't know where to begin. Before I tried I had a look at the code, ruby_xml_reader_new_io(int argc, VALUE *argv, VALUE self), and had the strong impression that it _was_ implemented. I have no idea what is missing. C and ruby extensions are by no means my strong suit, I prefer ruby . My C is read-only, with the exception of the occasional small patch ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-16 00:45 Message: Yes, that is not going to work. Libxml does provide its own socket implementation, but that is not exposed via the ruby bindings. Want to put together a patch? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 From noreply at rubyforge.org Sun Nov 23 20:40:37 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sun, 23 Nov 2008 20:40:37 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22956 ] Libxml HTML parser fails on very simple html pages Message-ID: <20081124014038.0EE533C83A4@rubyforge.org> Bugs item #22956, was opened at 2008-11-23 17:54 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22956&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Pavel Valodzka (valodzka) >Assigned to: Charlie Savage (cfis) Summary: Libxml HTML parser fails on very simple html pages Initial Comment: Please, remove check "htmlParseDocument(ctxt) == -1", because it imposible use html parser, it raise exception on every page, for example for google.com: Error: Tag nobr invalid at :3. Error: htmlParseEntityRef: expecting ';' at :3. Error: htmlParseEntityRef: expecting ';' at :3. Error: htmlParseEntityRef: expecting ';' at :3. Error: Tag nobr invalid at :3. Error: htmlParseEntityRef: expecting ';' at :3. Error: htmlParseEntityRef: expecting ';' at :3. LibXML::XML::Error: Error: htmlParseEntityRef: expecting ';' at :3. htmlParseDocument(ctxt) returns -1 very often, it doesn't mean that document can be used. ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-23 18:40 Message: Yeah, that code has been removed in trunk. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22956&group_id=494 From noreply at rubyforge.org Mon Nov 24 05:32:56 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 24 Nov 2008 05:32:56 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22531 ] XML::Reader does not work with sockets Message-ID: <20081124103256.DFD07167961B@rubyforge.org> Bugs item #22531, was opened at 2008-10-23 15:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Han Holl (hanholl) Assigned to: Nobody (None) Summary: XML::Reader does not work with sockets Initial Comment: I tried with the two following programs: A server: #!/usr/bin/ruby -w require 'rubygems' require 'xml' require 'socket' server = TCPServer.new(22222) while session = server.accept reader = XML::Reader.io(session) loop do rsl = reader.read puts rsl break if rsl != 1 puts reader.expand end session.puts 'ok' sleep 1 session.close end # end-of-server and a client: #!/usr/bin/ruby require 'socket' t = TCPSocket.new('localhost', 22222) t.puts 'k' puts t.gets # end-of-client Output from server: Entity: line 1: parser error : Extra content at the end of the document ^ -1 I tried different platforms (RH9, CentOS 5.1 and Fedora8). libxml-ruby-0.8.3 Various libxml2 versions ---------------------------------------------------------------------- >Comment By: Han Holl (hanholl) Date: 2008-11-24 11:32 Message: I don't quite understand. I hoped, reading the libxml2 docs, that I could read a node from a stream. IOW that the reader would return as soon as it saw that it had received a complete node. I don't know the length of the next node, the producer knows Isn't this the relevant libxml2 function? int xmlTextReaderRead (xmlTextReaderPtr reader) Moves the position of the current instance to the next node in the stream, exposing its properties. reader: the xmlTextReaderPtr used Returns: 1 if the node was read successfully, 0 if there is no more nodes to read, or -1 in case of error ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-24 02:39 Message: Yes, I would assume this would block as you read more data from the socket. But I would hope you could incrementally process data. One thing I missed was that the read method should take a length. Libxml will tell you how much data it wants, you can't return more. That makes the interface a bit harder to deal with, unless you can read x bytes off the socket. So does setting the length help? ---------------------------------------------------------------------- Comment By: Han Holl (hanholl) Date: 2008-11-22 14:52 Message: Hello Charlie, Thanks a lot for this effort. Unfortunately it doesn't yet work for me. I read the libxml2 C docs and had the impression that XML::Reader.read should return as soon as it had read a complete XML node. If you have a look at the example I opened this discussion with, here's a strace of the server. read(4, "k", 4096) = 19 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 read(4, "\n", 4096) = 1 read(4, And there it hangs hungry for more. Maybe I've got the documention wrong? Cheers, Han Holl ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-22 10:46 Message: Hi Han, Ok, upgrade to the latest libxml. Then use: reader = Reader.io(io_object) That io object has to respond to read. So: def SocketIO def new(server) @server = server end def read server.accept end end And that should do the trick. ---------------------------------------------------------------------- Comment By: Han Holl (hanholl) Date: 2008-11-17 13:16 Message: I wouldn't know where to begin. Before I tried I had a look at the code, ruby_xml_reader_new_io(int argc, VALUE *argv, VALUE self), and had the strong impression that it _was_ implemented. I have no idea what is missing. C and ruby extensions are by no means my strong suit, I prefer ruby . My C is read-only, with the exception of the occasional small patch ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-16 00:45 Message: Yes, that is not going to work. Libxml does provide its own socket implementation, but that is not exposed via the ruby bindings. Want to put together a patch? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 From noreply at rubyforge.org Sun Nov 23 20:39:32 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sun, 23 Nov 2008 20:39:32 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22531 ] XML::Reader does not work with sockets Message-ID: <20081124013932.EF78E3CFDE7@rubyforge.org> Bugs item #22531, was opened at 2008-10-23 07:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Han Holl (hanholl) Assigned to: Nobody (None) Summary: XML::Reader does not work with sockets Initial Comment: I tried with the two following programs: A server: #!/usr/bin/ruby -w require 'rubygems' require 'xml' require 'socket' server = TCPServer.new(22222) while session = server.accept reader = XML::Reader.io(session) loop do rsl = reader.read puts rsl break if rsl != 1 puts reader.expand end session.puts 'ok' sleep 1 session.close end # end-of-server and a client: #!/usr/bin/ruby require 'socket' t = TCPSocket.new('localhost', 22222) t.puts 'k' puts t.gets # end-of-client Output from server: Entity: line 1: parser error : Extra content at the end of the document ^ -1 I tried different platforms (RH9, CentOS 5.1 and Fedora8). libxml-ruby-0.8.3 Various libxml2 versions ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-23 18:39 Message: Yes, I would assume this would block as you read more data from the socket. But I would hope you could incrementally process data. One thing I missed was that the read method should take a length. Libxml will tell you how much data it wants, you can't return more. That makes the interface a bit harder to deal with, unless you can read x bytes off the socket. So does setting the length help? ---------------------------------------------------------------------- Comment By: Han Holl (hanholl) Date: 2008-11-22 06:52 Message: Hello Charlie, Thanks a lot for this effort. Unfortunately it doesn't yet work for me. I read the libxml2 C docs and had the impression that XML::Reader.read should return as soon as it had read a complete XML node. If you have a look at the example I opened this discussion with, here's a strace of the server. read(4, "k", 4096) = 19 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 read(4, "\n", 4096) = 1 read(4, And there it hangs hungry for more. Maybe I've got the documention wrong? Cheers, Han Holl ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-22 02:46 Message: Hi Han, Ok, upgrade to the latest libxml. Then use: reader = Reader.io(io_object) That io object has to respond to read. So: def SocketIO def new(server) @server = server end def read server.accept end end And that should do the trick. ---------------------------------------------------------------------- Comment By: Han Holl (hanholl) Date: 2008-11-17 05:16 Message: I wouldn't know where to begin. Before I tried I had a look at the code, ruby_xml_reader_new_io(int argc, VALUE *argv, VALUE self), and had the strong impression that it _was_ implemented. I have no idea what is missing. C and ruby extensions are by no means my strong suit, I prefer ruby . My C is read-only, with the exception of the occasional small patch ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-15 16:45 Message: Yes, that is not going to work. Libxml does provide its own socket implementation, but that is not exposed via the ruby bindings. Want to put together a patch? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 From felipe.contreras at gmail.com Sat Nov 22 07:44:48 2008 From: felipe.contreras at gmail.com (Felipe Contreras) Date: Sat, 22 Nov 2008 14:44:48 +0200 Subject: [libxml-devel] [PATCH] Support for Ruby 1.9 Message-ID: <94a0d4530811220444v6986e2c2q33693228f24f6977@mail.gmail.com> Hi, Basically $SUBJECT. I tested this with Ruby 1.9.1-preview1. -- Felipe Contreras -------------- next part -------------- A non-text attachment was scrubbed... Name: libxml-ruby-fix.diff Type: application/octet-stream Size: 2626 bytes Desc: not available URL: From noreply at rubyforge.org Mon Nov 24 11:30:38 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 24 Nov 2008 11:30:38 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081124163038.A593F18585A9@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 19:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bradley Buda (bradleybuda) Assigned to: Nobody (None) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- >Comment By: Bradley Buda (bradleybuda) Date: 2008-11-24 16:30 Message: Yes, the original test script works just fine on the same amd64 host with gem version 0.9.3. Thank you again for the amazingly quick response and fix! ---------------------------------------------------------------------- Comment By: Jens Wille (jwille) Date: 2008-11-24 09:20 Message: excellent, charlie! now we're happy again :-) ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-22 09:41 Message: Hi everyone, Try the 0.9.3 release, hopefully fixes the compile issue and segmentation fault issue. ---------------------------------------------------------------------- Comment By: Jens Wille (jwille) Date: 2008-11-21 11:34 Message: hi charlie! i had the same error on our 64-bit machines. it has been fixed in r610, great! but now (introduced in r611) i get several static vs. non-static mismatches: ruby_xml_xpointer.c:20: error: static declaration of ?rxml_xpointer_point? follows non-static declaration ruby_xml_xpointer.h:23: error: previous declaration of ?rxml_xpointer_point? was here adding the appropriate statics to the header files as well fixes this. i can provide a patch, but it's probably not worth it ;-) so will there be a new release soon? because we can't use libxml-ruby > 0.8.3 because of that. anyway, let me add that you're work is really awesome! we're relying pretty heavily on your libxml bindings :-) cheers jens p.s.: sorry if i'm hijacking this thread. i just thought it's too tiny an issue to open up a new ticket ;-) ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-21 07:42 Message: This is an AMD box. I had a fair amount of time to play with this today. I learned that there's definitely something weird going on with compiler optimizations. I had been compiling libxml-ruby's C extensions with -O2 (this was the default, set by rbconfig.rb on my Ubuntu box). I found that changing the compile flag to -O0 for JUST ruby_xml_xpath_object.c caused the segfault to go away. Setting -O1 for ruby_xml_xpath_object.c makes the segfault reappear. I tried each of the piecemeal -f... optimization options, but none seemed to make a difference. In my debugging I also accidentally discovered a printf 'patch' that makes the bug go away, at any optimization level (see attached). The printf statement must be preventing the compiler from performing the harmful optimization. Of course this isn't a real patch, but it might provide a clue for someone who knows more about these things than I do. For now, I can work around the issue by compiling with -O0. I wish I could give a better explanation for why this is happening, but I'm getting in pretty far over my head here :-). I attached the generated assembler code at -O0 and -O1 as well just in case some compiler guru happens to stumble on this bug. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 20:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 20:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Mon Nov 24 14:10:53 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 24 Nov 2008 14:10:53 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22531 ] XML::Reader does not work with sockets Message-ID: <20081124191053.821E518581A2@rubyforge.org> Bugs item #22531, was opened at 2008-10-23 07:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Han Holl (hanholl) Assigned to: Nobody (None) Summary: XML::Reader does not work with sockets Initial Comment: I tried with the two following programs: A server: #!/usr/bin/ruby -w require 'rubygems' require 'xml' require 'socket' server = TCPServer.new(22222) while session = server.accept reader = XML::Reader.io(session) loop do rsl = reader.read puts rsl break if rsl != 1 puts reader.expand end session.puts 'ok' sleep 1 session.close end # end-of-server and a client: #!/usr/bin/ruby require 'socket' t = TCPSocket.new('localhost', 22222) t.puts 'k' puts t.gets # end-of-client Output from server: Entity: line 1: parser error : Extra content at the end of the document ^ -1 I tried different platforms (RH9, CentOS 5.1 and Fedora8). libxml-ruby-0.8.3 Various libxml2 versions ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-24 12:10 Message: Hi Han, Look at ruby_xml_input.c. The relevant code is this: /* This method is called by libxml when it wants to read more data from a stream. We go with the duck typing solution to support StringIO objects. */ int rxml_read_callback(void *context, char *buffer, int len) { VALUE io = (VALUE)context; VALUE string = rb_funcall(io, READ_METHOD, 1, INT2NUM(len)); int size; if(string == Qnil) return 0; size = RSTRING_LEN(string); memcpy(buffer, StringValuePtr(string), size); return size; } What this means: 1. Pass an io object to libxml (reader = Reader.io(my_io)) 2. When it needs more data, libxml will call: my_io.read(k", 4096) = 19 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 read(4, "\n", 4096) = 1 read(4, And there it hangs hungry for more. Maybe I've got the documention wrong? Cheers, Han Holl ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-22 02:46 Message: Hi Han, Ok, upgrade to the latest libxml. Then use: reader = Reader.io(io_object) That io object has to respond to read. So: def SocketIO def new(server) @server = server end def read server.accept end end And that should do the trick. ---------------------------------------------------------------------- Comment By: Han Holl (hanholl) Date: 2008-11-17 05:16 Message: I wouldn't know where to begin. Before I tried I had a look at the code, ruby_xml_reader_new_io(int argc, VALUE *argv, VALUE self), and had the strong impression that it _was_ implemented. I have no idea what is missing. C and ruby extensions are by no means my strong suit, I prefer ruby . My C is read-only, with the exception of the occasional small patch ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-15 16:45 Message: Yes, that is not going to work. Libxml does provide its own socket implementation, but that is not exposed via the ruby bindings. Want to put together a patch? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 From noreply at rubyforge.org Mon Nov 24 14:11:29 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 24 Nov 2008 14:11:29 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22909 ] LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Message-ID: <20081124191129.8221E18581A2@rubyforge.org> Bugs item #22909, was opened at 2008-11-20 12:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 Category: General Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Bradley Buda (bradleybuda) >Assigned to: Charlie Savage (cfis) Summary: LibXML::XML::XPath::Object segfault (null pointer) on x86-64 Initial Comment: This script results in a ruby "[BUG] Segmentation fault" on a 64-bit machine, but works on a 32-bit machine: ---- #!/usr/bin/ruby require 'rubygems' require 'libxml' x = LibXML::XML::Parser.string("").parse x.find("/root") # if you comment out this line, script will NOT segfault x.find("/root").length # segfault occurs here ---- valgrind and gdb agree on this stack trace: #0 0x00002aaaaca47bc7 in ruby_xml_xpath_object_empty_q (self=46912524542400) at ruby_xml_xpath_object.c:174 #1 0x00002aaaaca47c59 in ruby_xml_xpath_object_length (self=46912524542400) at ruby_xml_xpath_object.c:242 #2 0x00002aaaaacff48f in ?? () from /usr/lib/libruby1.8.so.1.8 #3 0x00002aaaaacff7b8 in ?? () from /usr/lib/libruby1.8.so.1.8 #4 0x00002aaaaad055b7 in ?? () from /usr/lib/libruby1.8.so.1.8 #5 0x00002aaaaad0dbbb in ?? () from /usr/lib/libruby1.8.so.1.8 #6 0x00002aaaaad0dc05 in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #7 0x00002aaaaad0dc30 in ruby_run () from /usr/lib/libruby1.8.so.1.8 #8 0x0000000000400883 in main () Unfortunately I don't know enough about the Ruby C API to understand what's going wrong here. My environment: (note that this is a Xen node on Amazon EC2) $ uname -a Linux ...compute-1.amazonaws.com 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.1 Release: 8.04 Codename: hardy $ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] $ gem list --local libxml-ruby *** LOCAL GEMS *** libxml-ruby (0.9.2) $ aptitude show libxml2-dev Package: libxml2-dev State: installed Automatically installed: yes Version: 2.6.31.dfsg-2ubuntu1.3 ... ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-24 12:11 Message: Ok, good. I will close this bug then. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-24 09:30 Message: Yes, the original test script works just fine on the same amd64 host with gem version 0.9.3. Thank you again for the amazingly quick response and fix! ---------------------------------------------------------------------- Comment By: Jens Wille (jwille) Date: 2008-11-24 02:20 Message: excellent, charlie! now we're happy again :-) ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-22 02:41 Message: Hi everyone, Try the 0.9.3 release, hopefully fixes the compile issue and segmentation fault issue. ---------------------------------------------------------------------- Comment By: Jens Wille (jwille) Date: 2008-11-21 04:34 Message: hi charlie! i had the same error on our 64-bit machines. it has been fixed in r610, great! but now (introduced in r611) i get several static vs. non-static mismatches: ruby_xml_xpointer.c:20: error: static declaration of ?rxml_xpointer_point? follows non-static declaration ruby_xml_xpointer.h:23: error: previous declaration of ?rxml_xpointer_point? was here adding the appropriate statics to the header files as well fixes this. i can provide a patch, but it's probably not worth it ;-) so will there be a new release soon? because we can't use libxml-ruby > 0.8.3 because of that. anyway, let me add that you're work is really awesome! we're relying pretty heavily on your libxml bindings :-) cheers jens p.s.: sorry if i'm hijacking this thread. i just thought it's too tiny an issue to open up a new ticket ;-) ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-21 00:42 Message: This is an AMD box. I had a fair amount of time to play with this today. I learned that there's definitely something weird going on with compiler optimizations. I had been compiling libxml-ruby's C extensions with -O2 (this was the default, set by rbconfig.rb on my Ubuntu box). I found that changing the compile flag to -O0 for JUST ruby_xml_xpath_object.c caused the segfault to go away. Setting -O1 for ruby_xml_xpath_object.c makes the segfault reappear. I tried each of the piecemeal -f... optimization options, but none seemed to make a difference. In my debugging I also accidentally discovered a printf 'patch' that makes the bug go away, at any optimization level (see attached). The printf statement must be preventing the compiler from performing the harmful optimization. Of course this isn't a real patch, but it might provide a clue for someone who knows more about these things than I do. For now, I can work around the issue by compiling with -O0. I wish I could give a better explanation for why this is happening, but I'm getting in pretty far over my head here :-). I attached the generated assembler code at -O0 and -O1 as well just in case some compiler guru happens to stumble on this bug. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 13:48 Message: FYI - is this an intel or amd box? As for those old threads, I think this it different (libxml-ruby's internal architecture is much, much different than it used to be). ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 13:44 Message: Hey Bradely, Sounds good. From the bug, it looks like this is what is happening: ruby_xml_xpath_object_empty_q, line 169 /* Get the c object that the ruby object (self) is wrapping */ Data_Get_Struct(self,xmlXPathObject,xpop); /* Looks like xpop is null here when it should not be, but how can that be? So verify xpop really is null */ if (xpop->type != XPATH_NODESET) return Qnil; To help you understand the code: doc.find: 1. In ruby, create a new XPathContext Object. 2. In C, call find which does the xpath result 3. Returnx XPathObject instance wrapped by Ruby object Since you do that twice, you have 2 XPathContext objects and two XPathObject results. What is weird, is the first one shouldn't matter since you don't use it at all. It may or may not be freed deepending on the GC (actually it would be really surpising for it to be freed so quickly). The various scenarios (none that plausible) I can think of: * The first XPathObject is freed, and somehow deletes its associated document (shouldn't happen of course) making the 2nd xpath object invalid * The second XPathObject is in fact the same as the first. Not sure how that could be, unless libxml is caching XPath return results (its not that I know of) * Freeing the first XPathObject somehow corrupts the second. Or, none of the above, but the only way to find out is do some digging with gdb I think. Thanks for your help. ---------------------------------------------------------------------- Comment By: Bradley Buda (bradleybuda) Date: 2008-11-20 13:35 Message: Yes, it's 100% consistent. I haven't gotten any further with LibXML, so I don't know if there are other test cases that would show similar results - I can try to put something together. Thanks for the pointer to ruby_xml_document.c - I can look at that code as a start. I know C (I'm a bit rusty) it's just the Ruby API that I don't know as well. In my random Googling I found this (old) thread and patch: http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html http://rubyforge.org/pipermail/libxml-devel/attachments/20070309/a8c53f37/attachment.obj Any guesses as to whether or not this could be in the same class of problems? I should have some time soon (maybe this weekend?) to dig deeper into the code and start to understand how the allocation and garbage collection works. I'll update the bug with whatever I figure out. Thanks for the quick reply. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-20 13:01 Message: Hi Bradely, Boy, that's interesting. So it always happens, without fail? Do you see other things like that happening? My best guess is somehow the reference counting scheme that is used between xpath objects and documents is broken on 64 bit machines (its in ruby_xml_document.c, the top 150 lines or so). I don't have any 64-bit machines setup here, so not sure how to debug. Can you recompile code on EC2? Are you a C hacker and have time to work through this? Just trying to figure out how to proceed. Thanks for the great bug report and stack trace, very helpful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22909&group_id=494 From noreply at rubyforge.org Mon Nov 24 14:12:04 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 24 Nov 2008 14:12:04 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-21658 ] failure to parse and obey encoding when creating document Message-ID: <20081124191204.18A4818581A2@rubyforge.org> Bugs item #21658, was opened at 2008-08-24 11:01 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21658&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) >Assigned to: Charlie Savage (cfis) Summary: failure to parse and obey encoding when creating document Initial Comment: The following appeared on comp.ruby.lang: ===== quoted material follows I have an XML request, using the following code as an example: require "rubygems" require "xml/libxml" movie = "sin+city" search_url = 'http://www.movie-xml.com/interfaces/getmovie.php?moviename=' url = search_url+movie doc = XML::Document.file(url) Here's the response I get: Input is not proper UTF-8, indicate encoding ! The source XML has an encoding declared as such: ===== end quoted material Tested and confirmed, plus I tried the same operation with REXML and there was no problem. It looks like we are not examining the encoding attribute up front and obeying it when parsing the body of the doc. ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-11-24 12:12 Message: No response - closing the issue. ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-15 17:47 Message: This url is no longer valid. Do you have another test case? ---------------------------------------------------------------------- Comment By: Eric Ivancich (ivancich) Date: 2008-08-24 17:29 Message: Twice in the XML data retrieved from the URL generated in the detailed description, the word "verg?enza" appears, where the "?" has hex code 0xFC that encodes a lower case "u" with umlaut in ISO-8859-1. 0xFC cannot appear in UTF-8 data due to RFC-3629. So that adds further evidence that it's trying to parse the file as UTF-8 rather than ISO-8859-1. ---------------------------------------------------------------------- Comment By: Erik Hollensbe (erikh) Date: 2008-08-24 14:24 Message: >From this thread on ruby-talk: http://www.ruby-forum.com/topic/163524 ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21658&group_id=494 From cfis at savagexi.com Mon Nov 24 15:45:31 2008 From: cfis at savagexi.com (Charlie Savage) Date: Mon, 24 Nov 2008 13:45:31 -0700 Subject: [libxml-devel] [PATCH] Support for Ruby 1.9 In-Reply-To: <94a0d4530811220444v6986e2c2q33693228f24f6977@mail.gmail.com> References: <94a0d4530811220444v6986e2c2q33693228f24f6977@mail.gmail.com> Message-ID: <492B126B.4030407@savagexi.com> Thanks Felipe, > Basically $SUBJECT. I tested this with Ruby 1.9.1-preview1. Patch looks mostly good to me. One question though, where is RB_CVAR_SET_4ARGS defined? Is this a Ruby 1.8 thing or 1.9? Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From felipe.contreras at gmail.com Mon Nov 24 17:02:59 2008 From: felipe.contreras at gmail.com (Felipe Contreras) Date: Tue, 25 Nov 2008 00:02:59 +0200 Subject: [libxml-devel] [PATCH] Support for Ruby 1.9 In-Reply-To: <492B126B.4030407@savagexi.com> References: <94a0d4530811220444v6986e2c2q33693228f24f6977@mail.gmail.com> <492B126B.4030407@savagexi.com> Message-ID: <94a0d4530811241402h7d1a6c23qed7b0e11e5c81292@mail.gmail.com> 2008/11/24 Charlie Savage : > Thanks Felipe, > >> Basically $SUBJECT. I tested this with Ruby 1.9.1-preview1. > > Patch looks mostly good to me. One question though, where is > > RB_CVAR_SET_4ARGS > > defined? Is this a Ruby 1.8 thing or 1.9? I have it in my 1.8.6, in intern.h. I forgot to mention that I also tested with 1.8.6. -- Felipe Contreras From noreply at rubyforge.org Mon Nov 24 17:02:39 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 24 Nov 2008 17:02:39 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22531 ] XML::Reader does not work with sockets Message-ID: <20081124220239.735621858194@rubyforge.org> Bugs item #22531, was opened at 2008-10-23 15:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Han Holl (hanholl) Assigned to: Nobody (None) Summary: XML::Reader does not work with sockets Initial Comment: I tried with the two following programs: A server: #!/usr/bin/ruby -w require 'rubygems' require 'xml' require 'socket' server = TCPServer.new(22222) while session = server.accept reader = XML::Reader.io(session) loop do rsl = reader.read puts rsl break if rsl != 1 puts reader.expand end session.puts 'ok' sleep 1 session.close end # end-of-server and a client: #!/usr/bin/ruby require 'socket' t = TCPSocket.new('localhost', 22222) t.puts 'k' puts t.gets # end-of-client Output from server: Entity: line 1: parser error : Extra content at the end of the document ^ -1 I tried different platforms (RH9, CentOS 5.1 and Fedora8). libxml-ruby-0.8.3 Various libxml2 versions ---------------------------------------------------------------------- >Comment By: Han Holl (hanholl) Date: 2008-11-24 23:02 Message: Charlie, Thanks a lot for your efforts. I'm afraid as it is XML::Reader cannot be used to read XML nodes from a stream. In my original attempt I used TCPSocket, wich is derived from IO and therefore implements def read(len). I have created a wrapper around this to make clear er what happens, but the result remains the same: The library first want 4 bytes and then 4096, and waits until it gets them (or EOF). I suppose in the wrapper I could read 1 byte at a time, and try to determine myself when I have a complete node but the result would be almost as cumbersome as my current SAX based implementation. Well, maybe slightly less cumbersome. PS I tried it and even then it ask for 4096 bytes more. Pity. Thanks for your efforts. Han ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-24 20:10 Message: Hi Han, Look at ruby_xml_input.c. The relevant code is this: /* This method is called by libxml when it wants to read more data from a stream. We go with the duck typing solution to support StringIO objects. */ int rxml_read_callback(void *context, char *buffer, int len) { VALUE io = (VALUE)context; VALUE string = rb_funcall(io, READ_METHOD, 1, INT2NUM(len)); int size; if(string == Qnil) return 0; size = RSTRING_LEN(string); memcpy(buffer, StringValuePtr(string), size); return size; } What this means: 1. Pass an io object to libxml (reader = Reader.io(my_io)) 2. When it needs more data, libxml will call: my_io.read(k", 4096) = 19 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 read(4, "\n", 4096) = 1 read(4, And there it hangs hungry for more. Maybe I've got the documention wrong? Cheers, Han Holl ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-22 10:46 Message: Hi Han, Ok, upgrade to the latest libxml. Then use: reader = Reader.io(io_object) That io object has to respond to read. So: def SocketIO def new(server) @server = server end def read server.accept end end And that should do the trick. ---------------------------------------------------------------------- Comment By: Han Holl (hanholl) Date: 2008-11-17 13:16 Message: I wouldn't know where to begin. Before I tried I had a look at the code, ruby_xml_reader_new_io(int argc, VALUE *argv, VALUE self), and had the strong impression that it _was_ implemented. I have no idea what is missing. C and ruby extensions are by no means my strong suit, I prefer ruby . My C is read-only, with the exception of the occasional small patch ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-11-16 00:45 Message: Yes, that is not going to work. Libxml does provide its own socket implementation, but that is not exposed via the ruby bindings. Want to put together a patch? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22531&group_id=494 From noreply at rubyforge.org Tue Nov 25 14:42:50 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 25 Nov 2008 14:42:50 -0500 (EST) Subject: [libxml-devel] [ libxml-Bugs-22995 ] Broken Regexp.compile Message-ID: <20081125194250.741483C8385@rubyforge.org> Bugs item #22995, was opened at 2008-11-25 12:42 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22995&group_id=494 Category: General Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nathan Witmer (nwitmer) Assigned to: Nobody (None) Summary: Broken Regexp.compile Initial Comment: libxml-ruby redefines Regexp.compile with a broken implementation that causes TypeError exceptions or SIGBUS. Patch attached which removes this. To test: require "libxml" Regexp.compile "asdf" ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=22995&group_id=494 From cfis at savagexi.com Thu Nov 27 03:52:25 2008 From: cfis at savagexi.com (Charlie Savage) Date: Thu, 27 Nov 2008 01:52:25 -0700 Subject: [libxml-devel] [PATCH] Support for Ruby 1.9 In-Reply-To: <94a0d4530811220444v6986e2c2q33693228f24f6977@mail.gmail.com> References: <94a0d4530811220444v6986e2c2q33693228f24f6977@mail.gmail.com> Message-ID: <492E5FC9.300@savagexi.com> Hi Felipe, > Basically $SUBJECT. I tested this with Ruby 1.9.1-preview1. Applied except this part: - st_foreach(RHASH(nslist)->tbl, iterate_ns_hash, self); + st_foreach(RHASH_TBL(nslist), iterate_ns_hash, self); RHASH_TBL doesn't exist in Ruby 1.8.6 as far as I can see. Thanks for the patch. Charlie ps - next time better to use RubyForge to post the patch so it doesn't get lost -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From felipe.contreras at gmail.com Thu Nov 27 06:13:53 2008 From: felipe.contreras at gmail.com (Felipe Contreras) Date: Thu, 27 Nov 2008 13:13:53 +0200 Subject: [libxml-devel] [PATCH] Support for Ruby 1.9 In-Reply-To: <492E5FC9.300@savagexi.com> References: <94a0d4530811220444v6986e2c2q33693228f24f6977@mail.gmail.com> <492E5FC9.300@savagexi.com> Message-ID: <94a0d4530811270313n28a4da5che849f7627dc7366f@mail.gmail.com> On Thu, Nov 27, 2008 at 10:52 AM, Charlie Savage wrote: > Hi Felipe, > >> Basically $SUBJECT. I tested this with Ruby 1.9.1-preview1. > > Applied except this part: > > - st_foreach(RHASH(nslist)->tbl, iterate_ns_hash, self); > + st_foreach(RHASH_TBL(nslist), iterate_ns_hash, self); > > RHASH_TBL doesn't exist in Ruby 1.8.6 as far as I can see. Right, I wonder how I got it to compile... anyway: #ifdef RHASH_TBL st_foreach(RHASH_TBL(nslist), iterate_ns_hash, self); #else st_foreach(RHASH(nslist)->tbl, iterate_ns_hash, self); #endif > ps - next time better to use RubyForge to post the patch so it doesn't get > lost Right, I tried to do that first but I got the RubyForge account several days after I requested it. Cheers. -- Felipe Contreras