From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS47066 71.19.144.0/20 X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: David Ekhaus Newsgroups: gmane.comp.lang.ruby.io-splice.general Subject: Re: JRuby support Date: Fri, 15 Mar 2013 19:52:26 -0700 Message-ID: References: <1B9547BA-1ECB-43AE-8795-27E43511C6B2@mac.com> <1B9547BA-1ECB-43AE-8795-27E43511C6B2@mac.com> <20130316020511.GA17263@dcvr.yhbt.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363402352 28860 80.91.229.3 (16 Mar 2013 02:52:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Mar 2013 02:52:32 +0000 (UTC) To: ruby.io.splice@librelist.org Original-X-From: ruby.io.splice@librelist.org Sat Mar 16 03:52:53 2013 Return-path: Envelope-to: gclrig-ruby.io.splice@m.gmane.org List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: ruby.io.splice@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.io-splice.general:42 Archived-At: Received: from zedshaw2.xen.prgmr.com ([71.19.156.177]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UGhEp-0007Kk-Uz for gclrig-ruby.io.splice@m.gmane.org; Sat, 16 Mar 2013 03:52:52 +0100 Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id 18DBD74E3B for ; Sat, 16 Mar 2013 02:54:07 +0000 (UTC) Fair enough (regarding the linux only comment) - here's what I get when I= run=20 > ruby setup.rb on RHEL 6.2 =E2=80=A6 [root@localhost io_splice-4.2.0]# jruby setup.rb=20 ---> lib ---> lib/io ---> lib/io/splice <--- lib/io/splice <--- lib/io <--- lib ---> ext ---> ext/io_splice /opt/torquebox-current/jruby/bin/jruby /opt/src/io_splice-4.2.0/ext/io_sp= lice/extconf.rb WARNING: JRuby does not support native extensions or the `mkmf' library v= ery well. Check http://kenai.com/projects/jruby/pages/Home for alternatives. checking for splice() in fcntl.h... checking for tee() in fcntl.h... chec= king for rb_thread_blocking_region()... checking for F_GETPIPE_SZ in fcnt= l.h... no checking for F_SETPIPE_SZ in fcntl.h... no creating Makefile <--- ext/io_splice <--- ext ---> lib ---> lib/io ---> lib/io/splice <--- lib/io/splice <--- lib/io <--- lib ---> ext ---> ext/io_splice make cc -shared -o io_splice_ext.so io_splice_ext.o -L"." -L"/opt/torquebox-2= .1.2/jruby/lib" -m64 =20 <--- ext/io_splice <--- ext rm -f InstalledFiles ---> lib mkdir -p /opt/torquebox-2.1.2/jruby/lib/ruby/site_ruby/1.8/ ---> lib/io mkdir -p /opt/torquebox-2.1.2/jruby/lib/ruby/site_ruby/1.8/io install splice.rb /opt/torquebox-2.1.2/jruby/lib/ruby/site_ruby/1.8/io ---> lib/io/splice mkdir -p /opt/torquebox-2.1.2/jruby/lib/ruby/site_ruby/1.8/io/splice install mri_18.rb /opt/torquebox-2.1.2/jruby/lib/ruby/site_ruby/1.8/io/sp= lice <--- lib/io/splice <--- lib/io <--- lib ---> ext ---> ext/io_splice no ruby extention exists: 'ruby setup.rb setup' first Try 'ruby setup.rb --help' for detailed usage. The message =E2=80=A6 "no ruby extension exists: 'ruby setup.rb setup' first"=20 leads me to believe that it the command 'jruby setup.rb' didn't work pro= perly. If it (the 'jruby setup.rb' command) did work properly - then can someon= e advise me on what the next step(s) are. If it didn't - similarly, can someone advise me on what I need to do to = get it to work. Thanks Dave On Mar 15, 2013, at 7:05 PM, Eric Wong wrote: > David Ekhaus wrote: >> Has anyone got io_splice working with JRuby ? >>=20 >> Here are the errors from my mkmf.log - which were generated when I tr= ied to run 'jruby setup.rb' =E2=80=A6 >>=20 >> Davids-MacBook-Pro:io_splice dekhaus$ more mkmf.log=20 >=20 > ^^^^^^^^^^^^^^^^^^^^ > Uh... splice() is a Linux-only syscall. >=20 > Anyways, I'm not interested in JRuby or anything JVM, but I'll accept > non-intrusive patches to the C extension.