cext support broken on Windows
------------------------------
Key: JRUBY-5500
URL: http://jira.codehaus.org/browse/JRUBY-5500
Project: JRuby
Issue Type: Bug
Components: C Extensions
Affects Versions: JRuby 1.6RC2
Environment: Windows XP
Reporter: Nick Klauer
Assignee: Thomas E Enebo
When compiling or installing the JRuby 1.6.0.RC2 for Windows, installing gems
based on c-extensions fail because they can't find {{ruby.h}}:
{code}
PS C:\> jruby -S gem install bond
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing bond:
ERROR: Failed to build gem native extension.
C:/jruby-1.6.0.RC2/bin/jruby.exe extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very
well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
TopDirectory: C:/jruby-1.6.0.RC2/lib/native/include
mkmf.rb can't find header files for ruby at
C:/jruby-1.6.0.RC2/lib/native/include/ruby/ruby.h
Gem files will remain installed in
C:/jruby-1.6.0.RC2/lib/ruby/gems/1.8/gems/bond-0.4.0 for inspection.
Results logged to
C:/jruby-1.6.0.RC2/lib/ruby/gems/1.8/gems/bond-0.4.0/ext/readline_line_buffer/gem_make.out
{code}
If you compare the location of the {{ruby.h}} file, it moved between RC1 and
RC2:
{code:title=ruby.h in RC1}
PS C:\jruby-1.6.0.RC1\lib\native\include\ruby> dir
Directory: C:\jruby-1.6.0.RC1\lib\native\include\ruby
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 01/10/2011 1:59 PM 55 defines.h
-a--- 01/10/2011 1:59 PM 65 dl.h
-a--- 01/10/2011 1:59 PM 55 intern.h
-a--- 01/10/2011 1:59 PM 2171 jruby_win32.h
-a--- 01/10/2011 1:59 PM 55 re.h
-a--- 01/10/2011 1:59 PM 38939 ruby.h
-a--- 01/10/2011 1:59 PM 55 rubyio.h
-a--- 01/10/2011 1:59 PM 55 rubysig.h
-a--- 01/10/2011 1:59 PM 3640 st.h
-a--- 01/10/2011 1:59 PM 337 st_sizes.h
-a--- 01/10/2011 1:59 PM 0 version.h
{code}
{code:title=RC2}
PS C:\jruby-1.6.0.RC2\lib\native> dir
Directory: C:\jruby-1.6.0.RC2\lib\native
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 02/09/2011 7:14 PM i386-Windows
d---- 02/09/2011 7:14 PM x86_64-Windows
{code}
I know that the ruby.h can be found in both versions under
{{C:\jruby-1.6.0.RC1\cext\src\include\ruby}}, but for whatever reason in
{{mkmf.rb}}, the {{$topDir}} variable is being set to
{{C:\jruby-1.6.0.RC2\lib\native\include}}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email