Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
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
JRuby 1.7.11 fails on FreeBSD 10.0 with
The complete error dumped to the console is the following:
Thank you very much for looking into this.
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.
referenced this issue
Oct 1, 2014
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.
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
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.
// ERROR MESSAGE//
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.