apparent bug in mkmf logic
--------------------------

                 Key: JRUBY-5768
                 URL: http://jira.codehaus.org/browse/JRUBY-5768
             Project: JRuby
          Issue Type: Bug
          Components: C Extensions
    Affects Versions: JRuby 1.6.1
         Environment: Debian 6.0
#uname -s -r -m -o
Linux 2.6.32-5-amd64 x86_64 GNU/Linux
            Reporter: Dan
            Assignee: Thomas E Enebo


Bug filed at the request of Charles Nutter :
https://twitter.com/#!/headius/status/64023134143119360
---

While attempting to {{gem install}} Logstash using new(ish|est) JRuby the 
following failure condition occurs (apparently related to {{escape_utils}}) :

{code}
## Obtained from :
## http://ci.jruby.org/snapshots/
## jruby-bin-1.6.1.tar.gz                             28-Apr-2011 10:08         
   15469261

$export | grep RUBY | awk '{print $3}'
GEM_HOME="/srv/build/JRUBY/HEAD/jruby-1.6.1/lib/ruby/gems/1.9"
JRUBY_BIN="/srv/build/JRUBY/HEAD/jruby-1.6.1/bin"
JRUBY_HOME="/srv/build/JRUBY/HEAD/jruby-1.6.1"
JRUBY_OPTS="--1.9"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/srv/build/JRUBY/HEAD/jruby-1.6.1/bin"

$which jruby && which jgem
/srv/build/JRUBY/HEAD/jruby-1.6.1/bin/jruby
/srv/build/JRUBY/HEAD/jruby-1.6.1/bin/jgem

$jruby -v
jruby 1.6.1 (ruby-1.9.2-p136) (2011-04-28 30af31c) (Java HotSpot(TM) 64-Bit 
Server VM 1.6.0_24) [linux-amd64-java]
$jgem -v
1.5.1

$jgem install logstash --no-ri --no-rdoc --install-dir ./tmp
Building native extensions.  This could take a while...
ERROR:  Error installing logstash:
        ERROR: Failed to build gem native extension.

        /srv/build/JRUBY/HEAD/jruby-1.6.1/bin/jruby 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.
NoMethodError: undefined method `+' for nil:NilClass
  dir_config at 
/srv/build/JRUBY/HEAD/jruby-1.6.1/lib/ruby/site_ruby/shared/mkmf.rb:1218
     collect at org/jruby/RubyArray.java:2344
  dir_config at 
/srv/build/JRUBY/HEAD/jruby-1.6.1/lib/ruby/site_ruby/shared/mkmf.rb:1218
   init_mkmf at 
/srv/build/JRUBY/HEAD/jruby-1.6.1/lib/ruby/site_ruby/shared/mkmf.rb:1787
      (root) at 
/srv/build/JRUBY/HEAD/jruby-1.6.1/lib/ruby/site_ruby/shared/mkmf.rb:1812
     require at org/jruby/RubyKernel.java:1047
     require at 
/srv/build/JRUBY/HEAD/jruby-1.6.1/lib/ruby/site_ruby/shared/mkmf.rb:29
      (root) at extconf.rb:2


Gem files will remain installed in 
/srv/build/LOGSTASH.JRUBY-HEAD/tmp/gems/escape_utils-0.2.3 for inspection.
Results logged to 
/srv/build/LOGSTASH.JRUBY-HEAD/tmp/gems/escape_utils-0.2.3/ext/escape_utils/gem_make.out
{code}

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


Reply via email to