-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JRuby 1.7.11 (bundled with LogStash v. 1.4.1) fails on FreeBSD 10.0 with NotImplementedError: stat.st_dev unsupported or native support failed to load #1754
Comments
I swear this came up in IRC not too long ago, but I don't recall what the outcome was. I think it had something to do with the library load path being messed up somehow. This should be implemented in FreeBSD: But it looks like that's not being used. Have you disabled native library support by chance? |
Hi @nirvdrum, thank you very much for your answer. No, the environment under which the application is started should be clean, so native library support should get its default value. I tried setting the However, it seems clear from your source pointer that it should be implemented in FreeBSD so that I tried replicating the same setup in the previous FreeBSD release (9.2) and there, it works. I tried searching JRuby's IRC channel logs here but the Search link there seems to be broken. However, I'll investigate about the library load path. Cheers, |
It may be related to these jnr-ffi issues: |
Thank you very much, @nirvdrum, they look like they could be the cause of the problem. Cheers, |
Hi all, I've sent PR 26 to jnr-ffi to fix this issue, that is the same patch suggested in PR 18 and PR 21 (for which the Travis CI build was failing, and I guess that was the reason for them to be ignored). I'm leaving this comment for reference because It seems that no PR in the jnr-ffi repository has been replied to in quite some time, and I guess affected users may end up here as well. |
Hi all, Here's a follow-up on this issue.
The best solution, however, would be upstream fixing the problem. It is ironic to choose to use Java programs and libraries only to discover that they fail on your platform because they have incompatible native bindings. Since JRuby is using Thanks, Enrico. |
Hi all, the PR fixing this issue has been merged into |
thanx for the follow up let's keep it open until we get jnr-ffi released and used by jruby |
Hi, I'm seeing pretty much exactly this error on SunOS 5.8 on sparc using Logstash 1.4.3. The full error is below. Could anyone shed any light on this error and how to resolve it? I arrived here as the error appears to be a very close match. Thanks // ERROR MESSAGE// |
Hi @kryten68, if you are curious, have a look at jnr/jnr-ffi#26: at least on FreeBSD jnr-ffi is choking on an ld script (beginning with a comment) and it incorrectly reports it as a broken binary. Patching jnr-ffi is easy (it's just a regular expression to fix) but then you have to substitute the recompiled Java class into the JRuby JAR bundled with Logstash. Chances are the same thing is happening on Solaris: check the library that it's trying to open and see if it's an ld script. The FreeBSD port Makefile has the code to patch the Logstash distribution: you can use that code and, until JRuby bundles the patched jnr-ffi and until this new JRuby version ends into Logstash, you can use my jnr-ffi fork. |
closing since jnr/jnr-ffi#26 is part of jnr-ffi-2.0.2 @kryten68 could file an issue for solaris - can not help due to lack of access to Solaris - maybe you can prepare a PR which is definitely welcome ;) |
Having the precisely same problem on Solaris 5.9 with logstash-1.4.2. Logstash is doing |
JRuby 1.7.11 fails on FreeBSD 10.0 with
NotImplementedError: stat.st_dev unsupported or native support failed to load
. This version is bundled with LogStash v. 1.4.1 and I haven't tried others. However, since this is a long standing issue (as explained below), I guess other JRuby versions might be affected.The complete error dumped to the console is the following:
This error can be reproduced in FreeBSD 10.0. I initially opened one issue on LogStash's issue tracker (very similar to another one affecting Solaris) but it seems a JRuby issue instead.
Thank you very much for looking into this.
Cheers,
-- Enrico
The text was updated successfully, but these errors were encountered: