Re: [libxml-devel] Ruby libxslt not working with exslt() extensions

2008-11-19 Thread Charlie Savage

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


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] UTF-8 problem

2008-11-19 Thread Charlie Savage

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


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] REXML-dropin, a REXML replacement using libxml-ruby

2008-11-19 Thread Charlie Savage

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


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] what about rb_gc_mark(): unknown data type

2008-11-19 Thread Charlie Savage

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


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] [ANN] nokogiri 1.0.0 Released

2008-11-19 Thread 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.


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



smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] REXML-dropin, a REXML replacement using libxml-ruby

2008-11-19 Thread Stephan Maka
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
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


[libxml-devel] Build error: ld duplicate symbol error

2008-11-19 Thread 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

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.
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


Re: [libxml-devel] Build error: ld duplicate symbol error

2008-11-19 Thread Charlie Savage

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


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] UTF-8 problem

2008-11-19 Thread David Helder

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?



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


Re: [libxml-devel] UTF-8 problem

2008-11-19 Thread Charlie Savage



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


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

[libxml-devel] problem updating from to 0.9.1 on macos 10.5.5

2008-11-19 Thread Stephen Bannasch

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/Libra

Re: [libxml-devel] problem updating from to 0.9.1 on macos 10.5.5

2008-11-19 Thread Charlie Savage

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


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

[libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04

2008-11-19 Thread noreply
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
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

[libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04

2008-11-19 Thread noreply
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
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04

2008-11-19 Thread gf
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, <[EMAIL PROTECTED]> 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
> [EMAIL PROTECTED]://rubyforge.org/mailman/listinfo/libxml-devel
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


[libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5

2008-11-19 Thread noreply
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

[libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04

2008-11-19 Thread noreply
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
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

[libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5

2008-11-19 Thread noreply
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

[libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5

2008-11-19 Thread noreply
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

[libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04

2008-11-19 Thread noreply
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
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

[libxml-devel] [ libxml-Bugs-19935 ] Impossible specify encoding for HTMLParser

2008-11-19 Thread noreply
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
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


[libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04

2008-11-19 Thread noreply
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
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

[libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5

2008-11-19 Thread noreply
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

[libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04

2008-11-19 Thread noreply
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
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

[libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5

2008-11-19 Thread noreply
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

[libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5

2008-11-19 Thread noreply
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

[libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5

2008-11-19 Thread noreply
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

[libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5

2008-11-19 Thread noreply
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

[libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5

2008-11-19 Thread noreply
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

[libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5

2008-11-19 Thread noreply
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

[libxml-devel] [ libxml-Bugs-12314 ] node.to_s doesn't print the XML on 64bit AMD?

2008-11-19 Thread noreply
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
[EMAIL PROTECTED]:~ 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
[EMAIL PROTECTED]:~ ruby -v
ruby 1.8.4 (2005-12-24) [x86_64-linux]


[EMAIL PROTECTED]:~ dpkg -l | grep ruby
ii  libfcgi-ruby1.80.8.6-1  FastCGI 
library for Ruby
ii  libmysql-ruby  2.7-1.1build2MySQL 
module for Ruby
ii  libmysql-ruby1.8   2.7-1.1build2MySQL 
module for Ruby 1.8
ii  libreadline-ruby1.81.8.4-1ubuntu1.3 Readline 
interface for Ruby 1.8
ii  libreadline-ruby1.91.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.80.3.4-3  Ruby 
interface to libxslt
ii  libzlib-ruby   0.6.0+ruby1.8.2-1Extension 
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.81.8.4-1ubuntu1.3 Interpreter 
of object-oriented scripting lan
ii  ruby1.8-dev1.8.4-1ubuntu1.3 Header 
files for compiling extension modules

[EMAIL PROTECTED]:~ dpkg -l | grep xml
ii  libxml-ruby1.8 0.3.4-4  Ruby 
interface to libxml
ii  libxml22.6.24.dfsg-1ubuntu1 GNOME XML 
library
ii  libxml2-dev2.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
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


Re: [libxml-devel] [ANN] nokogiri 1.0.0 Released

2008-11-19 Thread Aaron Patterson
Hey Charlie,

2008/11/19 Charlie Savage <[EMAIL PROTECTED]>:
> 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/
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


[libxml-devel] XML Schema validation of multiple namespaces in a document

2008-11-19 Thread avatar382
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:


http://www.w3.org/2001/XMLSchema-instance";
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

The document is validating, even though the XML in the BAR namespace
doesn't conform to the Schema for the BAR namespace.

 Thanks!
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


[libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5

2008-11-19 Thread noreply
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

[libxml-devel] [ libxml-Bugs-22879 ] 0.9.0 fails to build on Mac OS 10.5.5

2008-11-19 Thread noreply
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

Re: [libxml-devel] XML Schema validation of multiple namespaces in a document

2008-11-19 Thread Charlie Savage

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:


http://www.w3.org/2001/XMLSchema-instance";
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


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

[libxml-devel] Fancy new documentation

2008-11-19 Thread Charlie Savage
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


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] [ANN] nokogiri 1.0.0 Released

2008-11-19 Thread Charlie Savage

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


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] Fancy new documentation

2008-11-19 Thread Trans


On Nov 19, 3:28 pm, Charlie Savage <[EMAIL PROTECTED]> 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.
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


[libxml-devel] [ libxml-Bugs-22877 ] Gem 0.9 cannot be installed on Ubuntu 8.04

2008-11-19 Thread noreply
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
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

[libxml-devel] updated XML benchmarks

2008-11-19 Thread Stephen Bannasch

[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


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


Re: [libxml-devel] [ANN] nokogiri 1.0.0 Released

2008-11-19 Thread Aaron Patterson
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/
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


Re: [libxml-devel] updated XML benchmarks

2008-11-19 Thread Charlie Savage

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  totalreal
rexml21.747000   0.00  21.747000 ( 22.145000)
hpricot   4.633000   0.00   4.633000 (  4.761000)
libxml0.468000   0.00   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


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] [ANN] nokogiri 1.0.0 Released

2008-11-19 Thread Charlie Savage



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


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] updated XML benchmarks

2008-11-19 Thread Stephen Bannasch

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  totalreal
rexml  8.29   0.10   8.39 (  9.050795)
hpricot2.05   0.04   2.09 (  2.270231)
libxml 0.35   0.02   0.37 (  0.415992)
nokogiri   0.34   0.02   0.36 (  0.381423)
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel