From: David Ekhaus <dekhaus@mac.com>
To: ruby.io.splice@librelist.org
Subject: JRuby support
Date: Fri, 15 Mar 2013 17:48:55 -0700 [thread overview]
Message-ID: <1B9547BA-1ECB-43AE-8795-27E43511C6B2@mac.com> (raw)
In-Reply-To: <1B9547BA-1ECB-43AE-8795-27E43511C6B2@mac.com>
Hi
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' …
Davids-MacBook-Pro:io_splice dekhaus$ more mkmf.log
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=1 -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions conftest.c |
ruby -ne 'print if /.*splice.*/'
checked program was:
/* begin */
1: #include <ruby.h>
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/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_GNU_SOURCE=1 -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions conftest.c -L"." -L"/Users/dekhaus/.rvm/rubies/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 = (void ((*)()))splice; return 0; }
^
1 error generated.
checked program was:
/* begin */
1: #include <ruby.h>
2: #include <fcntl.h>
3:
4: /*top*/
5: int main() { return 0; }
6: int t() { void ((*volatile p)()); p = (void ((*)()))splice; return 0; }
/* end */
"cc -o conftest -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=1 -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions conftest.c -L"." -L"/Users/dekhaus/.rvm/rubies/jruby-1.7.0.RC2/lib" -arch x86_64 "
conftest.c:5:11: warning: implicit declaration of function 'splice' is invalid 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 invocation)
checked program was:
/* begin */
1: #include <fcntl.h>
2:
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 appreciated.
Thanks
Dave
next parent reply other threads:[~2013-03-16 0:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-16 0:48 David Ekhaus [this message]
2013-03-16 2:05 ` JRuby support Eric Wong
2013-03-16 2:52 ` David Ekhaus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/ruby_io_splice/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1B9547BA-1ECB-43AE-8795-27E43511C6B2@mac.com \
--to=dekhaus@mac.com \
--cc=ruby.io.splice@librelist.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/ruby_io_splice.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).