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: JRuby support Date: Fri, 15 Mar 2013 17:48:55 -0700 Message-ID: <1B9547BA-1ECB-43AE-8795-27E43511C6B2@mac.com> References: <1B9547BA-1ECB-43AE-8795-27E43511C6B2@mac.com> 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 1363394955 7277 80.91.229.3 (16 Mar 2013 00:49:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Mar 2013 00:49:15 +0000 (UTC) To: ruby.io.splice@librelist.org Original-X-From: ruby.io.splice@librelist.org Sat Mar 16 01:49:40 2013 Return-path: Envelope-to: gclrig-ruby.io.splice@m.gmane.org In-Reply-To: <1B9547BA-1ECB-43AE-8795-27E43511C6B2@mac.com> 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:40 Archived-At: Received: from zedshaw2.xen.prgmr.com ([71.19.156.177]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UGfJc-0004i3-5z for gclrig-ruby.io.splice@m.gmane.org; Sat, 16 Mar 2013 01:49:40 +0100 Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id F386F74E3C for ; Sat, 16 Mar 2013 00:50:53 +0000 (UTC) Hi=20 Has anyone got io_splice working with JRuby ? Here are the errors from my mkmf.log - which were generated when I tried= to run 'jruby setup.rb' =E2=80=A6 Davids-MacBook-Pro:io_splice dekhaus$ more mkmf.log=20 have_func: checking for splice() in fcntl.h... -------------------- no cc -E -I. -I/Users/dekhaus/.rvm/rubies/jruby-1.7.0.RC2/lib/native/include= /ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_GNU_SOURCE=3D1 -= fPIC -DTARGET_RT_MAC_CFM=3D0 -fno-omit-frame-pointer -fno-strict-aliasin= g -fexceptions conftest.c | ruby -ne 'print if /.*splice.*/' checked program was: /* begin */ 1: #include 2: ["fcntl.h"] 3: /* top */ 4: int main() { return 0; } /* end */ "cc -o conftest -I. -I/Users/dekhaus/.rvm/rubies/jruby-1.7.0.RC2/lib/nati= ve/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_GNU_SOU= RCE=3D1 -fPIC -DTARGET_RT_MAC_CFM=3D0 -fno-omit-frame-pointer -fno-stric= t-aliasing -fexceptions conftest.c -L"." -L"/Users/dekhaus/.rvm/rub= ies/jruby-1.7.0.RC2/lib" -arch x86_64 " conftest.c:6:53: error: use of undeclared identifier 'splice' int t() { void ((*volatile p)()); p =3D (void ((*)()))splice; return 0; } ^ 1 error generated. checked program was: /* begin */ 1: #include 2: #include 3:=20 4: /*top*/ 5: int main() { return 0; } 6: int t() { void ((*volatile p)()); p =3D (void ((*)()))splice; return 0= ; } /* end */ "cc -o conftest -I. -I/Users/dekhaus/.rvm/rubies/jruby-1.7.0.RC2/lib/nati= ve/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_GNU_SOU= RCE=3D1 -fPIC -DTARGET_RT_MAC_CFM=3D0 -fno-omit-frame-pointer -fno-stric= t-aliasing -fexceptions conftest.c -L"." -L"/Users/dekhaus/.rvm/rub= ies/jruby-1.7.0.RC2/lib" -arch x86_64 " conftest.c:5:11: warning: implicit declaration of function 'splice' is in= valid in C99 [-Wimplicit-function-declaration] int t() { splice(); return 0; } ^ 1 warning generated. Undefined symbols for architecture x86_64: "_splice", referenced from: _t in conftest-QBZgrK.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invoc= ation) checked program was: /* begin */ 1: #include 2:=20 3: /*top*/ 4: int main() { return 0; } 5: int t() { splice(); return 0; } /* end */ Any help getting io_splice working with JRuby would be greatly appreciat= ed. Thanks Dave