Bugs: Browse | Submit New | Admin

[#21252] libxslt-ruby does not build on cygwin

Date:
2008-07-17 02:12
Priority:
3
Submitted By:
Will Green (hotgazpacho)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
libxslt-ruby does not build on cygwin

Detailed description
Perhaps I'm missing something, but here's the output:

$ gem install libxslt-ruby
Building native extensions.  This could take a while...
ERROR:  Error installing libxslt-ruby:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby.exe extconf.rb install libxslt-ruby
checking for atan() in -lm... no
checking for atan() in -lm... yes
checking for inflate() in -lz... yes
checking for xmlXPtrNewRange() in -lxml2... yes
checking for libxml/xmlversion.h... no
checking for #include <libxml/xmlversion.h>
... yes
checking for xsltApplyStylesheet() in -lxslt... yes
checking for xslt.h... no
checking for #include <xslt.h>
... yes
checking for libxml/ruby_libxml.h... yes
checking for libxml/ruby_xml_document.h... yes
creating extconf.h
creating Makefile

make
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-cygwin -I. -I/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.8.0/ext -I/usr/include/libxml2
-I/usr/include/libxslt -DRUBY_EXTCONF_H=\"extconf.h\"  -g -O2   -c libxslt.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-cygwin -I. -I/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.8.0/ext -I/usr/include/libxml2
-I/usr/include/libxslt -DRUBY_EXTCONF_H=\"extconf.h\"  -g -O2   -c ruby_xslt_stylesheet.c
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-cygwin -I. -I/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.8.0/ext -I/usr/include/libxml2
-I/usr/include/libxslt -DRUBY_EXTCONF_H=\"extconf.h\"  -g -O2   -c ruby_xslt_transform_context.c
gcc -shared -s -o libxslt_ruby.so libxslt.o ruby_xslt_stylesheet.o ruby_xslt_transform_context.o -L"."
-L"/usr/lib" -L"/usr/lib" -L.   -Wl,--enable-auto-image-base,--enable-auto-import,--export-all 
-lruby -lxslt -lxml2 -lz -lm  -ldl -lcrypt
ruby_xslt_stylesheet.o: In function `ruby_xslt_stylesheet_apply':
/usr/lib/ruby/gems/1.8/gems/libxslt-ruby-0.8.0/ext/libxslt/ruby_xslt_stylesheet.c:163: undefined reference
to `_ruby_xml_document_wrap'
collect2: ld returned 1 exit status
make: *** [libxslt_ruby.so] Error 1


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/libxslt-ruby-0.8.0 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/libxslt-ruby-0.8.0/ext/libxslt/gem_make.out

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-07-22 12:52
Sender: Will Green

Sorry, Charlie. I have libxml2, libxml1, and libxml-ruby
installed properly. Any other thoughts?
Date: 2008-07-22 04:19
Sender: Charlie Savage

This is because libxslt-ruby needs to have access to the libxml-ruby
bindings.  By default, libxslt-ruby will assume the libxml-ruby
gem is installed.

Note that the latest version of libxml also includes an output
library, libxml_ruby.dll.a.  So try upgrading and see if the
issue is solved.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item