Does anybody have a win32-binary of quixml?

hi!

i am searching a win32-binary of the quixml-libary (
http://quixml.rubyforge.org/ ) for ruby.

i tried to compile it myself (using mingw and msys) and i read this:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/80816 but i
didn't get it.

so does anybody have a binary or knows a place were i could download it?

···

__
torsten

Hi,

Torsten <t0rsten@pixelshed.net> writes:

i am searching a win32-binary of the quixml-libary (
http://quixml.rubyforge.org/ ) for ruby.

i tried to compile it myself (using mingw and msys) and i read this:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/80816 but i
didn't get it.

% ruby extconf.rb --with-quixml-lib=c:/Expat-1.95.7/Libs --with-quixml-include=c:/Expat-1.95.7/Source/lib
% make
% make install

···

--
eban

WATANABE Hirofumi wrote:

% ruby extconf.rb --with-quixml-lib=c:/Expat-1.95.7/Libs
--with-quixml-include=c:/Expat-1.95.7/Source/lib
% make
% make install

i tried this already but i just get this:
checking for expat.h... no

(before you ask: yes i installed expat with the installer in
c:/Expat-1.95.7)

i tried to compile this libary for 4 hours and now i just want a binary. :confused:

···

__
torsten

"'Torsten <t0rsten@pixelshed.net>'.sub( '0', 'o' )" <t0rsten@pixelshed.net> wrote in message news:<40DAD53E.4000100@pixelshed.net>...

WATANABE Hirofumi wrote:
> % ruby extconf.rb --with-quixml-lib=c:/Expat-1.95.7/Libs
> --with-quixml-include=c:/Expat-1.95.7/Source/lib
> % make
> % make install

i tried this already but i just get this:
checking for expat.h... no

(before you ask: yes i installed expat with the installer in
c:/Expat-1.95.7)

i tried to compile this libary for 4 hours and now i just want a binary. :confused:

__
torsten

Torsten,

Edit the extconf.rb file and replace this line:

if have_header('expat.h') and have_library("expat", "XML_ParserCreate") then

with this line:

if have_library("libexpat")

Then try running the command above again. That should do the trick.

Regards,

Dan

Daniel Berger wrote:

Edit the extconf.rb file and replace this line:

if have_header('expat.h') and have_library("expat", "XML_ParserCreate") then

with this line:

if have_library("libexpat")

Then try running the command above again. That should do the trick.

i did this but what i get is just:
checking for main() in libexpat.lib... no

so i tried to change it to
if true

then it creates a makefile, but after typing make it says:
$ make
cl -nologo -MD -Zi -O2b2xg- -G6 -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32
-Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -Ic:/expat-1.95.7/source/lib
-I. -I./.. -I./../missing -DOS_CODE=OS_WIN32 -c -Tcquixml.c
/bin/sh: cl: command not found
make: *** [quixml.obj] Error 127

after replacing cl with gcc and removing some flags which create errors
i still get this:
$ make
gcc -MD -O2b2xg- -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32
-Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -Ic:/expat-1.95.7/source/lib
-I. -I./.. -I./../missing -DOS_CODE=OS_WIN32 -c -Tcquixml.c
gcc.exe: no input files
make: *** [quixml.obj] Error 1

so i tried to compile it this way:
$ gcc -MD -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32
-Ic:/ruby/lib/ruby/1.8/i386-m
swin32 -I. -Ic:/expat-1.95.7/source/lib -I. -I./.. -I./../missing
-DOS_CODE=OS
_WIN32 -c quixml.c
In file included from c:/ruby/lib/ruby/1.8/i386-mswin32/ruby.h:671,
                 from quixml.c:53:
c:/ruby/lib/ruby/1.8/i386-mswin32/missing.h:64:1: warning: "isinf" redefined
In file included from c:/ruby/lib/ruby/1.8/i386-mswin32/win32/win32.h:56,
                 from c:/ruby/lib/ruby/1.8/i386-mswin32/defines.h:124,
                 from c:/ruby/lib/ruby/1.8/i386-mswin32/ruby.h:22,
                 from quixml.c:53:
c:/MinGW/include/math.h:290:1: warning: this is the location of the
previous definition

now i have a funny quixml.o and a quixml.d, but when i do
$ gcc quixml.o -o quixml.dll

i just get many lines of errors like this:
quixml.o(.text+0x37):quixml.c: undefined reference to `ruby_xmalloc'
quixml.o(.text+0xf0):quixml.c: undefined reference to `ruby_xmalloc'
quixml.o(.text+0x1fc):quixml.c: undefined reference to `rb_iv_set'
quixml.o(.text+0x21c):quixml.c: undefined reference to `rb_iv_set'
quixml.o(.text+0x22f):quixml.c: undefined reference to `rb_eException'
quixml.o(.text+0x234):quixml.c: undefined reference to `rb_raise'
quixml.o(.text+0x2b1):quixml.c: undefined reference to `rb_eException'
quixml.o(.text+0x2b6):quixml.c: undefined reference to `rb_raise'
quixml.o(.text+0x2e3):quixml.c: undefined reference to `rb_hash_new'
quixml.o(.text+0x313):quixml.c: undefined reference to `rb_str_new2'
quixml.o(.text+0x325):quixml.c: undefined reference to `rb_hash_aset'
quixml.o(.text+0x33f):quixml.c: undefined reference to `rb_hash_aref'

what could i try else?

···

__
torstem